ITokenAcquirerFactory.GetTokenAcquirer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.