AI Cloud Architect

How to handle user, connector, and agent auth in Gemini Enterprise with a custom UI

GoogleHow-to by Neeraj AgrawalGoogle Developers Blog

When building a custom enterprise UI on top of Gemini Enterprise's :streamAssist API, developers must manually implement three core authentication layers. These include authenticating users or workloads via Google Identity or Workforce/Workload Identity Federation, managing third-party 3-legged OAuth (3LO) for Federated Connectors through the Keystore, and configuring on-demand per-tool OAuth for custom ADK agents using Vertex AI Agent Engine and GCP Auth Manager.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Gemini Enterprise custom UIs must handle three auth layers themselves: user or workload auth to StreamAssist, 3LO for Federated Connectors via the Keystore, and per-tool OAuth for ADK agents via GCP Auth Manager.

Who it is for

Developers and architects building a custom enterprise UI on the Gemini Enterprise StreamAssist API who need per-user access control.

Key points

  • Three auth patterns cover Google Identity, Workforce Identity Federation, and Workload Identity Federation for StreamAssist calls.
  • Each principal needs the Discovery Engine User IAM role; human users also need a Gemini Enterprise user license.
  • Per-tool OAuth on ADK agents triggers a 3LO popup only when a protected tool is called, instead of gating the whole agent upfront.

The same at other vendors