Skip to content

Commit 5c43a11

Browse files
committed
Set the Secure attribute of the cookie, always
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 7a895b1 commit 5c43a11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/satosa/state.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
# TODO MOVE TO CONFIG
2727
STATE_COOKIE_MAX_AGE = 1200
28-
STATE_COOKIE_SECURE = True
2928

3029
_SESSION_ID_KEY = "SESSION_ID"
3130

@@ -53,7 +52,7 @@ def state_to_cookie(state, name, path, encryption_key):
5352
cookie = SimpleCookie()
5453
cookie[name] = cookie_data
5554
cookie[name]["samesite"] = "None"
56-
cookie[name]["secure"] = STATE_COOKIE_SECURE
55+
cookie[name]["secure"] = True
5756
cookie[name]["path"] = path
5857
cookie[name]["max-age"] = max_age
5958

0 commit comments

Comments
 (0)