Skip to content

Support connection and request timeout for the internal HTTP client used in oauth2 module #8121

@TharmiganK

Description

@TharmiganK

Current Limitation

The ballerina/oauth2 module uses a Java HTTP client to retrieve token and to get introspection response. Currently this client is not having any connection or request timeout where we wait infinitely for the connection/response. This limitation can cause unexpected waiting scenarios which affects the performance

Suggested Improvement

Support connection and request timeout in the ClientConfiguration exposed in the oauth2 records. It is necessary to have reasonable default values for these timeouts

Version

Ballerina SwanLake Update 12

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions