Interface IClientAuthenticationManager
Manages authentication tokens, refresh tokens,
and ILoggerProviders.
Assembly: LemonEdge.Authentication.Core.dll
Syntax
public interface IClientAuthenticationManager
Properties
ActiveProvider
Declaration
ILoginProvider ActiveProvider { get; }
Property Value
LoginProviders
Declaration
ILoginProvider[] LoginProviders { get; }
Property Value
Methods
DetermineTokenState(string, ref DateTimeOffset?)
Returns the state of the current user's access token.
This can return an AccessTokenState
or throw any of the exceptions below.
Declaration
AccessTokenState DetermineTokenState(string token, ref DateTimeOffset? expiry)
Parameters
Returns
Exceptions
RefreshToken(DateTimeOffset?)
Attempts to refresh the current user's access token.
HttpRequestMessage. If the token
is about to expire, it silently refreshes the token.
Declaration
Task<string> RefreshToken(DateTimeOffset? expiry)
Parameters
Returns
Exceptions
SetSelectedLoginProvider(ILoginProvider)
Declaration
void SetSelectedLoginProvider(ILoginProvider provider)
Parameters
Extension Methods