Class Authenticator.Options
Authenticator options.
Inherited Members
Namespace: Cognite.Extensions
Assembly: Cognite.Extensions.dll
Syntax
public class Authenticator.Options
Constructors
| Edit this page View SourceOptions(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 |
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 |
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 SourceAudience
Audience (optional)
Declaration
public string? Audience { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Audience |
ClientId
The application (client) Id. Required.
Declaration
public string ClientId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Client Id |
ClientSecret
The client secret. Required.
Declaration
public string ClientSecret { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Secret |
MinTtl
Minimum time-to-live for the token.
Declaration
public TimeSpan MinTtl { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Resource
Resource (optional).
Declaration
public string? Resource { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Secret |
Scopes
Resource scopes, space separated.
Declaration
public string? Scopes { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Scope |
TokenUrl
URL to fetch tokens from. Required.
Declaration
public Uri TokenUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri | Tenant |