TokenAcquirerFactory Class
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.
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) |
Get a token acquirer for a specific named configuration (for instance an ASP.NET Core authentication scheme). |
GetTokenAcquirer(String, String, IEnumerable<CredentialDescription>, String) | System.Object.GetTokenAcquirer(System.String,System.String,System.Collections.Generic.IEnumerable{Microsoft.Identity.Abstractions.CredentialDescription},System.String) |
PreBuild() |
Additional processing before the Build (adds an in-memory token cache if no cache was added) |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기