Show / Hide Table of Contents

Class Authenticator.Options

Authenticator options.

Inheritance
object
Authenticator.Options
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extensions
Assembly: Cognite.Extensions.dll
Syntax
public class Authenticator.Options

Constructors

| Edit this page View Source

Options(AuthenticatorConfig)

Create a new set of authenticator options from authenticator config.

Declaration
public Options(AuthenticatorConfig config)
Parameters
Type Name Description
AuthenticatorConfig config
Exceptions
Type Condition
ArgumentNullException
ConfigurationException
| Edit this page View Source

Options(ClientCredentialsConfig)

Create a new set of authenticator options from client credentials config.

Declaration
public Options(ClientCredentialsConfig config)
Parameters
Type Name Description
ClientCredentialsConfig config
Exceptions
Type Condition
ArgumentNullException
ConfigurationException
| Edit this page View Source

Options(string, string, Uri)

Create a new set of authenticator options with the required parameters.

Declaration
public Options(string clientId, string clientSecret, Uri tokenUrl)
Parameters
Type Name Description
string clientId

Client ID

string clientSecret

Client secret

Uri tokenUrl

Token URL

Properties

| Edit this page View Source

Audience

Audience (optional)

Declaration
public string? Audience { get; set; }
Property Value
Type Description
string

Audience

| Edit this page View Source

ClientId

The application (client) Id. Required.

Declaration
public string ClientId { get; set; }
Property Value
Type Description
string

Client Id

| Edit this page View Source

ClientSecret

The client secret. Required.

Declaration
public string ClientSecret { get; set; }
Property Value
Type Description
string

Secret

| Edit this page View Source

MinTtl

Minimum time-to-live for the token.

Declaration
public TimeSpan MinTtl { get; set; }
Property Value
Type Description
TimeSpan
| Edit this page View Source

Resource

Resource (optional).

Declaration
public string? Resource { get; set; }
Property Value
Type Description
string

Secret

| Edit this page View Source

Scopes

Resource scopes, space separated.

Declaration
public string? Scopes { get; set; }
Property Value
Type Description
string

Scope

| Edit this page View Source

TokenUrl

URL to fetch tokens from. Required.

Declaration
public Uri TokenUrl { get; set; }
Property Value
Type Description
Uri

Tenant

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