Microsoft.Identity.Client.OAuth2.OAuth2Client
class OAuth2Client
Responsible for talking to all the Identity provider endpoints:
- instance discovery
- endpoint metadata
- mex
- /token endpoint via TokenClient
- device code endpoint
public OAuth2Client(ILoggerAdapter logger, IHttpManager httpManager, X509Certificate2 mtlsCertificate)
public Task<InstanceDiscoveryResponse> DiscoverAadInstanceAsync(Uri endpoint, RequestContext requestContext)