Class AuthConfigOidcConfig
-
- All Implemented Interfaces:
public abstract class AuthConfigOidcConfig extends JsonSerializable
Config for user OIDC auth. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAuthConfigOidcConfig.BuilderBuilder for AuthConfigOidcConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AuthConfigOidcConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>idToken()OpenID Connect formatted ID token for extension endpoint. abstract Optional<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). static AuthConfigOidcConfig.Builderbuilder()Instantiates a builder for AuthConfigOidcConfig. abstract AuthConfigOidcConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static AuthConfigOidcConfigfromJson(String jsonString)Deserializes a JSON string to a AuthConfigOidcConfig object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
idToken
abstract Optional<String> idToken()
OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
-
serviceAccount
abstract Optional<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). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents).
-
builder
static AuthConfigOidcConfig.Builder builder()
Instantiates a builder for AuthConfigOidcConfig.
-
toBuilder
abstract AuthConfigOidcConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AuthConfigOidcConfig fromJson(String jsonString)
Deserializes a JSON string to a AuthConfigOidcConfig object.
-
-
-
-