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

sso-proxy: clear csrf token further down the request flow #170

Merged
merged 1 commit into from
Apr 23, 2019

Conversation

Jusshersmith
Copy link
Contributor

Problem

Currently, upon refresh of the Group membership required error page it changes to a http: named cookie not present error page. Related issue: #94

Solution

We currently remove the CSRF token from the request after getting and assigning it to a new variable. If, further down the flow the request is found to be invalid for some reason (in this case, the user not being in the required groups) then the relevant error page is given. Upon refresh it tries to grab the CSRF token again however it's no longer part of the request, and so it errors in a less helpful and informative way.

Instead, only clear the CSRF token once we know the request has passed the various checks

jphines
jphines previously approved these changes Mar 28, 2019
@Jusshersmith Jusshersmith merged commit d0e8e03 into master Apr 23, 2019
@Jusshersmith Jusshersmith deleted the jusshersmith-group-membership-refresh-error branch April 23, 2019 14:17
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.

2 participants