Table of Contents

Interface IAuthenticationTokenProvider

Namespace
Excalibur.A3.Authentication
Assembly
Excalibur.A3.dll

Provides functionality to retrieve an authentication token representing the current user's identity and claims.

public interface IAuthenticationTokenProvider

Methods

GetAuthenticationTokenAsync(string, string, string, string, string)

Asynchronously retrieves the current authentication token.

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>

A Task<TResult> that resolves to an instance of IAuthenticationToken, representing the current user's authentication details.

Remarks

This method can be used to obtain information about the user's authentication state, identity, claims, and other related details through an implementation of IAuthenticationToken.