0

I am using a Web App for which I have implemented AD Authentication from the Authentication Tab in App Service. I have followed below link for Sigin and Signout functionality.

https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-customize-sign-in-out

I dont have any issues for Redirect URL : /.auth/login/aad/callback

But when I use /.auth/logout for Signout, I am navigating to page Not found error.

References I am using is Microsoft.Identity.Web

(Based on my company Audit, we have to enable Authentication in App Service, while doing so it is expecting redirect url to be /.auth/login/aad/callback. So I have followed above url for this implementation).

Tiny Wang
  • 10,423
  • 1
  • 11
  • 29
  • After sign out the user is taken to `/.auth/logout/done`. Are you expecting the same or have you overridden the post-logout URL as suggested [here](https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-customize-sign-in-out#sign-out-of-a-session)? – Chintan Rajvir Jan 01 '22 at 05:16
  • I tried this. But after hitting Signout button, I am going to 404 page not found page. Do we need to add any inbuild UI classes ? Sign out – Pathrudu Majji Jan 04 '22 at 08:24

1 Answers1

0

The document you mentioned in the question is based on the built-in authentication and authorization in App Service, so you need to follow this tutorial to do some configurations in azure web app.

By the way, if you'd like to integrate azure ad to your asp.net core app, I recommend you to follow this sample to realize it. And you need to set the custom sign out url, just follow the answers in this question:using url rewrite middle to redirect the request or write your own sign out action.

Tiny Wang
  • 10,423
  • 1
  • 11
  • 29