jwt-validate-mode
This command controls whether the transaction fails when JWT validation fails.
Syntax
jwt-validate-mode request
jwt-validate-mode require
Parameters
request
- Indicates that when token validation fails, the transaction does not fail. The value is the default value.
require
- Indicates that when token validation fails, the transaction fails.
Guidelines
The jwt-validate-mode command controls whether the transaction fails when JWT validation fails. This command does not control whether a token is validated.
If you do not want and do not need JWT token validation, do not specify a URL with the jwt-url command.
Examples
- Retrieve JWKS data from
https://example.com/oauth2/certs
, but the transaction does not fail when JWT validation fails.jwt-url https://example.com/oauth2/certs jwt-validate-mode request
- Retrieve JWKS data from
https://example.com/oauth2/certs
, but the transaction fails when JWT validation fails.jwt-url https://example.com/oauth2/certs jwt-validate-mode require