lepture / authlib

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
https://authlib.org/
BSD 3-Clause "New" or "Revised" License
4.49k stars 448 forks source link

Add support for default timeout in OAuth2Session #510

Closed lotvall closed 1 year ago

lotvall commented 1 year ago

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)


This is related to #451 - It resolves the issue that it's not possible to send a timeout when fetching server meta data or jwk keys.

This fix uses a default timeout on every request, when timeout is provided to the OAuth2Session.

If you have a different way you'd prefer to propagate timeout to the request please let me know, would be happy to amend accordingly.

lepture commented 1 year ago

Thanks