mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-14 01:47:55 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
873fd1997d
commit
879a1fefbb
1 changed files with 3 additions and 2 deletions
|
|
@ -434,8 +434,9 @@ class OidcManager:
|
|||
parts = id_token.split(".")
|
||||
if len(parts) >= 2:
|
||||
import base64
|
||||
# Pad to a multiple of 4
|
||||
padded = parts[0] + "=" * (4 - len(parts[0]) % 4)
|
||||
# Pad to a multiple of 4 (base64url)
|
||||
pad_len = (-len(parts[0])) % 4
|
||||
padded = parts[0] + ("=" * pad_len)
|
||||
return json.loads(base64.urlsafe_b64decode(padded))
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue