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

Feature request: Support for synchronous applications #42

Open jshields opened 1 year ago

jshields commented 1 year ago

Feature request to add new method verify_sync or verify_blocking to AccessTokenVerifier and IDTokenVerifier that will have the same behavior as verify but not be async. I see the README has some instructions on how to make sync calls but does not address how to get the JWK synchronously.

We are an Okta customer with a synchronous Python application written in Django. The async implementation for AccessTokenVerifier.verify and IDTokenVerifier.verify is causing issues for us. Our application is not written with coroutines and due to other implementation issues, we don't want to use run_until_complete. We can't rewrite our entire application to be async at this time.

This change would involve a lot of duplicated code to make async methods sync / blocking, but it would allow support for Python code that doesn't use coroutines.

dee-corr commented 1 month ago

Is there any update on this?