Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log out user from office365 and redirect to a page?

Tags:

office365

How can I log out a user from Office365 and redirect him to my app login page afterwards?

I know I can log out the user using this url:

https://login.microsoftonline.com/logout.srf

But I would like to redirect them to a login in my application after he was log out of office365. How can I do that?

like image 842
Nerian Avatar asked Jan 18 '26 15:01

Nerian


1 Answers

I used this url:

https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri='your_url'

And works perfectly.

like image 167
Nerian Avatar answered Jan 21 '26 08:01

Nerian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!