python3-saml-django icon indicating copy to clipboard operation
python3-saml-django copied to clipboard

Fix empty relay state (#5)

Open melvyn-apryl opened this issue 2 years ago • 2 comments

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 avatar Jun 20 '22 09:06 melvyn-apryl