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
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>
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.