Allowed Logout urls not working

I’m trying to use the logout/v2 endpoint to logout of my frontend app. I’m passing the client id, as well as the redirectTo url which IS listed in my allowed logout urls. I’m getting the error that my url is not in the allowed logout urls, even though it is definitely there. What am i doing wrong? Here is the url that should be logging me out:

https://ibex-bank-dev.us.auth0.com/v2/logout?clientId=zjTLYJPJ29DVT0r9yvBvMYmiqQ1pvnzY&returnTo=http://localhost:3000

Please help, thanks!

Hello @scott.miller,

Thank you for reaching out to us!

When calling the logout endpoint, you can specify two properties as described here, as from what I can see your logout request includes both the clientID and the returnTo parameter, like below:

https://{yourDomain}/v2/logout?returnTo=http%3A%2F%2Fwww.example.com&client_id={clientId}

As a mention:

If the client_id parameter is included, the returnTo URL that is provided must be listed in the Application’s “Allowed Logout URLs” in the Auth0 dashboard. However, if the client_id parameter is not included, the returnTo URL must be listed in the “Allowed Logout URLs” at the account level in the Auth0 dashboard.

You can find more information on this following documentation.

Thank you!
Gerald

1 Like