Interface IAuthTokenManager
Common interface for components that can provide auth tokens. For pre-baked implementations of this interface, see AuthTokenManagers.
public interface IAuthTokenManager
- Extension Methods
Methods
- GetTokenAsync(CancellationToken)
Asynchronously retrieves a valid token. This method will be called often; the implementer should cache the token until a new one is required.
- HandleSecurityExceptionAsync(IAuthToken, SecurityException, CancellationToken)
Handles an error notification thrown by the server if a security error happened.
This will be called when driver throws a SecurityException.