Access Token
アクセストークン
アクセストークンは、アプリが保護されたサービスに送信して何ができるかを示す資格情報です。通常、ルールは発行者、受け入れるサービス、権限、および有効期間を制限します。
もう一つの例
カレンダーアプリには calendar.read のベアラートークンがあります。オーディエンスは api.calendar.example で、持続時間は10分です。API はこれをチェックし、有効期限前の読み取りのみを許可します。このトークンを保持することでアクセスは可能ですが、個人の身元を証明するものではありません。リフレッシュトークンには別の役割があります。
主な部分
- 01認可付与
- 02範囲と対象者
- 03有効期限と検証
以下の場合に使用します
この用語は、アプリが明確な認可付与のもとで API に与える資格情報を指す場合に使用してください。
以下の場合は使用しないでください
アクセストークンをパスワード、セッションID、IDトークン、APIキー、またはリフレッシュトークンの別名として使用しないでください。
コードで使用する名前
Authorization: Bearer <token> 出荷前に
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 アクセストークン (Access Token)。 User context:カレンダーアプリには calendar.read のベアラートークンがあります。オーディエンスは api.calendar.example で、持続時間は10分です。API はこれをチェックし、有効期限前の読み取りのみを許可します。このトークンを保持することでアクセスは可能ですが、個人の身元を証明するものではありません。リフレッシュトークンには別の役割があります。 Technical concept or control:アクセストークン (Access Token)。 Why it fits:この用語は、アプリが明確な認可付与のもとで API に与える資格情報を指す場合に使用してください。 Do not use it when:アクセストークンをパスワード、セッションID、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):この標準は、列挙された範囲のみを対象とします。視覚スタイル、製品の判断、またはVibularyの例は選びません。 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 アクセストークン (Access Token) is used now. Definition: アクセストークンは、アプリが保護されたサービスに送信して何ができるかを示す資格情報です。通常、ルールは発行者、受け入れるサービス、権限、および有効期間を制限します。 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.