Skip to content

Commit

Permalink
make sub into string
Browse files Browse the repository at this point in the history
  • Loading branch information
BinamB authored and nss10 committed Feb 4, 2025
1 parent 8354029 commit d4977a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/link/test_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def test_google_link_session(app, client, encoded_creds_jwt):
)

assert flask.session.get("google_link") is True
assert flask.session.get("user_id") == user_id
assert flask.session.get("user_id") == str(user_id)
assert flask.session.get("google_proxy_group_id") == proxy_group_id
assert flask.session.get("redirect") == redirect

Expand Down
10 changes: 5 additions & 5 deletions tests/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def unauthorized_context_claims(user_name, user_id):
iat, exp = iat_and_exp()
return {
"aud": [iss],
"sub": user_id,
"sub": str(user_id),
"pur": "access",
"iss": iss,
"iat": iat,
Expand Down Expand Up @@ -320,7 +320,7 @@ def authorized_download_context_claims(user_name, user_id):
iat, exp = iat_and_exp()
return {
"aud": [iss],
"sub": user_id,
"sub": str(user_id),
"iss": iss,
"iat": iat,
"exp": exp,
Expand Down Expand Up @@ -353,7 +353,7 @@ def authorized_service_account_management_claims(user_name, user_id, client_id):
iat, exp = iat_and_exp()
return {
"aud": [iss],
"sub": user_id,
"sub": str(user_id),
"iss": iss,
"iat": iat,
"exp": exp,
Expand Down Expand Up @@ -403,7 +403,7 @@ def authorized_download_credentials_context_claims(
iat, exp = iat_and_exp()
return {
"aud": [iss],
"sub": user_id,
"sub": str(user_id),
"iss": iss,
"iat": iat,
"exp": exp,
Expand Down Expand Up @@ -436,7 +436,7 @@ def authorized_upload_context_claims(user_name, user_id):
iat, exp = iat_and_exp()
return {
"aud": [iss],
"sub": user_id,
"sub": str(user_id),
"iss": iss,
"pur": "access",
"iat": iat,
Expand Down

0 comments on commit d4977a8

Please sign in to comment.