jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5.05k stars 676 forks source link

Allow custom headers to be set on JWKClient requests #822

Closed thundercat1 closed 1 year ago

thundercat1 commented 1 year ago

When using PyJWKClient to access a jwks server behind a firewall, I've run into problems with my request being denied due to the default Python-urllib/3.9 user agent.

Would the maintainers entertain allowing users to specify a custom headers dictionary when creating the pyJWKClient that would automatically be set on fetch requests to retrieve the JWK? By allowing a generic header dictionary to be included, you could solve not only the user agent difficulties I've run into, but other use cases as well.

Thank you!

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days