Skip to content

Conversation

aniket-okta
Copy link
Contributor

Description

Fixes the issue #273
This pull request increases the default BackchannelTimeout value in OktaWebOptions from 60 seconds to 120 seconds. This change addresses intermittent timeout issues reported when calling the /userinfo endpoint during the OpenID Connect authentication flow.

Why is this change necessary?

The /userinfo endpoint is critical for retrieving additional claims about the authenticated user. These claims may not be included in the ID token but are often required for authorization or user profile completeness. Increasing the timeout ensures that transient network delays or server-side slowness do not disrupt the authentication flow.

Changes Made

  • Updated the BackchannelTimeout property in OktaWebOptions to 120 seconds.
  • Added an integration test to verify that the timeout is applied correctly to HTTP requests.

Testing

  • Verified the timeout change using an integration test that simulates a delayed response from the /userinfo endpoint.

Notes

While this change reduces the likelihood of timeouts, it is recommended to monitor network conditions and ensure that the /userinfo endpoint is reachable with minimal latency.

@aniket-okta aniket-okta merged commit d7cbe11 into master Apr 4, 2025
1 check passed
@aniket-okta aniket-okta deleted the OKTA-852185 branch April 4, 2025 08:43
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