Header
Defines the signing algorithm (alg) and key identifier (kid); include examples for RS256 and HS256 and guidance on kid use.
A consistent JWT template reduces implementation errors, improves interoperability across microservices and third-party clients, and simplifies audits. Standardization supports secure practices like short token lifetimes, explicit audiences, and documented key rotation, which together lower the risk of credential leakage and unauthorized access.
Defines the signing algorithm (alg) and key identifier (kid); include examples for RS256 and HS256 and guidance on kid use.
Document required standard claims (iss, sub, aud, exp, iat) with formats, types, and validation rules for each claim.
List permitted application-specific claims and acceptable values; avoid overloading tokens with excessive data to reduce attack surface.
Specify preferred algorithms, key sizes, how to sign, and how to expose verification keys (JWKS endpoint or key distribution).
State exact checks: signature verification, exp/i at comparisons, aud/iss equality checks, and acceptable clock skew.
Include rotation schedules, revocation process, logging/audit requirements, and emergency key-compromise procedures.
The template bridges development and security by making expectations explicit and replicable across production, staging, and third-party integrations.
Xerox integrated templated tokens into their NetSuite workflows to standardize authentication across services.
The team used a consistent JWT template to secure API calls from patient portals and backend systems.
| Field | Recommended value |
|---|---|
| Default token lifetime | 300 seconds (5 minutes) for access tokens |
| Refresh policy | Issue short-lived access tokens with refresh tokens |
| Clock skew allowance | Allow up to 120 seconds drift |
| JWKS endpoint | HTTPS endpoint exposing public keys |
Also list supported integrations and formats (OpenAPI examples, Postman collections, JWKS) and document any platform-specific constraints such as CORS, cookie policies, or SDK version compatibility.
Provide request/response examples showing Authorization header usage and sample payloads; include securitySchemes definitions for automated client generation.
Include ready-to-run requests for token issuance and protected endpoints with environment variables for issuer, client_id, and JWKS URL.
Document the JWKS structure, key rotation cadence, and kid mapping so verifiers can fetch and cache keys safely.
Provide an approach for token revocation or short-lived tokens combined with server-side session invalidation for high-risk scenarios.
Access tokens: 5–60 minutes depending on sensitivity
Rotate refresh tokens every 30–90 days and bind to client/device
Rotate signing keys every 90–365 days based on risk profile
Review token issuance logs and JWKS usage monthly
Document expected revocation propagation time and test it quarterly
| signNow | DocuSign | Adobe Sign | PandaDoc | HelloSign | |
|---|---|---|---|---|---|
| Starting Price | $8/user/mo | $15/user/mo | $14/user/mo | $19/user/mo | $15/user/mo |
| Free Trial | 7-day free trial | Varied by plan | Varied by plan | Varied by plan | Varied by plan |
| Bulk Send | Yes | Yes | Yes | Yes | Yes |
| Audit Trail | Yes | Yes | Yes | Yes | Yes |
| HIPAA Compliant | Yes | Yes | Yes | No | No |