You need to validate JWTs issued by an external identity provider for multiple audiences and also must support key rotation without redeployments. How should the API validate tokens?

Answer

Configure API Gateway authorizer/JWT validation using a JWKS endpoint (or OIDC discovery) so verification keys are refreshed automatically

Explanation

JWKS/OIDC discovery enables automatic retrieval of current signing keys, reducing the operational risk of key rotation. Proper audience and signature validation ensures tokens are for the correct service.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list