Delen via


TokenAcquirerFactory.GetTokenAcquirer Method

Definition

Overloads

GetTokenAcquirer(IdentityApplicationOptions)

Get a token acquirer given a set of application identity options.

GetTokenAcquirer(String)

Get a token acquirer for a specific named configuration (for instance an ASP.NET Core authentication scheme).

GetTokenAcquirer(String, String, IEnumerable<CredentialDescription>, String)

GetTokenAcquirer(IdentityApplicationOptions)

Get a token acquirer given a set of application identity options.

public Microsoft.Identity.Abstractions.ITokenAcquirer GetTokenAcquirer (Microsoft.Identity.Abstractions.IdentityApplicationOptions applicationIdentityOptions);
abstract member GetTokenAcquirer : Microsoft.Identity.Abstractions.IdentityApplicationOptions -> Microsoft.Identity.Abstractions.ITokenAcquirer
override this.GetTokenAcquirer : Microsoft.Identity.Abstractions.IdentityApplicationOptions -> Microsoft.Identity.Abstractions.ITokenAcquirer
Public Function GetTokenAcquirer (applicationIdentityOptions As IdentityApplicationOptions) As ITokenAcquirer

Parameters

applicationIdentityOptions
IdentityApplicationOptions

Returns

An instance of ITokenAcquirer for acquiring tokens.

Implements

Applies to

GetTokenAcquirer(String)

Get a token acquirer for a specific named configuration (for instance an ASP.NET Core authentication scheme).

public Microsoft.Identity.Abstractions.ITokenAcquirer GetTokenAcquirer (string optionName = "");
abstract member GetTokenAcquirer : string -> Microsoft.Identity.Abstractions.ITokenAcquirer
override this.GetTokenAcquirer : string -> Microsoft.Identity.Abstractions.ITokenAcquirer
Public Function GetTokenAcquirer (Optional optionName As String = "") As ITokenAcquirer

Parameters

optionName
String

Name of the Application configuration as defined by the configuration. For instance in ASP.NET Core it could be the authentication scheme.

Returns

An instance of ITokenAcquirer for acquiring tokens.

Implements

Applies to

GetTokenAcquirer(String, String, IEnumerable<CredentialDescription>, String)

System.Object.GetTokenAcquirer(System.String,System.String,System.Collections.Generic.IEnumerable{Microsoft.Identity.Abstractions.CredentialDescription},System.String)
public Microsoft.Identity.Abstractions.ITokenAcquirer GetTokenAcquirer (string authority, string clientId, System.Collections.Generic.IEnumerable<Microsoft.Identity.Abstractions.CredentialDescription> clientCredentials, string? region = default);
member this.GetTokenAcquirer : string * string * seq<Microsoft.Identity.Abstractions.CredentialDescription> * string -> Microsoft.Identity.Abstractions.ITokenAcquirer
Public Function GetTokenAcquirer (authority As String, clientId As String, clientCredentials As IEnumerable(Of CredentialDescription), Optional region As String = Nothing) As ITokenAcquirer

Parameters

authority
String
clientId
String
clientCredentials
IEnumerable<CredentialDescription>
region
String

Returns

Applies to