Interface IAuthenticator
Interface for implementing authenticators based on bearer access tokens issued by an identity provider
Namespace: Cognite.Extensions
Assembly: Cognite.Extensions.dll
Syntax
public interface IAuthenticator
Methods
| Edit this page View SourceGetToken(CancellationToken)
Return a valid(not expired) token that can be used to authorize API calls
Declaration
Task<string?> GetToken(CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token | Cancellation token |
Returns
Type | Description |
---|---|
Task<string> | A valid token |