简体   繁体   English

Azure Active Directory对Azure网站的身份验证

[英]Azure Active Directory Authentication to Azure Web Site

In my application, I am using Azure AD, I can login to application through azure AD, but sometimes when I enter the credentials then it will not redirect to the home page of my application and instead of that it redirects to the same login page. 在我的应用程序中,我正在使用Azure AD,我可以通过azure AD登录到应用程序,但是有时当我输入凭据时,它将不会重定向到我的应用程序的主页,而是重定向到同一登录页面。 I have also configured the 'ReplyUrl' parameter on azure portal. 我还在azure门户上配置了“ ReplyUrl”参数。

Does anyone has any idea about this scenario? 有没有人对此情况有任何想法?

You can set the reply url as the home page of the application with [Authorize] attribute on top of the home controller. 您可以使用主控制器顶部的[Authorize]属性将回复URL设置为应用程序的主页。 And configure the application to move to the login page if the authorize fails so that the application moves to the home page if the authorization is correct. 并配置该应用程序以在授权失败时移动到登录页面,以便在授权正确的情况下将应用程序移动到主页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM