CredentialConfiguration Class

Provides credentials required for API authentication, supporting both user and service account scenarios.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public sealed class CredentialConfiguration : ClientSecrets
Inheritance
Object    ClientSecrets    CredentialConfiguration

Constructors

CredentialConfigurationInitializes a new instance of the CredentialConfiguration class

Properties

Account Identifies the user or service account used by the application.
AuthProviderX509CertUrl The location of X.509 certificates for verifying token authenticity.
(Inherited from ClientSecrets)
AuthUri The authorization endpoint used during the OAuth 2.0 process.
(Inherited from ClientSecrets)
ClientId A unique identifier for the client within an OAuth 2.0 flow.
(Inherited from ClientSecrets)
ClientSecret A secret key used during OAuth 2.0 credential exchange.
(Inherited from ClientSecrets)
Installed Client secrets configured for desktop or installed application flows.
ProjectId Represents the identifier of a project in the provider's platform.
QuotaProjectId Sets or retrieves the same identifier used for project-level operations and quotas.
RedirectUris An array of URIs which the identity provider can redirect to after user authentication.
(Inherited from ClientSecrets)
RefreshToken Stores a token that can be used to refresh access without requesting full credentials again.
TokenUri The token endpoint used for exchanging credentials in an OAuth 2.0 flow.
(Inherited from ClientSecrets)
Type Specifies the account type, such as a service account or user account.
UniverseDomain Indicates the domain or environment scope for the application.
Web Client secrets configured for web-based OAuth 2.0 flows.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also