Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit 6637d3b

Browse files
authored
Change who issues the pastaporto (#15)
1 parent 373f703 commit 6637d3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythonit_toolkit/pastaporto/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def fake_pastaporto_token_for_user(
1818
"credentials": credentials,
1919
"exp": now + timedelta(minutes=1),
2020
"iat": now,
21-
"iss": "gateway",
21+
"iss": "users",
2222
},
2323
secret,
2424
algorithm="HS256",

pythonit_toolkit/pastaporto/tokens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def decode_pastaporto(token: str, secret: str) -> dict[str, Any]:
88
return jwt.decode(
99
token,
1010
str(secret),
11-
issuer="gateway",
11+
issuer="users",
1212
algorithms=["HS256"],
1313
options={"require": ["exp", "iss", "iat"]},
1414
)

0 commit comments

Comments
 (0)