Partager via


OpenIdConnectConfigurationRetriever.GetAsync Method

Definition

Overloads

GetAsync(String, CancellationToken)

Retrieves a populated OpenIdConnectConfiguration given an address.

GetAsync(String, IDocumentRetriever, CancellationToken)

Retrieves a populated OpenIdConnectConfiguration given an address and an IDocumentRetriever.

GetAsync(String, HttpClient, CancellationToken)

Retrieves a populated OpenIdConnectConfiguration given an address and an HttpClient.

GetAsync(String, CancellationToken)

Retrieves a populated OpenIdConnectConfiguration given an address.

public static System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration> GetAsync (string address, System.Threading.CancellationToken cancel);
static member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration>
Public Shared Function GetAsync (address As String, cancel As CancellationToken) As Task(Of OpenIdConnectConfiguration)

Parameters

address
String

address of the discovery document.

Returns

A populated OpenIdConnectConfiguration instance.

Applies to

GetAsync(String, IDocumentRetriever, CancellationToken)

Retrieves a populated OpenIdConnectConfiguration given an address and an IDocumentRetriever.

public static System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration> GetAsync (string address, Microsoft.IdentityModel.Protocols.IDocumentRetriever retriever, System.Threading.CancellationToken cancel);
static member GetAsync : string * Microsoft.IdentityModel.Protocols.IDocumentRetriever * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration>
Public Shared Function GetAsync (address As String, retriever As IDocumentRetriever, cancel As CancellationToken) As Task(Of OpenIdConnectConfiguration)

Parameters

address
String

address of the discovery document.

retriever
IDocumentRetriever

the IDocumentRetriever to use to read the discovery document

Returns

A populated OpenIdConnectConfiguration instance.

Applies to

GetAsync(String, HttpClient, CancellationToken)

Retrieves a populated OpenIdConnectConfiguration given an address and an HttpClient.

public static System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration> GetAsync (string address, System.Net.Http.HttpClient httpClient, System.Threading.CancellationToken cancel);
static member GetAsync : string * System.Net.Http.HttpClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration>
Public Shared Function GetAsync (address As String, httpClient As HttpClient, cancel As CancellationToken) As Task(Of OpenIdConnectConfiguration)

Parameters

address
String

address of the discovery document.

httpClient
HttpClient

the HttpClient to use to read the discovery document.

Returns

A populated OpenIdConnectConfiguration instance.

Applies to