简体   繁体   中英

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. I have also configured the 'ReplyUrl' parameter on azure portal.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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