特定のエンドユーザーに代わって、エージェントが外部ツールやサービス(Jira タスクや GitHub リポジトリなど)にアクセスできるようにするには、Agent Identity 認証マネージャーで 3-legged OAuth 認証プロバイダを構成します。
3-legged OAuth 認証プロバイダは、ユーザーのリダイレクトとトークンを管理します。これにより、複雑な OAuth 2.0 フローを処理するためのカスタムコードを作成する必要がなくなります。
3-legged OAuth ワークフロー
3-legged OAuth 認証プロバイダでは、エージェントがユーザーに代わってリソースにアクセスするため、ユーザーの同意が必要です。
- プロンプトとリダイレクト: チャット インターフェースでユーザーにログインを求め、 サードパーティ アプリケーションの同意ページにリダイレクトします。
- 同意と保存: ユーザーが権限を付与すると、Agent Identity 認証マネージャーは、結果の OAuth トークンを Google マネージド認証情報ボールトに保存します。
- 挿入: Agent Development Kit(ADK)を使用すると、エージェントは 認証プロバイダからトークンを自動的に取得し、 ツール呼び出しヘッダーに挿入します。
始める前に
- 正しい認証方法を選択していることを確認します。
-
Agent Identity Connector API を有効にします。
API を有効にするために必要なロール
API を有効にするには、
serviceusage.services.enable権限が必要です。プロジェクトを作成した場合は、オーナーロール(roles/owner)を通じてこの権限が付与されている可能性があります。それ以外の場合は、Service Usage 管理者ロール(roles/serviceusage.serviceUsageAdmin)を通じてこの権限を取得できます。ロールを付与する方法をご覧ください。 - エージェント を作成してデプロイします。
- ユーザーのログイン プロンプト とサードパーティの同意ページへのリダイレクトを処理するフロントエンド アプリケーションがあることを確認します。
- このタスクを完了するために必要なロールが付与されていることを確認します。
必要なロール
3-legged 認証プロバイダを作成して使用するために必要な権限を取得するには、プロジェクトに対する次の IAM ロールの付与を管理者に依頼してください。
-
認証プロバイダを作成するには:
- IAM Connector 管理者 (
roles/iamconnectors.admin) - IAM Connector 編集者 (
roles/iamconnectors.editor)
- IAM Connector 管理者 (
-
認証プロバイダを使用するには:
- IAM Connector ユーザー (
roles/iamconnectors.user) - Vertex AI ユーザー (
roles/aiplatform.user) - Service Usage コンシューマー (
roles/serviceusage.serviceUsageConsumer)
- IAM Connector ユーザー (
ロールの付与については、プロジェクト、フォルダ、組織へのアクセス権の管理をご覧ください。
これらの事前定義ロールには 3-legged 認証プロバイダの作成と使用に必要な権限が含まれています。必要とされる正確な権限については、必要な権限セクションを開いてご確認ください。
必要な権限
3-legged 認証プロバイダを作成して使用するには、次の権限が必要です。
-
認証プロバイダを作成するには:
iamconnectors.connectors.create -
認証プロバイダを使用するには:
-
iamconnectors.connectors.retrieveCredentials -
aiplatform.endpoints.predict -
aiplatform.sessions.create
-
カスタムロールや他の事前定義ロールを使用して、これらの権限を取得することもできます。
3-legged 認証プロバイダを作成する
認証プロバイダを作成して、サードパーティ アプリケーションの構成と認証情報を定義します。
3-legged 認証プロバイダを作成するには、 Google Cloud コンソールまたは Google Cloud CLI を使用します。
コンソール
- コンソールで、[エージェント レジストリ] ページに移動します。 Google Cloud
- 認証プロバイダを作成するエージェントの名前をクリックします。
- [ID] をクリックします。
- [認証プロバイダ] セクションで、[ 認証プロバイダを追加] をクリックします。
-
[認証プロバイダを追加] パネルで、名前と説明を入力します。
名前に使用できるのは、英小文字、数字、ハイフンに限られます。末尾にハイフンは使用できません。先頭は英小文字にする必要があります。
- [OAuth タイプ] リストから [OAuth(3-legged)] を選択します。
- [作成して続行] をクリックします。
- 認証プロバイダを使用する権限をエージェント ID に付与するには、[アクセス権を付与] をクリックします。
これにより、認証プロバイダ リソースのエージェント ID にコネクタ ユーザー (
roles/iamconnectors.user)ロールが自動的に割り当てられます。 - コールバック URL をコピーします。
- 別のタブで、サードパーティの OAuth クライアント アプリケーションにコールバック URL を登録します。
- [認証プロバイダの認証情報] セクションに、次の情報を入力します。
- クライアント ID
- Client Secret
- トークン URL
- 認可 URL
- [プロバイダ構成を追加] をクリックします。
新しく作成した認証プロバイダが [認証プロバイダ] リストに表示されます。
gcloud CLI
-
OAuth クライアント アプリケーションを構成して、クライアントを登録し、クライアント ID と クライアント シークレットを取得します。その セクションのテンプレートを使用して、リダイレクト URI を指定します。
-
クライアント認証情報を使用して認証プロバイダを作成します。
gcloud alpha agent-identity connectors create
AUTH_PROVIDER_NAME\ --project="PROJECT_ID" \ --location="LOCATION" \ --three-legged-oauth-client-id="CLIENT_ID" \ --three-legged-oauth-client-secret="CLIENT_SECRET" \ --three-legged-oauth-authorization-url="AUTHORIZATION_URL" \ --three-legged-oauth-token-url="TOKEN_URL" - 認証プロバイダがリストに表示され、状態が
ENABLEDであることを確認します。gcloud alpha agent-identity connectors list \ --project="
PROJECT_ID" \ --location="LOCATION" -
エージェントとローカル開発 環境が認証プロバイダから認証情報を取得できるように、アクセス権を付与します。デプロイされたエージェントと個人のユーザー アカウントが認証プロバイダにアクセスできるようにするには、認証プロバイダ リソースにコネクタ ユーザー(
roles/iamconnectors.user)ロールを付与します。-
デプロイされたエージェントの SPIFFE ID(エージェント ID)へのアクセス権を付与します。
gcloud alpha agent-identity connectors add-iam-policy-binding
AUTH_PROVIDER_NAME\ --project="PROJECT_ID" \ --location="LOCATION" \ --role="roles/iamconnectors.user" \ --member="principal://agents.global.org-ORGANIZATION_ID.system.id.goog/resources/aiplatform/projects/PROJECT_NUMBER/locations/LOCATION/reasoningEngines/ENGINE_ID" -
ローカル開発とテスト (
adk web)用の個人ユーザー アカウントへのアクセス権を付与します。gcloud alpha agent-identity connectors add-iam-policy-binding
AUTH_PROVIDER_NAME\ --project="PROJECT_ID" \ --location="LOCATION" \ --role="roles/iamconnectors.user" \ --member="user:USER_EMAIL"
-
次のように置き換えます。
PROJECT_ID: 実際の Google Cloud プロジェクト ID。LOCATION: 認証プロバイダとエージェントがデプロイされているロケーション(us-west1など)。AUTH_PROVIDER_NAME: 認証プロバイダの名前(bigquery-mcp-3lo-authproviderなど)。AUTHORIZATION_URL: 認可サーバーの URL(https://accounts.google.com/o/oauth2/v2/authなど)。TOKEN_URL: トークン サーバーの URL(https://oauth2.googleapis.com/tokenなど)。CLIENT_ID: サードパーティ サービスから生成された OAuth クライアント ID。CLIENT_SECRET: サードパーティ サービスから生成された OAuth クライアント シークレット。ORGANIZATION_ID: あなたの Google Cloud 組織の ID。PROJECT_NUMBER: あなたの Google Cloud プロジェクトの番号。ENGINE_ID: デプロイされた Reasoning Engine エージェントの ID。USER_EMAIL: 個人のユーザー アカウントのメールアドレス。
OAuth クライアント アプリケーションを構成する
OAuth クライアント認証情報を登録する前に、サードパーティの認可サーバー(Google、GitHub、Jira など)からクライアント ID とクライアント シークレットを取得します。
Google Cloud以外のサードパーティ サービスに接続する場合は、その サービスのデベロッパー ポータルから OAuth クライアント認証情報を取得し、このセクションの手順をスキップします。
リダイレクト URI を登録する
OAuth クライアント認証情報を構成するときは、認証プロバイダ専用のコールバック リダイレクト URI を登録する必要があります。
次のテンプレートを使用してリダイレクト URI を作成します。
https://iamconnectorcredentials.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/connectors/CONNECTOR_NAME/oauthcallback次のように置き換えます。
PROJECT_ID: 実際の Google Cloud プロジェクト ID。LOCATION: The region where your auth provider will be deployed (for example,us-west1` など)。CONNECTOR_NAME: 認証プロバイダの名前。
例:
https://iamconnectorcredentials.googleapis.com/v1/projects/my-project/locations/us-west1/connectors/bigquery-mcp-3lo-authprovider/oauthcallbackサービス( BigQuery など)に接続する場合は、コンソールで同意画面を構成し、OAuth クライアント認証情報を作成できます。 Google Cloud Google Cloud
-
OAuth 同意画面を構成します。
- コンソールで、[**API とサービス > OAuth 同意画面**] ページに移動します。 Google Cloud
- [**アプリ情報**] セクションに、アプリケーション名(BigQuery Manager Application など)とサポート メールを入力します。
- [対象] セクションで、[内部] または [外部] を選択します。
- 通知を受け取るための連絡先情報を入力します。
- Google API サービス ユーザーデータ に関するポリシー を読んで同意します。
- [完了] をクリックします。
-
OAuth クライアント認証情報を作成します。
- コンソールで、[**API とサービス > OAuth 同意画面 > クライアント**] ページに移動します。 Google Cloud
- [認証情報を作成> OAuth クライアント ID] をクリックします。
- リストから [ウェブ アプリケーション] オプションを選択します。
- OAuth クライアントのわかりやすい名前を入力します。
- [**承認済みのリダイレクト URI**] セクションで、 [**URI を追加**] をクリックして、作成したリダイレクト URI を入力します。
- [作成] をクリックします。[OAuth クライアントが作成されました] ダイアログで、生成された [クライアント ID] と [クライアント シークレット] の値をコピーします。
-
エージェント コードで認証する
エージェントを認証するには、ADK を使用するか、Agent Identity API を直接呼び出します。
ADK
ADK の MCP ツールセットを使用して、エージェントのコードで認証プロバイダを参照します。
from google.adk.agents.llm_agent import LlmAgent from google.adk.auth.credential_manager import CredentialManager from google.adk.integrations.agent_identity import GcpAuthProvider, GcpAuthProviderScheme from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams from google.adk.tools.mcp_tool.mcp_toolset import McpToolset from google.adk.auth.auth_tool import AuthConfig # Register the Google Cloud Auth Provider so the CredentialManager can use it. CredentialManager.register_auth_provider(GcpAuthProvider()) # The URI to redirect the user to after consent is granted and the # callback is received by the auth provider. CONTINUE_URI = "https://YOUR_FRONTEND_URL/validateUserId" # Create the Auth Provider scheme using the auth provider's full resource name. auth_scheme = GcpAuthProviderScheme( name="projects/PROJECT_ID/locations/LOCATION/connectors/AUTH_PROVIDER_NAME", continue_uri=CONTINUE_URI ) # Configure an MCP tool with the authentication scheme. toolset = McpToolset( connection_params=StreamableHTTPConnectionParams(url="https://YOUR_MCP_SERVER_URL"), auth_scheme=auth_scheme, ) # Initialize the agent with the authenticated tools. agent = LlmAgent( name="AGENT_NAME", model="gemini-2.5-flash", instruction="AGENT_INSTRUCTIONS", tools=[toolset], )
例: BigQuery MCP に接続する
次の例は、3-legged OAuth を使用してエージェントを BigQuery MCP サーバーに接続する agent.py 構成を示しています。
import os from google.adk.agents import Agent from google.adk.apps import App from google.adk.auth.credential_manager import CredentialManager from google.adk.integrations.agent_identity import GcpAuthProvider, GcpAuthProviderScheme from google.adk.models import Gemini from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams from google.adk.tools.mcp_tool.mcp_toolset import McpToolset import google.auth from google.genai import types _, project_id = google.auth.default() os.environ["GOOGLE_CLOUD_PROJECT"] = "PROJECT_ID" os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "True" bigquery_mcp_auth_provider_id = "AUTH_PROVIDER_NAME" bigquery_mcp_endpoint = os.environ.get( "BIGQUERY_MCP_ENDPOINT", "https://bigquery.googleapis.com/mcp" ) # Register Google Cloud auth provider for Agent Identity Credentials service CredentialManager.register_auth_provider(GcpAuthProvider()) # The URI to redirect the user to after consent is granted and the callback is received. CONTINUE_URI = "http://127.0.0.1:8501/validateUserId" bigquery_mcp_auth_scheme = GcpAuthProviderScheme( name=f"projects/{project_id}/locations/LOCATION/connectors/{bigquery_mcp_auth_provider_id}", scopes=["https://www.googleapis.com/auth/bigquery"], continue_uri=CONTINUE_URI, ) bigquery_mcp_tools = McpToolset( connection_params=StreamableHTTPConnectionParams(url=bigquery_mcp_endpoint), auth_scheme=bigquery_mcp_auth_scheme, errlog=None, ) root_agent = Agent( name="root_agent", model=Gemini( model="gemini-2.5-flash", retry_options=types.HttpRetryOptions(attempts=3), ), instruction=( "You are a helpful AI assistant designed to provide accurate and useful" " information. You can also use your BigQuery MCP tools to look up" " BigQuery data." ), tools=[bigquery_mcp_tools], ) app = App( root_agent=root_agent, name="AGENT_NAME", )
ADK
ADK の認証済み関数ツールを使用して、エージェントのコードで認証プロバイダを参照します。
import httpx from google.adk.agents.llm_agent import LlmAgent from google.adk.auth.credential_manager import CredentialManager from google.adk.integrations.agent_identity import GcpAuthProvider from google.adk.integrations.agent_identity import GcpAuthProviderScheme from google.adk.apps import App from google.adk.auth.auth_credential import AuthCredential from google.adk.auth.auth_tool import AuthConfig from google.adk.tools.authenticated_function_tool import AuthenticatedFunctionTool from vertexai import agent_engines # First, register Google Cloud auth provider CredentialManager.register_auth_provider(GcpAuthProvider()) # The URI to redirect the user to after consent is completed. CONTINUE_URI = "WEB_APP_VALIDATE_USER_URI" # Create Auth Config spotify_auth_config = AuthConfig( auth_scheme=GcpAuthProviderScheme( name="projects/PROJECT_ID/locations/LOCATION/connectors/AUTH_PROVIDER_NAME", continue_uri=CONTINUE_URI ) ) # Use the Auth Config in Authenticated Function Tool spotify_search_track_tool = AuthenticatedFunctionTool( func=spotify_search_track, auth_config=spotify_auth_config ) # Sample function tool async def spotify_search_track(credential: AuthCredential, query: str) -> str | list: token = None if credential.http and credential.http.credentials: token = credential.http.credentials.token if not token: return "Error: No authentication token available." async with httpx.AsyncClient() as client: response = await client.get( "https://api.spotify.com/v1/search", headers={"Authorization": f"Bearer {token}"}, params={"q": query, "type": "track", "limit": 1}, ) # Add your own logic here agent = LlmAgent( name="AGENT_NAME", model="gemini-2.5-flash", instruction="AGENT_INSTRUCTIONS", tools=[spotify_search_track_tool], ) app = App( name="APP_NAME", root_agent=agent, ) vertex_app = agent_engines.AdkApp(app_name=app)
ADK
ADK の Agent Registry MCP ツールセットを使用して、エージェントのコードで認証プロバイダを参照します。
from google.adk.agents.llm_agent import LlmAgent from google.adk.auth.credential_manager import CredentialManager from google.adk.integrations.agent_identity import GcpAuthProvider from google.adk.integrations.agent_identity import GcpAuthProviderScheme from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPConnectionParams from google.adk.tools.mcp_tool.mcp_toolset import McpToolset from google.adk.auth.auth_tool import AuthConfig from google.adk.integrations.agent_registry import AgentRegistry # First, register Google Cloud auth provider CredentialManager.register_auth_provider(GcpAuthProvider()) # The URI to redirect the user to after consent is completed. CONTINUE_URI="WEB_APP_VALIDATE_USER_URI" # Create Google Cloud auth provider by providing auth provider full resource name auth_scheme = GcpAuthProviderScheme( name="projects/PROJECT_ID/locations/LOCATION/connectors/AUTH_PROVIDER_NAME", continue_uri=CONTINUE_URI ) # Set Agent Registry registry = AgentRegistry(project_id="PROJECT_ID", location="global") toolset = registry.get_mcp_toolset( mcp_server_name="projects/PROJECT_ID/locations/" "global/mcpServers/" "agentregistry-00000000-0000-0000-0000-000000000000", auth_scheme=auth_scheme, ) # Example MCP tool toolset = McpToolset( connection_params=StreamableHTTPConnectionParams(url="MCP_URL"), auth_scheme=auth_scheme, ) agent = LlmAgent( name="AGENT_NAME", model="MODEL_NAME", instruction="AGENT_INSTRUCTIONS", tools=[toolset], )
API を直接使用する
ADK を使用していない場合、エージェントは iamconnectorcredentials.retrieveCredentials API
を呼び出してトークンを取得する必要があります。
これは複数ステップの OAuth フローであるため、API は長時間実行オペレーション(LRO) を返します。エージェントはオペレーションのライフサイクルを処理する必要があります。
- 初期リクエスト: エージェントが
retrieveCredentialsを呼び出します。 - 同意が必要: ユーザーが同意していない場合、API はメタデータに
auth_uriとconsent_nonceを含む LRO を返します。 - フロントエンドのリダイレクト: アプリケーションはユーザーを
auth_uriにリダイレクトする必要があります。 - 完了: ユーザーが同意したら、
FinalizeCredentialを使用してフローを完了し、 トークンを取得します。consent_nonce
クライアントサイド アプリケーションを更新する
3-legged OAuth のユーザーのログインとリダイレクトを処理するには、クライアントサイド アプリケーションで次の手順を実装して、ユーザーの同意を管理し、会話を再開する必要があります。
サンプル UI サーバー
uvicorn を使用する完全なサンプル UI サーバーをダウンロードして実行できます。始める前に、GitHub
アカウントとpipがインストールされていることを確認してください。
サンプル UI サーバーを設定して実行する手順は次のとおりです。
-
adk-pythonGitHub リポジトリのクローンを作成します。git clone https://github.com/google/adk-python.git
-
リポジトリに移動して、Python 仮想 環境を有効にします。
cd adk-python python3 -m venv .venv source .venv/bin/activate
-
サンプル UI クライアント ディレクトリに移動します。
cd contributing/samples/integrations/gcp_auth/client
-
クライアントの依存関係をインストールします。
pip install -r requirements.txt
-
サーバーを起動する前に、
AGENT_PROJECT_DIR環境変数を設定して、エージェント コードが配置されているディレクトリを 指定します。指定しない場合、アプリケーションはデフォルトでクライアント ディレクトリの親フォルダ内のエージェントを検索します。uvicornを使用してサンプル UI サーバーを起動します。ポートが OAuth クライアントで構成されたリダイレクト URI と一致していることを確認します。export AGENT_PROJECT_DIR="/path/to/your/agent_project" uvicorn main:app --port 8501 --reload
-
ブラウザで
http://localhost:8501を開きます。(注: OAuth リダイレクト URL ではlocalhostホスト名が必須であるため、127.0.0.1ではなくlocalhostを使用する必要があります)。設定を指定して [設定を保存して適用] をクリックし、エージェントを操作します。
カスタム UI アプリケーション
カスタム UI アプリケーションでこれらの機能を直接実装するには、次の手順を行います。
認可トリガーを処理する
エージェントがユーザーの同意を必要とすると、adk_request_credential
関数呼び出しが返されます。アプリケーションはこの呼び出しをインターセプトして、ユーザー認可ダイアログまたはリダイレクトを開始する必要があります。
認証プロバイダから提供された consent_nonce を記録して、セッション
コンテキストを管理します。この nonce は、検証ステップでユーザーを確認するために必要です。ユーザーが同意した後にフローを再開できるように、セッション内に
auth_config 値と auth_request_function_call_id 値を保存します。
if (fc := get_auth_request_function_call(event_data)): print("--> Authentication required by agent.") try: auth_config = get_auth_config(fc) auth_uri, consent_nonce = handle_adk_request_credential( auth_config, AUTH_PROVIDER_NAME, request.user_id ) if auth_uri: event_data['popup_auth_uri'] = auth_uri fc_id = ( fc.get('id') if isinstance(fc, dict) else getattr(fc, 'id', None) ) event_data['auth_request_function_call_id'] = fc_id event_data['auth_config'] = auth_config.model_dump() # Store session state if session_id: consent_sessions[session_id] = { "user_id": request.user_id, "consent_nonce": consent_nonce } except Exception as e: print(f"Error handling adk_request_credential: {e}") # Optionally, add logic to inform the user about the error. def handle_adk_request_credential(auth_config, auth_provider_name, user_id): ec = auth_config.exchanged_auth_credential if ec and ec.oauth2: oauth2 = ec.oauth2 return oauth2.auth_uri, oauth2.nonce return None, None
ユーザー検証エンドポイントを実装する
ウェブサーバーに検証エンドポイントを実装します(構成時に continue_uri
として指定したのと同じ URI)。このエンドポイントは次の処理を行う必要があります。
user_id_validation_state、auth_provider_name、uuidをクエリ パラメータとして受け取ります。- セッション ストレージから
user_id値とconsent_nonce値 を取得します。複数の認可フローが同時に実行される場合は、uuidを使用して正しいセッションを照合します。 - これらの
パラメータを使用して、認証プロバイダの
FinalizeCredentialsAPI を呼び出します。 - 成功レスポンスを受け取ったら、認可ウィンドウを閉じます。
例: FastAPI 検証エンドポイント(main.py)
次の例は、OAuth コールバックを処理してユーザー認証情報を確定する完全な FastAPI 検証エンドポイントを示しています。
@app.api_route("/validateUserId", methods=["GET"]) async def validate_user(request: Request): auth_provider_name = request.query_params.get("auth_provider_name") session_id = request.cookies.get("session_id") session = consent_sessions.get(session_id, {}) payload = { "userId": session.get("user_id"), "userIdValidationState": request.query_params.get( "user_id_validation_state" ), "consentNonce": session.get("consent_nonce"), } base_url = "https://iamconnectorcredentials.googleapis.com/v1alpha" finalize_url = f"{base_url}/{auth_provider_name}/credentials:finalize" try: async with httpx.AsyncClient(timeout=30.0) as client: resp = await client.post(finalize_url, json=payload) resp.raise_for_status() except httpx.HTTPError as e: err_text = e.response.text if hasattr(e, "response") else str(e) status = e.response.status_code if hasattr(e, "response") else 500 return HTMLResponse(err_text, status_code=status) return HTMLResponse(""" <script> window.close(); </script> <p>Success. You can close this window.</p> """)
エージェントの会話を再開する
ユーザーが同意して認可ウィンドウが閉じたら、セッション データから auth_config 値と
auth_request_function_call_id 値を取得します。会話を続行するには、これらの詳細を function_response
としてエージェントへの新しいリクエストに含めます。
if (request.is_auth_resume and session.auth_request_function_call_id and session.auth_config): auth_content = types.Content( role='user', parts=[ types.Part( function_response=types.FunctionResponse( id=session.auth_request_function_call_id, name='adk_request_credential', response=session.auth_config ) ) ], ) # Send message to agent async for event in agent.async_stream_query( user_id=request.user_id, message=auth_content, session_id=session_id, ): # ...
エージェントをデプロイする
にエージェントをデプロイするときは、Agent Identity が 有効になっていることを確認してください。 Google Cloud
Gemini Enterprise Agent Platform の
Agent Runtime にデプロイする場合は、
identity_type=AGENT_IDENTITY フラグを使用します。
import vertexai
from vertexai import types
from vertexai.agent_engines import AdkApp
# Initialize the Vertex AI client with v1beta1 API for Agent Identity support
client = vertexai.Client(
project="PROJECT_ID",
location="LOCATION",
http_options=dict(api_version="v1beta1")
)
# Use the proper wrapper class for your Agent Framework (e.g., AdkApp)
app = AdkApp(agent=agent)
# Deploy the agent with Agent Identity enabled
remote_app = client.agent_engines.create(
agent=app,
config={
"identity_type": types.IdentityType.AGENT_IDENTITY,
"requirements": [
"google-cloud-aiplatform[agent_engines,adk]",
"google-adk[agent-identity]"
],
},
)
次のステップ
- Agent Identity の認証に関する問題のトラブルシューティングを行う
- Agent Identity の概要を確認する
- 認証マネージャーで 2-legged OAuth を使用して認証する
- 認証マネージャーで API キーを使用して認証する
- Agent Identity 認証プロバイダを管理する