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.
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With