auth0 / auth0-oidc-client-net

OIDC Client for .NET Desktop and Mobile applications
https://auth0.github.io/auth0-oidc-client-net/
Apache License 2.0
84 stars 49 forks source link

Ensure backchannel is used with the IdTokenValidator #245

Closed frederikprijck closed 1 year ago

frederikprijck commented 1 year ago

Changes

This PR ensures we use the Backchannel for retrieving the Oidc Configuration, which is useful in situations where proxies are used or any reason where you are unable to use the default HttpMessageHandler. An example would be for Android and programmatically setting the AndroidClientHandler as per https://community.auth0.com/t/introduction-of-additional-certificate-authorities-xamarin-on-android-failure-guidance/97583

Even though this is changing static classes to regular classes, it's only touching internal classes so shouldn't realy introduce a breaking change for anyone.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Checklist