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

Redirect to the configured host before OIDC if incorrect #346

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

galenguyer
Copy link
Member

If people go to freshman-packet.csh, SSO redirects them to freshmen-packet.csh, as it should, but this means Flask isn't aware of the previous session, leading to a lot of {"error": "unsolicited_response", "error_description": "No initialised user session."}`. This checks that we're on the configured host before the request proceeds, and redirects to the configured host if we're not.

@galenguyer galenguyer merged commit 4d1aaa5 into ComputerScienceHouse:develop Aug 25, 2022
@galenguyer galenguyer mentioned this pull request Aug 25, 2022
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