okta-sdk-dotnet icon indicating copy to clipboard operation
okta-sdk-dotnet copied to clipboard

Provide an ability to configure or otherwise provide the HttpClient to use for making API calls

Open rcollette opened this issue 1 year ago • 1 comments

Describe the feature request?

I would like to be able to log failed Http requests. Normally this is done by implementing a DelegatingHttpMessageHandler and providing that in the construction of the HttpClient. The Okta SDK does not expose a way configure the RestSharp options so this does not appear to be possible.

New or Affected Resource(s)

Not entirely sure, but I'm going to presume that I should be able to provide an HttpClient factory function in the sdk's configuration object.

Provide a documentation link

No response

Additional Information?

No response

rcollette avatar Feb 05 '24 16:02 rcollette

Hi @rcollette,

Thanks for your request. We acknowledge this feature is essential. I'll file an internal ticket for the team to prioritize.

Internal Ref: OKTA-700585

laura-rodriguez avatar Feb 23 '24 16:02 laura-rodriguez