Update oidc-exchange.py

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
This commit is contained in:
William Woodruff 2024-12-05 09:52:12 -05:00 committed by GitHub
parent 127f65f0dd
commit ce054321a0
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194

View file

@ -191,7 +191,7 @@ def assert_successful_audience_call(resp: requests.Response, domain: str):
)
def extract_claims(token: str) -> dict[str, typing.Any]:
def extract_claims(token: str) -> dict[str, object]:
_, payload, _ = token.split('.', 2)
# urlsafe_b64decode needs padding; JWT payloads don't contain any.