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 empty relay state (#5) #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

melvyn-apryl
Copy link

Okta sends an empty relay state, if none is provided. This generates an
error, as the key is present in the post data, and by design different
from the current URL. So we try to redirect to the empty URL.

Also tuck the relaystate into a variable for readability and provide a
test for this case.

Okta sends an empty relay state, if none is provided. This generates an
error, as the key is present in the post data, and by design different
from the current URL. So we try to redirect to the empty URL.

Also tuck the relaystate into a variable for readability and provide a
test for this case.
@melvyn-apryl melvyn-apryl changed the title Fix empty relay state Fix empty relay state (#5) Jun 20, 2022
@ngearhart
Copy link
Collaborator

I will try to give this a review later today, thanks for your contribution!

Copy link
Collaborator

@ngearhart ngearhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, small change from me.

django_saml/views.py Outdated Show resolved Hide resolved
@ngearhart
Copy link
Collaborator

1 year later, I think this is good to go - but the version update PR needs merged first.

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

Successfully merging this pull request may close these issues.

2 participants