Share via


OwinTokenAcquirerFactory Class

Definition

Token acquirer factory for OWIN web apps and web APIs.

public class OwinTokenAcquirerFactory : Microsoft.Identity.Web.TokenAcquirerFactory
type OwinTokenAcquirerFactory = class
    inherit TokenAcquirerFactory
Public Class OwinTokenAcquirerFactory
Inherits TokenAcquirerFactory
Inheritance
OwinTokenAcquirerFactory

Constructors

OwinTokenAcquirerFactory()

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.

(Inherited from TokenAcquirerFactory)
ServiceProvider

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

(Inherited from TokenAcquirerFactory)
Services

Services. Used in the initialization phase

(Inherited from TokenAcquirerFactory)

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.

(Inherited from TokenAcquirerFactory)
DefineConfiguration(IConfigurationBuilder)

Defines the configuration for a given host.

GetTokenAcquirer(IdentityApplicationOptions)

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

(Inherited from TokenAcquirerFactory)
GetTokenAcquirer(String, String, IEnumerable<CredentialDescription>, String) (Inherited from TokenAcquirerFactory)
GetTokenAcquirer(String)

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

(Inherited from TokenAcquirerFactory)
PreBuild()

Pre-build action. Ensures that the host is an OWIN host.

Applies to