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

Add support for default timeout in OAuth2Session #510

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

lotvall
Copy link
Contributor

@lotvall lotvall commented Nov 16, 2022

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

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Other, please describe:

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

  • Yes
  • No

  • You consent that the copyright of your pull request source code belongs to Authlib's author.

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 lepture merged commit def72dc into lepture:master Dec 6, 2022
@lepture
Copy link
Owner

lepture commented Dec 6, 2022

Thanks

lepture added a commit that referenced this pull request Dec 6, 2022
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

Successfully merging this pull request may close these issues.

2 participants