Skip to content

saml_relay_state_url redirect  #4

@scott-davidjones

Description

@scott-davidjones

Hey,

Not sure its an issue but when authenticated i am redirected back to the SP as exepected but it in turn is throwing a 404.

Url i am being redirected back to is passed via the saml_relay_state_url param which inturn seems to be a base 64 encode of RelayState GET parameter.

problem that i am getting is that it base 64 encodes the RelayState (which in my case is a url with get params) and then the returned base64 encoded strign is sent as part of the redirect back to the SP which then tries to load it and thus throws a 404.

A worked through example:
SP = https://autumndev.docebosaas.com

1 - go to https://autumndev.docebosaas.com and try to login via SAML SSO.
2 - authenticate on the craft site
3 - RelayState is https://autumndev.docebosaas.com/lms/index.php?r=site/sso&sso_type=saml
4 - RelayState is base 64 encoded to produce: aHR0cHM6Ly9hdXR1bW5kZXYuZG9jZWJvc2Fhcy5jb20vbG1zL2luZGV4LnBocD9yPXNpdGUvc3NvJnNzb190eXBlPXNhbWw=
5 - authentication works and user is redirected back to https://autumndev.docebosaas.com
6 - SP then redirects to the saml_relay_state_url: https://autumndev.docebosaas.com/lms/aHR0cHM6Ly9hdXR1bW5kZXYuZG9jZWJvc2Fhcy5jb20vbG1zL2luZGV4LnBocD9yPXNpdGUvc3NvJnNzb190eXBlPXNhbWw=

End point = 404 not found.

Now Docebo have stated to make the saml_relay_state_url = "https://autumndev.docebosaas.com" which should allieviate the reditect to 404.

Is it possible to overwrite the saml_relay_state_url?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions