简体   繁体   中英

Azure AD B2C return url in azure web app plan

I have a aps.net core mvc app connected to Azure AD B2C ( here is a example I use). When I run the up on my local laptop it runs fine Return URL: https://localhost:44316/signin-oidc But when I publish the app to azure web app plan it not works. With the return URL https:// https://myapp.azurewebsites.net/signin-oidc I become an HTML 404 error when I try to login. With the url: https://myapp.azurewebsites.net/ it goes back to my application without any login.

I was getting the same error when my reply URL in application was http://localhost:port/signin-oidc . I have corrected the app.setting with the callback path to and published :-

"CallbackPath": "/signin-oidc",

And i removed the localhost URL from the reply URL and kept it like below:

在此处输入图片说明

Re started the web app and it worked for me.Try and let know how it worked for you.

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