I’m using Auth0 with a SAML (SSO) connection configured for Google Workspace in my Next.js application. While logging in and out works generally well, I’m encountering an issue where logging out of Auth0 does not fully terminate the session with Google.
Here’s the scenario:
- A user logs in with
user1@domain.com
via Google SSO. - The user logs out using the
federated
parameter in the Auth0 logout URL (/v2/logout?federated
). - When attempting to log in with
user2@domain.com
, Google automatically logs inuser1@domain.com
without prompting for new credentials.
I’ve already:
- Ensured
prompt: 'login'
is included in the login flow. - Configured the
federated
parameter in the logout URL. - Tested manually visiting
https://accounts.google.com/Logout
, which resolves the issue, but I need this behavior integrated automatically.
Despite these efforts, Google’s session remains active after logging out of Auth0. Is there a configuration or additional step required to ensure that federated logout properly terminates the Google session? Any insights or guidance would be appreciated!