Key Management¶
Manage tenant JWT signing keys.
List Keys¶
curl -X GET http://localhost:8000/api/sso/v1/tenants/TENANT_ID/keys \
-H "Authorization: Bearer TOKEN"
Generate Key¶
curl -X POST http://localhost:8000/api/sso/v1/tenants/TENANT_ID/keys \
-H "Authorization: Bearer TOKEN" \
-d '{"algorithm": "EdDSA"}'
Rotate Keys¶
curl -X POST http://localhost:8000/api/sso/v1/tenants/TENANT_ID/keys/rotate \
-H "Authorization: Bearer TOKEN"
Key Rotation Strategy¶
- Generate new key
- Both keys active (old tokens still valid)
- New tokens signed with new key
- After all tokens expire, deactivate old key
JWKS Endpoint¶
Public keys available at: