故障排查步骤要求把有效访问令牌粘贴到网页
原文依据:2 处指南要求复制访问令牌并粘贴到 `jwt.ms`。访问令牌是 Bearer 凭据;把完整令牌交给网页会让该页面及其运行环境接触令牌内容。仅声明该网站“安全”不能消除此数据暴露面。
若域名、浏览器扩展、代理、日志或当前会话被入侵,令牌可能在到期前被重放,并按其 `scp` 或 `roles` 权限访问数据。
故障排查文档主动要求复制完整访问令牌并粘贴到外部网页。即使页面属于所述服务且用于解码,浏览器页面及其脚本仍会接触这一 Bearer 凭据;若令牌尚有效,泄露可能允许按其权限调用 API。用户可要求作者提供本地离线解码方法,或至少使用短期、低权限、非生产令牌并在之后撤销会话。
## Token IssuesUnless the the access token is encrypted, you can decode and view its claims securely at https://jwt.ms. **Don't** use any other website to decode an access token. Compare the claims in the token with the app registration's configuration to identify issues.查看另外 1 个位置
### JWT Token Decoder**Tool:** https://jwt.ms**How to use:**1. Copy your access token2. Paste into jwt.ms3. Review claims: - `aud` - Audience (should match your API) - `iss` - Issuer (should be login.microsoftonline.com) - `scp` - Delegated permissions - `roles` - Application permissions - `exp` - Expiration timestamp - `oid` - User object ID