OAuth/OIDC × エージェント
- 記事ID
- EA-162
要点
「OAuth 2.0は限定的なHTTPリソースアクセスの委任であり、OIDCはOAuth上でエンドユーザーの認証結果と記述・判断(claims)を扱うアイデンティティ層である。エージェントの運用においては、人間/ワークロード/サービスのアイデンティティ、リソース/オーディエンス、スコープ、委任チェーン、ツールの実行アクション、承認を個別に結び付ける必要がある。したがって、OAuthやOIDCが成功したことだけでは、エージェントの権限、意図、および安全な実行を証明することにはならない。」
現在の判断
ESTABLISHED [S1 support]: OAuth 2.0 is an authorization framework in which a third-party application can obtain limited access to an HTTP service. It is about access delegation, not a complete statement that the caller is a human, agent, or trusted workload.
どこまで当てはまるか
発行者/検出およびTLS、クライアント登録/タイプ、認可コードフロー、PKCEの強制、リダイレクトURI、state/nonce、トークン発行者/対象/リソース、スコープと同意、アクセストークン/リフレッシュトークンの有効期間とローテーション/失効、OIDCの記述・判断と検証、ワークロード/サービスID、トークン交換/委譲プロファイル、組織の利用環境/管理者ポリシー、リージョン/プラン、秘密情報/鍵の保存、監査および帰属。
詳しく理解する
対象範囲と前提
アイデンティティ/ガバナンス/セキュリティ/相互運用性/エンタープライズAIコア/プロバイダーマッピング
検討ポイント
What do OAuth 2.0, OIDC Core, RFC 9700, and PKCE establish for access and end-user identity, and what agent-specific identity/delegation questions remain open?
根拠資料の対応表
[S1] SOURCE_CLASS: standards_track_rfc | EXACT_TITLE: RFC 6749 - The OAuth 2.0 Authorization Framework | AUTHOR_ORG: IETF / RFC Editor; Dick Hardt (editor) | CANONICAL_URL: https://www.rfc-editor.org/rfc/rfc6749.html | PUBLICATION_UPDATE_ACCESS: October 2012; accessed 2026-09-14 00:10 JST | VERSION_RELEASE_TAG: RFC 6749 | SUPPORTING_LOCATOR: abstract and authorization framework sections describing a third-party application obtaining limited access to an HTTP service | EVIDENCE_LABEL: 仕様確認済み | RELATION: support for OAuth authorization framework; limit because OAuth does not itself provide an end-user identity profile. [S2] 出典クラス: ID標準 | 正式名称: OpenID Connect Core 1.0 (errata set 2 を含む) | 著者組織: OpenID Foundation | 正式URL: https://openid.net/specs/openid-connect-core-1_0.html | 公開情報の更新アクセス: 現在の errata-set-2 ページ; アクセス日: 2026-09-14 00:10 JST | リリース版タグ: OpenID Connect Core 1.0 errata set 2 | 参照用ロケーター: 記録されたウェブキャプチャ内の要約 16-18行、導入 212-217行、記述セクション 1548-1566行 | 根拠ラベル: 検証済み仕様 | 関係性: ID層、認証、および記述(claims)をサポート。アクセス認可との区別のための制限事項。 [S3] SOURCE_CLASS: best_current_practice_rfc | EXACT_TITLE: RFC 9700 - Best Current Practice for OAuth 2.0 Security | AUTHOR_ORG: IETF / RFC Editor | CANONICAL_URL: https://www.rfc-editor.org/rfc/rfc9700.html | PUBLICATION_UPDATE_ACCESS: 2025-01; accessed 2026-09-14 00:10 JST | VERSION_RELEASE_TAG: RFC 9700 | SUPPORTING_LOCATOR: authorization-code binding and PKCE lines 576-586; refresh-token protection lines 774-790 | EVIDENCE_LABEL: 仕様確認済み | RELATION: support for current security recommendations; limit because BCP recommendations require deployment enforcement. [S4] SOURCE_CLASS: standards_track_rfc | EXACT_TITLE: RFC 7636 - Proof Key for Code Exchange by OAuth Public Clients | AUTHOR_ORG: IETF / RFC Editor; Nat Sakimura et al. | CANONICAL_URL: https://www.rfc-editor.org/rfc/rfc7636.html | PUBLICATION_UPDATE_ACCESS: September 2015; accessed 2026-09-14 00:10 JST | VERSION_RELEASE_TAG: RFC 7636 | SUPPORTING_LOCATOR: abstract lines 9-17 and introduction lines 108-113 describing authorization-code interception and PKCE mitigation | EVIDENCE_LABEL: 仕様確認済み | RELATION: support for PKCE threat/countermeasure; limit because PKCE does not solve all token/delegation problems.
PRIMARY SOURCE RECORD
MCP dated specification and release boundary; A2A latest plus v0.3.0 fixed specification and author repository; AG-UI official docs/events draft and repository; OpenAPI 3.1.0 and OpenAI function-calling docs; CloudEvents v1.0.2 core/binding; OAuth RFC 6749, OIDC Core 1.0 errata set 2, RFC 9700, and RFC 7636. Canonical URLs and locators are recorded per packet.
EVIDENCE BOUNDARY
Official specifications establish the documented contract at the recorded version/access boundary. They do not prove a particular plan, region, tenant, implementation, conformance, quality, security posture, business outcome, or SLO. LIVE_SIDE_EFFECTS: 0 NEXT_MINIMUM_EA: EA-163
確認できていること
ESTABLISHED [S2 support]: OIDC Core is an identity layer on OAuth 2.0. It enables a client to verify the End-User identity based on authorization-server authentication and obtain claims; the introduction explicitly notes that OAuth 2.0 alone does not define standard end-user identity information.
確立済み [S3+S4サポート]: RFC 9700は、認可コードをクライアント/デバイスのコンテキストに紐付ける方法を記述し、PKCEを対策として特定しています。RFC 7636は、認可コードの傍受の脅威とPKCEの手法を定義しています。また、RFC 9700は、リフレッシュトークンが発行される際に、リスクに基づいたリフレッシュトークンの決定、およびスコープとリソースの紐付けを要求しています。
推論 [S1-S4]: これらの標準をエージェントアーキテクチャに適用するには、人間の識別情報、ワークロード/サービスの識別情報、委任された権限、リソース/対象、スコープ、エージェントの実行、およびツールの操作との間に、明示的なマッピングが必要です。基本となる出典自体には、エージェントの意図、自律性、委任の連鎖、またはビジネス上の承認のセマンティクスは定義されていません。
よくある失敗・反証
OAuth/OIDC success does not prove least privilege, user intent, agent identity, tool authorization, correct audience, tenant isolation, or safe downstream action. Bearer/refresh-token leakage, confused deputy, over-broad scope, issuer mix-up, redirect/PKCE errors, stale claims, replay, token exchange, and service-account misuse remain deployment risks. RFC 9700 is a BCP, not an automatically enforced control. No provider or tenant implementation was tested.
実務での使い方
Evidence-only desk research. No authorization request, token exchange, login, service-account operation, or authenticated tenant action was performed.
No identity-provider interoperability, PKCE negative test, token replay, scope/audience, delegation-chain, revocation, or audit-attribution benchmark was run.
Verify issuer, signature, nonce/state, PKCE, audience/resource, scope, expiry, revocation/rotation, and tenant binding before tool execution. Never place tokens in prompts or ordinary logs. Audit should link subject/client/workload/agent-run/delegation-chain/tool-action/approval; base RFCs do not guarantee that linkage. Cost/operability includes authorization round trips, token refresh, introspection/revocation, key rotation, policy evaluation, and human approval; not measured.
Six EA_IDs each have independent exact topic, evidence table, findings, limits/counterevidence/failure envelope, gates, implementation state, benchmark boundary, security/cost/operability notes, safe wording, handoff, unknowns, and stop condition. Shared sources are not treated as shared claims.
まだ確認できていないこと
agent identity/delegation standard; token-exchange and resource-indicator profile for agents; non-human identity semantics; provider/tenant scope mapping; card/run/tool attribution; dynamic registration; sender-constrained tokens; revocation propagation; incident rates; audit/cost/SLO.
外部根拠の再確認日が正式な本文・公開管理情報で確定していないため、現行性は未確認のまま保持する。確認日を推測して補わない。
根拠資料
この根拠欄には、主張に対応づけて登録された外部出典がありません。本文中の引用・参考資料がある場合は、適用条件や未確認事項とあわせて確認してください。
このページから探す
種類
主題
やりたいこと
読み終えたら、次の判断へ
この記事で確かめた条件を、関連する用語・道具・手段・運用知識に接続して確認できます。実装や更新の判断には、各記事の確認時点・根拠・未確認事項を引き継いでください。
最初の知見から実務判断まで、3つの読み方を見る