Class AuthenticationTokenProvider
- Namespace
- Excalibur.A3.Authentication
- Assembly
- Excalibur.A3.dll
Provides functionality to retrieve and manage authentication tokens.
public sealed class AuthenticationTokenProvider : IAuthenticationTokenProvider
- Inheritance
-
AuthenticationTokenProvider
- Implements
- Inherited Members
Constructors
AuthenticationTokenProvider(HttpClient, IMemoryCache)
Provides functionality to retrieve and manage authentication tokens.
public AuthenticationTokenProvider(HttpClient httpClient, IMemoryCache cache)
Parameters
httpClientHttpClientcacheIMemoryCache
Methods
GetAuthenticationTokenAsync(string, string, string, string, string)
Retrieves the authentication token for the current application context.
public Task<IAuthenticationToken> GetAuthenticationTokenAsync(string authenticationServiceEndpoint, string authenticationServiceAudience, string serviceAccountName, string serviceAccountPrivateKeyPath, string serviceAccountPrivateKeyPassword)
Parameters
authenticationServiceEndpointstringThe authentication service endpoint URL.
authenticationServiceAudiencestringThe authentication service audience.
serviceAccountNamestringThe service account name.
serviceAccountPrivateKeyPathstringThe path to the service account private key file.
serviceAccountPrivateKeyPasswordstringThe password for the service account private key.
Returns
- Task<IAuthenticationToken>
An instance of IAuthenticationToken representing the authentication token.