laravel-azure-ad-oauth icon indicating copy to clipboard operation
laravel-azure-ad-oauth copied to clipboard

How to logout about azure ad?

Open a232152000 opened this issue 4 years ago • 1 comments

I can't find logout route in package

a232152000 avatar Dec 06 '20 03:12 a232152000

I had to do some trial/error but this is what my /logout route returns, does the trick for me, but I'm not sure if our IT's setup for the AD is the same. $id_token was set from the payload on login

return redirect()->away('https://login.microsoftonline.com/common/oauth2/v2.0/logout?id_token_hint='.$id_token.'&post_logout_redirect_uri='.urlencode(route('index').'/'));

dojohnso avatar Dec 15 '20 16:12 dojohnso