TokenAcquirerFactory Class

Definition

Factory of a token acquirer.

public class TokenAcquirerFactory : Microsoft.Identity.Abstractions.ITokenAcquirerFactory
type TokenAcquirerFactory = class
    interface ITokenAcquirerFactory
Public Class TokenAcquirerFactory
Implements ITokenAcquirerFactory
Inheritance
TokenAcquirerFactory
Derived
Implements

Constructors

TokenAcquirerFactory()

Constructor

Properties

Configuration

Configuration. By default the configuration contains the content of the appsettings.json file, provided this file is copied in the folder of the app.

ServiceProvider

Service Provider. The service provider is only available once the factory was built using Build().

Services

Services. Used in the initialization phase

Methods

Build()

Build the Token acquirer. This does the composition of all the services you have added to Services, and returns a service provider, which you can then use to get access to the services you have added.

DefineConfiguration(IConfigurationBuilder)

Adding additional configuration and returns the base path for configuration files

GetDefaultInstance(String)

Get the default instance. Use this method to retrieve the instance, optionally add some services to the service collection, and build the instance.

GetDefaultInstance<T>(String)

Get the default instance of a token acquirer factory. Use this method, for instance, if you have an ASP.NET OWIN application and you want to get the default instance of the OwinTokenAcquirerFactory.

GetTokenAcquirer(IdentityApplicationOptions)

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

GetTokenAcquirer(String, String, IEnumerable<CredentialDescription>, String) System.Object.GetTokenAcquirer(System.String,System.String,System.Collections.Generic.IEnumerable{Microsoft.Identity.Abstractions.CredentialDescription},System.String)
GetTokenAcquirer(String)

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

PreBuild()

Additional processing before the Build (adds an in-memory token cache if no cache was added)

Applies to