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
Now my current problem is not having jti, because the way things are setup currently requires an access token that has jti for checking if the token is revoked.
This is how I generate the token, maybe I'm missing something here or have wrong assumptions about that this should do:
(c_idp is a boto3 client instantiated in the scope of a function decorated with @mock_aws)
Question
Is this left out intentionally or is this just something that was never implemented yet? Am I using the correct way to get an access token, or should I be using other apis?
Please advice.
The text was updated successfully, but these errors were encountered:
Default claims are missing in the
create_jwt
method:moto/moto/cognitoidp/models.py
Lines 521 to 537 in 7536c08
When comparing to the AWS docs (see link above), these fields are missing:
device_key
version
origin_jti
event_id
scope
iat
jti
Example of the payload extracted from an access token generated by moto:
Now my current problem is not having
jti
, because the way things are setup currently requires an access token that hasjti
for checking if the token is revoked.This is how I generate the token, maybe I'm missing something here or have wrong assumptions about that this should do:
(
c_idp
is a boto3 client instantiated in the scope of a function decorated with@mock_aws
)Question
Is this left out intentionally or is this just something that was never implemented yet? Am I using the correct way to get an access token, or should I be using other apis?
Please advice.
The text was updated successfully, but these errors were encountered: