Skip to content

Conversation

@davebelais
Copy link
Collaborator

@davebelais davebelais commented Jan 22, 2026

This pull request introduces improvements to OAuth2 authentication handling, focusing on better timeout management and error handling for HTTP requests in the oapi library. The changes ensure that timeouts are consistently applied to network requests and that timeout errors are handled more explicitly, improving reliability when interacting with OAuth2 endpoints.

OAuth2 Timeout Handling and Error Management:

  • Consistently applies the timeout parameter to all relevant HTTP requests in OAuth2 authentication flows, including password and client credentials grants, as well as OpenID Connect configuration retrieval (src/oapi/client.py). [1] [2] [3]
  • Adds explicit handling for timeout errors when retrieving OpenID Connect configuration, raising a TimeoutError with a clear message if the request times out (src/oapi/client.py).

Version Update:

  • Bumps the package version from 2.8.3 to 2.8.5 in pyproject.toml.

@davebelais davebelais merged commit 5d646d0 into main Jan 22, 2026
13 checks passed
@davebelais davebelais deleted the bugfix/url-timeout branch January 22, 2026 00:34
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