Table of Contents

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

httpClient HttpClient
cache IMemoryCache

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

authenticationServiceEndpoint string

The authentication service endpoint URL.

authenticationServiceAudience string

The authentication service audience.

serviceAccountName string

The service account name.

serviceAccountPrivateKeyPath string

The path to the service account private key file.

serviceAccountPrivateKeyPassword string

The password for the service account private key.

Returns

Task<IAuthenticationToken>

An instance of IAuthenticationToken representing the authentication token.