Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Web App logout from AAD Authentication

i am unable to logout from my simple azure web app that has Azure active directory as the authentication provider.

the user logs into the site using the AAD login page shown here

but i am struggling to find out how to log the user out.

i tried using the various undocumented logout urls like

https://login.microsoftonline.com/<tennantid>/oauth2/logout

although they report the the user is logged out, it isnt. As returning to the previous URL goes straight thru without a sign page.

i am guessing there are some cookies that need to be cleared but where on earth is all this stuff documented?

any help is most appreciated.

like image 417
lpic Avatar asked Dec 02 '22 14:12

lpic


1 Answers

Did you try "[your-domain]/.auth/logout"?

I too had a very hard time figuring this out and I found it in the comments of this blog post.

Hope it helps!

like image 177
prakash Avatar answered Dec 27 '22 12:12

prakash