Update oidc_session_no_samesite cookie to be Secure (#19079)
This commit is contained in:
parent
418c9f3fe5
commit
2f65b9e001
1
changelog.d/19079.bugfix
Normal file
1
changelog.d/19079.bugfix
Normal file
@ -0,0 +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.
|
||||
@ -96,7 +96,7 @@ logger = logging.getLogger(__name__)
|
||||
# Here we have the names of the cookies, and the options we use to set them.
|
||||
_SESSION_COOKIES = [
|
||||
(b"oidc_session", b"HttpOnly; Secure; SameSite=None"),
|
||||
(b"oidc_session_no_samesite", b"HttpOnly"),
|
||||
(b"oidc_session_no_samesite", b"HttpOnly; Secure"),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user