Skip to content

Set cookie_samesite=none on session cookie for cross-domain SAML POSTs - #542

Open
kayjoosten wants to merge 1 commit into
mainfrom
fix/issue-652-samesite-none
Open

Set cookie_samesite=none on session cookie for cross-domain SAML POSTs#542
kayjoosten wants to merge 1 commit into
mainfrom
fix/issue-652-samesite-none

Conversation

@kayjoosten

Copy link
Copy Markdown
Contributor

Fixes OpenConext/Stepup-Gateway#652.

Sets cookie_samesite: none on the base Symfony session config so the RA session cookie survives cross-domain SAML HTTP-POST bindings, which browsers otherwise drop under the default SameSite=Lax policy.

cookie_secure: true is already set, satisfying the browser requirement that SameSite=None cookies must be Secure.

Part of the same fix landing in Stepup-Gateway, Stepup-Middleware, and Stepup-gssp-example.

Fixes OpenConext/Stepup-Gateway#652: the session cookie was dropped by
browsers on cross-domain SAML HTTP-POST bindings under the default
SameSite=Lax policy.
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.

Set sameSite=none for all cookies that are required at cross site POSTs

1 participant