auth0.js: Logout 'returnTo' not working with federated option
auth0.logout({ federated: true, returnTo: 'localhost:3000/login' })
I’m using google
when federated is enabled I do not ever get back to my login page. Rather I get taken to the Google choose account form and after login in that then goes to the google account home page.
Here’s the network F12 log
302 GET logout?client_id=<XXX>&federated=true&returnTo=http://localhost:3000/login&auth0Client=<XXX> alwaysinmind.eu.auth0.com
302 GET logout accounts.google.com
200 GET Logout2?ilo=1&ils=s.youtube,s.GB&ilc=0&continue=https://accounts.google.com/ServiceLogin&zx=1975721742 accounts.youtube.com
200 GET Logout2?ilo=1&ils=s.GB&ilc=1&continue=https://accounts.google.com/ServiceLogin&zx=1603405200 www.google.co.uk
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (5 by maintainers)
@SteveALee I just got confirmation from the server team: we redirect to
accounts.google.com/logout
as you saw. Google, however, doesn’t use the redirect_uri in the logout like other federated connections do, so you can’t go back to your app when using google. There’s more information (and workarounds) here: https://stackoverflow.com/a/4202318I’m in tah!