mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 05:48:24 -04:00
@@ -70,7 +70,7 @@ def _get_access_token(code, state):
|
|||||||
f"Error when getting id token {response_json} #notify-admin-1505"
|
f"Error when getting id token {response_json} #notify-admin-1505"
|
||||||
)
|
)
|
||||||
raise KeyError(f"'access_token' {response.json()}") from e
|
raise KeyError(f"'access_token' {response.json()}") from e
|
||||||
id_token = jwt.decode(id_token, keystring, algorithms=["RS256"])
|
id_token = jwt.decode(encoded_id_token, keystring, algorithms=["RS256"])
|
||||||
nonce = id_token["nonce"]
|
nonce = id_token["nonce"]
|
||||||
if nonce != os.getenv("TOKEN_NONCE"):
|
if nonce != os.getenv("TOKEN_NONCE"):
|
||||||
login_manager.unauthorized()
|
login_manager.unauthorized()
|
||||||
|
|||||||
Reference in New Issue
Block a user