简体   繁体   中英

400 invalid id token for Azure AD when ASP.net core app is deployed in Azure

I have hosted my ASP.net core web app in Azure and i am using Azure AD authorisation to read roles as shown here . I am getting 400 invalid id token for callback in the hosted application. In chrome console i see only this error message.I am able to see id_token in callback in network tab as well. But if i run the same code in local machine as localhost after changing redirect url to localhost i don't get any issues and I am able to read roles etc. So i believe my code is fine. What can be the reason for invalid id token error when i run the hosted application. How it can be troubleshooted.

I got the same issue when i hosted my .net web application in Azuer App service. go to App Service-> open your application -> goto Authentication/Authorization -> off App service Authentication.

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