OpenID Connect
OpenID Connect
OpenID Connectは、OAuth 2.0上に構築された認証レイヤーです。これにより、アプリはユーザーがサインインしたことを確認でき、サインインに関する標準的な情報を受け取ることができます。
もう一つの例
HRポータルは、会社の発行者を見つけ、`nonce` と `state` を送信し、IDトークンを受信します。署名、発行者、受信者、有効期限、`nonce` を確認します。その後、`sub` を安定したユーザーIDとして使用します。メールは表示用データにすぎません。API呼び出しには、引き続き別のアクセストークンを使用します。
主な部分
- 01OpenID プロバイダ
- 02IDトークンとユーザー情報のクレーム
- 03Relying Party(依存当事者)検証
以下の場合に使用します
アプリがOpenIDプロバイダーから標準のIDクレームを必要とする場合に、共有サインインに使用します。
以下の場合は使用しないでください
必要なすべてのチェックなしでIDトークンを受け入れないでください。それをAPIアクセス用トークンとして使用したり、身元情報をそれ自体で権限として扱わないでください。
コードで使用する名前
OIDC discovery + Authorization Code flow + validated ID Token claims 出荷前に
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with OpenID Connect (OpenID Connect)。 User context:HRポータルは、会社の発行者を見つけ、`nonce` と `state` を送信し、IDトークンを受信します。署名、発行者、受信者、有効期限、`nonce` を確認します。その後、`sub` を安定したユーザーIDとして使用します。メールは表示用データにすぎません。API呼び出しには、引き続き別のアクセストークンを使用します。 Technical concept or control:OpenID Connect (OpenID Connect)。 Why it fits:アプリがOpenIDプロバイダーから標準のIDクレームを必要とする場合に、共有サインインに使用します。 Do not use it when:必要なすべてのチェックなしでIDトークンを受け入れないでください。それをAPIアクセス用トークンとして使用したり、身元情報をそれ自体で権限として扱わないでください。 Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):きちんとした書類でも、まだドラフトやリリース候補、あるいは最終版かもしれません。ステータスや、ブラウザやプラットフォームの対応状況を確認しましょう。 Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
このリクエストを確認する
Review how OpenID Connect (OpenID Connect) is used now. Definition: OpenID Connectは、OAuth 2.0上に構築された認証レイヤーです。これにより、アプリはユーザーがサインインしたことを確認でき、サインインに関する標準的な情報を受け取ることができます。 Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.