Table of Contents

Class ClientSecrets

Namespace
GenerativeAI.Core
Assembly
GenerativeAI.dll

Defines the OAuth 2.0 client details, often sourced from a configuration file or similar resource.

public class ClientSecrets
Inheritance
ClientSecrets
Derived
Inherited Members
Extension Methods

Constructors

ClientSecrets()

Encapsulates OAuth 2.0 client secret configurations required for authenticating against APIs or services.

public ClientSecrets()

Remarks

This class holds critical authentication details including client ID, client secret, redirect URIs, authorization URI, certificate URL of the authentication provider, and token endpoint. These details are often used for secure communication with external services.

ClientSecrets(string, string, string[], string, string, string)

Represents the essential OAuth 2.0 client credentials required for authentication.

public ClientSecrets(string clientId, string clientSecret, string[] redirectUris, string authUri, string authProviderX509CertUrl, string tokenUri)

Parameters

clientId string
clientSecret string
redirectUris string[]
authUri string
authProviderX509CertUrl string
tokenUri string

Remarks

Includes client identifier, client secret, redirect URIs, and token-related endpoints. This class encapsulates the details necessary to authenticate requests against an API or service.

Properties

AuthProviderX509CertUrl

The location of X.509 certificates for verifying token authenticity.

public string AuthProviderX509CertUrl { get; set; }

Property Value

string

AuthUri

The authorization endpoint used during the OAuth 2.0 process.

public string AuthUri { get; set; }

Property Value

string

ClientId

A unique identifier for the client within an OAuth 2.0 flow.

public string ClientId { get; set; }

Property Value

string

ClientSecret

A secret key used during OAuth 2.0 credential exchange.

public string ClientSecret { get; set; }

Property Value

string

RedirectUris

An array of URIs which the identity provider can redirect to after user authentication.

public string[] RedirectUris { get; set; }

Property Value

string[]

TokenUri

The token endpoint used for exchanging credentials in an OAuth 2.0 flow.

public string TokenUri { get; set; }

Property Value

string