G Suite Logout Does not Redirect to returnTo url

I am trying to redirect back to my apps base url when a user logs out of their G Suite account. My redirect url looks like

https://{MY_AUTH0_DOMAIN}/logout?client_id=${MY_AUTH0_CLIENT_ID}&returnTo=${REDIRECT_URL}

However, the user instead gets taken back to https://accounts.google.com/ServiceLogin/signinchooser...

Snooping the internet, it seems they need to be given a ‘continue=’ query param. However, i wasn’t able to find any concrete docs from google. Am I missing something, or is this feature just not yet supported?

Thanks!

Hello, @asyriala! Welcome to the Auth0 Community.

This is how Google handles federated logouts. When doing a federated logout to Google, Google will not respect the redirection parameters unless you are redirecting to another page within google.com or any of its subdomains.

Unfortunately, this is not something we control within Auth0, and Google would have to change the behavior in order for them to support redirection. This is one of the catches of Federated Logout - Auth0 controls everything until we pass on the request to the IdP. Once it’s in the IdP, the IdP can handle it however it wants.

Hopefully this helps!

1 Like