Class AgentAccessTokenAuthenticationHandler
- Namespace
- FoundationaLLM.Common.Authentication
- Assembly
- FoundationaLLM.Common.dll
Handles authentication for agent access tokens.
public class AgentAccessTokenAuthenticationHandler : AuthenticationHandler<AgentAccessTokenOptions>, IAuthenticationHandler
- Inheritance
-
AgentAccessTokenAuthenticationHandler
- Implements
- Inherited Members
- Extension Methods
Remarks
Initializes a new instance of the AgentAccessTokenAuthenticationHandler class.
Constructors
AgentAccessTokenAuthenticationHandler(IEnumerable<IResourceProviderService>, IOptionsMonitor<AgentAccessTokenOptions>, ILoggerFactory, UrlEncoder)
Handles authentication for agent access tokens.
public AgentAccessTokenAuthenticationHandler(IEnumerable<IResourceProviderService> resourceProviderServices, IOptionsMonitor<AgentAccessTokenOptions> options, ILoggerFactory logger, UrlEncoder encoder)
Parameters
resourceProviderServices
IEnumerable<IResourceProviderService>The IResourceProviderService resource provider services.
options
IOptionsMonitor<AgentAccessTokenOptions>The monitor for the options instance.
logger
ILoggerFactoryThe ILoggerFactory used to create loggers.
encoder
UrlEncoderThe UrlEncoder used to perform URL character encoding.
Remarks
Initializes a new instance of the AgentAccessTokenAuthenticationHandler class.
Methods
HandleAuthenticateAsync()
Handles authentication for agent access tokens.
protected override Task<AuthenticateResult> HandleAuthenticateAsync()