Frappe Cloud Support Partners Foundation Frappe School

Social Login Office 365

After logging in through office 365 (social login) it does not allow me to log out, the user remains active and does not allow me to enter through the social login with another user.

You’ll have to logout from office 365 as well.

Even if you logout of ERPNext it won’t logout from Office 365 Authorization Server.

it is correct but it is not working, I have modified
frappe-bench / apps / frappe / frappe /

It is a GET request to be done from frontend. i.e. visit that url from browser.

Problem with single sign out:

  • We have Multiple social login keys, each social login key can have it’s own single sign out url.
  • User can add custom keys
  • After login to ERPNext, We don’t know how the user logged in, which social login key was used or manual user/pass/2fa was entered
  • We need to visit all the single sign out urls from each social login key, that is a challenge.
  • This social login key needs front-channel logout. What about the ones that do back-channel logout?

For front channel that can be implemented with custom app:

  • load logout page with iframes that will set single signout urls from enabled social login keys. X-Frame-Options or Content-Security-Policy needs to be configured to allow use of iframes to set signout urls. (Not easy)
  • if you just use microsoft account, then don’t need to load all signout urls, just set the one given by microsoft on logout, override whitelisted function logout() accept param to redirect and redirect after logout.

this is works, i change this file /workspace/development/frappe-bench/sites/assets/frappe/js/frappe/ui/toolbar/navbar.html now i have to send to this template this two parameters {{ClientID}} and {{URL_home}} any idea?

Hi all,
I have same issue , erpnext can’t logout user signed in via O365.
erpnext login without require authentication.
Could you please help me resolve this issue.

Hi revant_one,
could you please help is there any way erpnext send logout request to Office 365 when user logout from erpnext.
Thanks so much

try the workaround shared in this post