okta / okta-jwt-verifier-python

okta-jwt-verifier-python
https://github.com/okta/okta-jwt-verifier-python
Apache License 2.0
32 stars 15 forks source link

Deprecation Warning #31

Closed azafred closed 2 years ago

azafred commented 2 years ago

This library is outputting a deprecation warning and very little documentation in a path to move forward. /home/fred/.local/lib/python3.9/site-packages/okta_jwt_verifier/jwt_verifier.py:39: DeprecationWarning: JWTVerifier will be deprecated soon. For token verification use IDTokenVerifier or AccessTokenVerifier. For different jwt utils use JWTUtils.

serhiibuniak-okta commented 2 years ago

@azafred Thanks for posting this issue. Which version of okta-jwt-verifier do you use? For v0.2.1 deprecation warning occurs only for instantiating JWTVerifier class, while in README it isn't used at all.

azafred commented 2 years ago

Looks like I am using okta-jwt-verifier==0.2.0 Will check about 0.2.1 :)

abhaynayak24 commented 2 years ago

Checked with 0.2.1. I'm getting the same warning.

serhiibuniak-okta commented 2 years ago

@abhaynayak24 Thanks for checking. It seems like warning appears for IDTokenVerifier, I'll fix it soon.

abhaynayak24 commented 2 years ago

@sergeyfunt-okta this behaviour is also seen with AccessTokenVerifier. I was using JWTVerifier which gave me the warning to use AccessTokenVerifier or IDTokenVerifier. I used AccessTokenVerifier but i still see the same warning.

serhiibuniak-okta commented 2 years ago

@abhaynayak24 Fix is pending review, but AccessTokenVerifier shouldn't generate any warning (at least, with 0.2.1). Could you please, show code sample?

serhiibuniak-okta commented 2 years ago

@azafred, @abhaynayak24 Version 0.2.2 has been released https://github.com/okta/okta-jwt-verifier-python/releases/tag/v0.2.2 I'm closing this issue as resolved. Feel free to reopen this issue or create a new one if your problem still exists.