计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
JWT【效率与协作】Implement secure JWT authentication with proper validation, token lifecycle, and key management.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
| Topic | File |
|---|---|
| Algorithm selection | algorithms.md |
| Token lifecycle | lifecycle.md |
| Validation checklist | validation.md |
| Common attacks | attacks.md |
alg: none attack: reject tokens with algorithm "none"—some libraries accepted unsigned tokensexp (expiration): always set and verify—tokens without expiry live foreveriat (issued at): when token was created—useful for invalidation policiesnbf (not before): token not valid until this time—for scheduled accessiss (issuer): who created the token—verify to prevent cross-service token theftaud (audience): intended recipient—API should reject tokens for other audiencessub (subject): who the token represents—typically user IDexp is in future (with clock skew tolerance)iat is not unreasonably old (optional policy)iss matches expected issueraud includes your servicenbf if presentkid (key ID) claim to identify which key signed the tokenjsonwebtoken (Node), PyJWT (Python), java-jwt (Java), golang-jwt (Go)