You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I faced with an issue when using congito auth, app client_id is not validating during token verification. So you can path any ID and it will work.
# pass some fake client_idauth=Cognito(region=aws_region, userPoolId=aws_cognito_userpool_id, client_id='foo-bar')
# access_token - obtained from Cognitohttp_auth=HTTPAuthorizationCredentials(scheme='Bearer', credentials=access_token)
awaitauth.verifier.verify_token(http_auth)
True
The problem is that jwt.decode (jose lib) doesn't expect client_id in token and since aud is not defined it skips validation.
The text was updated successfully, but these errors were encountered:
tivaliy
changed the title
[Cognito] App client_id is not validated for Cognito JWT
[Cognito] App client_id is not validated for Cognito JWT (access_token)
Sep 27, 2022
I faced with an issue when using congito auth, app
client_id
is not validating during token verification. So you can path any ID and it will work.The problem is that
jwt.decode
(jose
lib) doesn't expectclient_id
in token and sinceaud
is not defined it skips validation.The text was updated successfully, but these errors were encountered: