Show / Hide Table of Contents

Class ClientCredentialsConfig

Configuration for basic client credentials.

Inheritance
object
BaseAuthenticationConfig
ClientCredentialsConfig
Inherited Members
BaseAuthenticationConfig.Variants()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extensions.Unstable
Assembly: Cognite.Extensions.dll
Syntax
public class ClientCredentialsConfig : BaseAuthenticationConfig

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 in seconds (optional)

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

Minimum TTL

| Edit this page View Source

MinTtlValue

Minimum time-to-live for the token.

Declaration
public TimeSpanWrapper MinTtlValue { get; }
Property Value
Type Description
TimeSpanWrapper
| 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

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

Scope

| Edit this page View Source

TokenUrl

URL to fetch tokens from. Required.

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

Tenant

| Edit this page View Source

Type

Authentication type

Declaration
public override string Type { get; set; }
Property Value
Type Description
string
Overrides
BaseAuthenticationConfig.Type

Methods

| Edit this page View Source

GetAuthenticator(IServiceProvider)

Create an authenticator using this configuration object.

Declaration
public override IAuthenticator GetAuthenticator(IServiceProvider provider)
Parameters
Type Name Description
IServiceProvider provider

Service provider, must contain an HTTP client.

Returns
Type Description
IAuthenticator

Authenticator.

Overrides
BaseAuthenticationConfig.GetAuthenticator(IServiceProvider)

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