Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got TypeError with "cannot unpack non-iterable NoneType object" when verify a valid Okta access token #40

Open
gigi888 opened this issue Jun 1, 2022 · 1 comment

Comments

@gigi888
Copy link

gigi888 commented Jun 1, 2022

Hello,

I am using python 3.8 with okta_jwt_verifier 0.2.3 as

from okta_jwt_verifier import BaseJWTVerifier
jwt_verifier = BaseJWTVerifier(issuer='my_issuer', audience='my_aud')

(headers, claims, signing_input, signature) = jwt_verifier.verify_expiration(token)

when the program is invoked with a valid Okta access token (working with other jwt verifier), I got
TypeError: cannot unpack non-iterable NoneType object

Can I have some help please? Let me know please if more information are needed

@gigi888
Copy link
Author

gigi888 commented Jun 2, 2022

this is the header,

{
  "kid": "gDCwFWwb5y5fo_G3pAeGY3tpz10DpA1nzbdmnYMzohs",
  "alg": "RS256"
}

payload,

{
  "ver": 1,
  "jti": "AT.cAMGDdJgTrzK6HooJ5e8YTnFJnCXcBTEOh2CDAUXguQ.oar1ngb4gpHePEqWK0h7",
  "iss": "my_iss",
  "aud": "my_aud",
  "iat": 1654105698,
  "exp": 1654192098,
  "cid": "d432eb40-2002-4583-b63b-d675f3ccd29a",
  "uid": "00uu84u0b7unb4tz30h7",
  "scp": [
    "myscope",
    "offline_access",
    "email",
    "address",
    "openid",
    "scope2",
    "scope3",
    "profile"
  ],
  "auth_time": 1654105696,
  "sub": "summer",
  "platform_user_id": "uuid"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant