question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support dynamic URLs in `Allowed Logout URLs` when user is logged out

See original GitHub issue

Problem Description

  • Currently when we create a Single page application , we add callback urls, logout urls , web origin.
  • But i noticed the URLs that are mentioned there and supported are only the index routes.
  • My concern is for logout URLs.

For eg: I am in a page called localhost:8000/rooms?queryParams... and i am performing the login functionality there by using the loginWithPopup method. So after successful authentication , user is logged in and stay on the same page and we get the user info.

Now comes the logout functionality , for that we need to invoke this method and pass the federated option to true so that when user logs out and login again they will see the login popup again.

Here on logout , it redirects to the index routes mentioned in Allowed Logout URLs , so is there a option where i can pass a page location like above which has a pathname and query parameters which are dynamic ?

Describe the ideal solution

  • In dashboard it is mentioned we can pass wildcards like http://*.[example.com](http://example.com/).
  • Is there a option to pass like this http://*.[example.com/*](http://example.com/*) which also take the query params ?

Like this Screenshot 2022-12-12 at 1 34 38 PM

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
adamjmcgrathcommented, Dec 13, 2022

@som-matrix - you need to add http://localhost:8000/en/bookings/rooms to the list of “Allowed Logout URLs” for your application 0SBTpuwTY7ZF0vaCFZ5ZpGF16I54DFw5 on your ayana-stg.us.auth0.com tenant, once you do that the logout will succeed

1reaction
adamjmcgrathcommented, Dec 13, 2022

No worries @som-matrix

there is no harm on publicly mentioning the auth0 client id and domain like as you mentioned above ?

Correct, the client id and domain are public so there’s no harm in sharing them 👍

Closing, feel free to ping me if you want to reopen

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to support dynamic URLs and URLs other than ...
Is there a way to support dynamic URLs and URLs other than index routes in Allowed Logout URLs when user is logged out?...
Read more >
Unable to redirect to a dynamic URL on logout #117 - GitHub
The ?redirectTo query param from v0.13.0 does not work for logouts. Also I see that handleLogout() doesn't accept any options making it ...
Read more >
Brand Your Identity Pages with Dynamic URLs - Salesforce Help
Dynamic branding relies on a URL parameter called the experience ID, or expid value. The expid value determines what the user experiences.
Read more >
How to configure where to redirect after a log out in Django?
The forward slash at the start of 'next page' URL : '/successfully_logged_out/' is vital, without it, Django attempts to concatenate the "logout" URL...
Read more >
Custom Redirect URL after login and logout - Plugins
This feature allows you to configure the URL wherever you want to redirect users after login or after logout.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found