You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to 3.5.3 in the specification https://docs.oasis-open.org/security/saml/v2.0/saml-bindings-2.0-os.pdf
"RelayState data MAY be included with a SAML protocol message transmitted with this binding. The valueMUST NOT exceed 80 bytes in length and SHOULD be integrity protected by the entity creating themessage independent of any other protections that may or may not exist during message transmission"
Keycloak does not respect this.
Version
17.0.0
Expected behavior
Keycloak should respect the length restriction.
Actual behavior
The relay state length restriction is not enforced
How to Reproduce?
Test will be provided
Anything else?
No response
Reacted by Morten B. Matthiesen and Georg Romstorfer
There is a community PR #10231 open that requires a review.
I see two people voted "thumbs up" for this issue: A review would include (but wouldn't be limited to) that the implementation aligns with the specification, and if people think it might break existing implementations. Thanks!
Activity
ahus1 commentedon Apr 12, 2022
There is a community PR #10231 open that requires a review.
I see two people voted "thumbs up" for this issue: A review would include (but wouldn't be limited to) that the implementation aligns with the specification, and if people think it might break existing implementations. Thanks!
RelayState max length not respected
Use org.keycloak.common.util.Base64Url to encode/decode clientID
Use org.keycloak.common.util.Base64Url to encode/decode clientID
Use org.keycloak.common.util.Base64Url to encode/decode clientID