Skip to content

Commit 2f65b9e

Browse files
authored
Update oidc_session_no_samesite cookie to be Secure (#19079)
1 parent 418c9f3 commit 2f65b9e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/19079.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the `oidc_session_no_samesite` cookie to have the `Secure` attribute, so the only difference between it and the paired `oidc_session` cookie, is the configuration of the `SameSite` attribute as described in the comments / cookie names. Contributed by @kieranlane.

synapse/handlers/oidc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
# Here we have the names of the cookies, and the options we use to set them.
9797
_SESSION_COOKIES = [
9898
(b"oidc_session", b"HttpOnly; Secure; SameSite=None"),
99-
(b"oidc_session_no_samesite", b"HttpOnly"),
99+
(b"oidc_session_no_samesite", b"HttpOnly; Secure"),
100100
]
101101

102102

0 commit comments

Comments
 (0)