Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Use the obtained Key, User ID, Role, and Cookie Key for the JWT Validator Policy:

    policy-dialogue-box.png

  • 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",
"kty": "RSA",
"n": "tPzmusbjBZThiVXqQkcCFYy3_JI__NaB58n6LmRkFZAsKURjfvO2KsyR_XZ6X9_7LGk8LApzTQ7ReJJhnDuCZ6p6OEs5BzqFLsW--JbbavZALzmw-Rnkl9Z9JiXL-E1xq6gpFpPsdHD8loRNa8YhHWNFQmGWRoWZzkNLc7yxKBCfJMe6ZtiXX00NPpCaxtaIKwFQGyfsYWDAqUcJmHNyA1rb_ByKlEV1_YgtjQPKdgY0-gOOhmONsz9MCAVrYk4s2yJWqVvSbZl31Na0FWlPu0zD4a9fm5XtyYuC0vS7ZIX694rXaheKWTRq9xssMPgAvnBZ0MVVUVd-8c6UrkH8Ww"
}

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

Fields marked with asterisk '*' are mandatory.
Info

Follow the same process for the HSA Signing Algorithm.