Table of Contents

Class AuthConfigOidcConfig

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Config for user OIDC auth. This data type is not supported in Gemini API.

public record AuthConfigOidcConfig : IEquatable<AuthConfigOidcConfig>
Inheritance
AuthConfigOidcConfig
Implements
Inherited Members

Properties

IdToken

OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

[JsonPropertyName("idToken")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? IdToken { get; set; }

Property Value

string

ServiceAccount

The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc).

[JsonPropertyName("serviceAccount")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ServiceAccount { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a AuthConfigOidcConfig object.

public static AuthConfigOidcConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

AuthConfigOidcConfig

The deserialized AuthConfigOidcConfig object, or null if deserialization fails.