Partager via


ITokenAcquirerFactory.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(IdentityApplicationOptions)

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

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

Parameters

identityApplicationOptions
IdentityApplicationOptions

the IdentityApplicationOptions that describe the ITokenAcquirer instance to return. For Microsoft applications use MicrosoftIdentityApplicationOptions.

Returns

An instance of ITokenAcquirer for acquiring tokens.

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
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.

Applies to