Table of Contents

Class OAuth2CredentialConfig

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

OAuth 2.0 refresh-token credentials (oauth2).

public sealed class OAuth2CredentialConfig : CredentialConfig
Inheritance
OAuth2CredentialConfig
Inherited Members
Extension Methods

Constructors

OAuth2CredentialConfig()

Initializes a new instance of the OAuth2CredentialConfig class.

public OAuth2CredentialConfig()

Properties

ClientId

The OAuth client ID. Required on creation.

[JsonPropertyName("client_id")]
public string? ClientId { get; set; }

Property Value

string

ClientSecret

The OAuth client secret. Required on creation.

[JsonPropertyName("client_secret")]
public string? ClientSecret { get; set; }

Property Value

string

RefreshToken

The refresh token. Required on creation.

[JsonPropertyName("refresh_token")]
public string? RefreshToken { get; set; }

Property Value

string

Scopes

The OAuth scopes.

[JsonPropertyName("scopes")]
public List<string>? Scopes { get; set; }

Property Value

List<string>

TokenUrl

The token endpoint URL. Required on creation.

[JsonPropertyName("token_url")]
public string? TokenUrl { get; set; }

Property Value

string