Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix returnTo on Login #95

Merged
merged 2 commits into from
May 4, 2020
Merged

Fix returnTo on Login #95

merged 2 commits into from
May 4, 2020

Conversation

davidpatrick
Copy link
Contributor

When no returnTo is passed into the login call, it should redirect to the URL that it was called from on GET Requests.

This is in line with documentation at https://github.com/auth0/express-openid-connect/blob/master/API.md#response

When no returnTo is passed into the login call, it should redirect to the URL that it was called from on GET Requests.

This is in line with documentation at https://github.com/auth0/express-openid-connect/blob/master/API.md#response
@davidpatrick davidpatrick requested a review from a team May 3, 2020 22:48
@davidpatrick davidpatrick added the review:tiny Tiny review label May 3, 2020
@davidpatrick davidpatrick merged commit dda2d3f into master May 4, 2020
@davidpatrick davidpatrick added this to the v1.0.2 milestone May 12, 2020
@davidpatrick davidpatrick mentioned this pull request May 12, 2020
@evansims evansims deleted the fix-returnTo branch July 5, 2022 20:34
@jordanst3wart
Copy link

This has regressed with v2. It now redirects to the baseUrl, and not (what i think should be) the referrer.

res.oidc.login({ returnTo: config.baseURL })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants