laravel-azure-ad-oauth
laravel-azure-ad-oauth copied to clipboard
How to logout about azure ad?
I can't find logout route in package
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').'/'));