Skip to content

Commit

Permalink
feat(cookies): add httponly flag to missing spots
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13-machine-user committed Feb 10, 2021
1 parent 537c937 commit 473aef9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/session/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ def test_valid_session_valid_access_token(
"localhost", config["SESSION_COOKIE_NAME"], test_session_jwt, httponly=True
)
client.set_cookie(
"localhost", config["ACCESS_TOKEN_COOKIE_NAME"], test_access_jwt
"localhost",
config["ACCESS_TOKEN_COOKIE_NAME"],
test_access_jwt,
httponly=True,
)

response = client.get("/user")
Expand Down Expand Up @@ -260,7 +263,10 @@ def test_valid_session_valid_access_token_diff_user(
"localhost", config["SESSION_COOKIE_NAME"], test_session_jwt, httponly=True
)
client.set_cookie(
"localhost", config["ACCESS_TOKEN_COOKIE_NAME"], test_access_jwt
"localhost",
config["ACCESS_TOKEN_COOKIE_NAME"],
test_access_jwt,
httponly=True,
)

response = client.get("/user")
Expand Down

0 comments on commit 473aef9

Please sign in to comment.