Show / Hide Table of Contents

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 Source

GetToken(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

Extension Methods

DataModelUtils.GetOrCreateResourcesAsync<T, T2>(T2, IEnumerable<InstanceIdentifier>, Func<IEnumerable<InstanceIdentifier>, IEnumerable<SourcedNodeWrite<T>>>, Func<IEnumerable<SourcedNodeWrite<T>>, SanitationMode, (IEnumerable<SourcedNodeWrite<T>>, IEnumerable<CogniteError<SourcedNodeWrite<T>>>)>, int, int, RetryMode, SanitationMode, CancellationToken)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX