Class ClientCredentialsConfig
Configuration for basic client credentials.
Inherited Members
Namespace: Cognite.Extensions.Unstable
Assembly: Cognite.Extensions.dll
Syntax
public class ClientCredentialsConfig : BaseAuthenticationConfig
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 in seconds (optional)
Declaration
public string MinTtl { get; set; }
Property Value
Type | Description |
---|---|
string | Minimum TTL |
MinTtlValue
Minimum time-to-live for the token.
Declaration
public TimeSpanWrapper MinTtlValue { get; }
Property Value
Type | Description |
---|---|
TimeSpanWrapper |
Resource
Resource (optional).
Declaration
public string? Resource { get; set; }
Property Value
Type | Description |
---|---|
string | Secret |
Scopes
Resource scopes
Declaration
public ListOrSpaceSeparated? Scopes { get; set; }
Property Value
Type | Description |
---|---|
ListOrSpaceSeparated | Scope |
TokenUrl
URL to fetch tokens from. Required.
Declaration
public string? TokenUrl { get; set; }
Property Value
Type | Description |
---|---|
string | Tenant |
Type
Authentication type
Declaration
public override string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
| Edit this page View SourceGetAuthenticator(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. |