Skip to content

Commit

Permalink
Fix the lask of Q000 @ oidc-exchange.py
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed May 16, 2024
1 parent d1883f6 commit fa6d770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oidc-exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def render_claims(token: str) -> str:
_, payload, _ = token.split('.', 2)

# urlsafe_b64decode needs padding; JWT payloads don't contain any.
payload += "=" * (4 - (len(payload) % 4))
payload += '=' * (4 - (len(payload) % 4))
claims = json.loads(base64.urlsafe_b64decode(payload))

def _get(name: str) -> str: # noqa: WPS430
Expand Down

0 comments on commit fa6d770

Please sign in to comment.