...
Use the obtained Key, User ID, Role, and Cookie Key for the JWT Validator Policy:
Below is the example that showcases the JWT Validator Policy set up in the SnapLogic UI:
Field names with an '*' (Asterisk symbol) suffix are mandatory fields.
Parameter Name | Field Type | Example | |
---|---|---|---|
Label* | String | JWT Validator Policy | |
When this policy should be applied | String/Expression | request.method == "POST" | |
Signing Algorithm* | Dropdown | RSA | |
Key* | String | { "e": "AQAB", | |
Extract into $token* |
| ||
| Customer Header Keys | String/Expression | x-api-key |
Custom Query String Parameter Keys | String/Expression | myquery | |
Custom Cookie Key | String/Expression | Cookie_4 | |
Authorization Header Type | String | bearer | |
Extract User Info* | N/A | ||
| User ID Expression* | String/Expression | $sub |
Roles Expression* | String/Expression | $aud | |
Status | Dropdown List | Enabled |
Info |
---|
Follow the same process for the HSA Signing Algorithm. |