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

Auth improvements #2105

Merged
merged 3 commits into from
Jul 7, 2022
Merged

Auth improvements #2105

merged 3 commits into from
Jul 7, 2022

Conversation

jefflembeck
Copy link
Contributor

@jefflembeck jefflembeck commented Jul 7, 2022

This PR has 3 different auth improvements:

  1. Add ReturnUrl to our login redirect to the CP side. This allows use the authentication service to redirect back to a WHITELISTED url of our choice.

  2. Remove the samlu saml cookie clearer. We don't use this cookie anymore. We don't have this login type anymore. It's been more than 30 days. It should've expired for everybody anyway.

  3. If we're redirecting somebody to a login or signup flow, we can add redirect_uri to that and they'll come back to that path when they are finished instead of just the home page.

This allows us to use CP's oauth login service on multiple allowed boxes
instead of one static one
We no longer need to log people out with this because they haven't been
able to log _in_ with it for over a month.
If you kick a user into the login or signup flow from where they are,
all we need to do is add a redirect_uri query paramater for /login or
/signup with the path that we want them sent to when we're done.
@jefflembeck jefflembeck merged commit 85fe114 into master Jul 7, 2022
@jefflembeck jefflembeck deleted the return-url branch July 7, 2022 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants