Skip to main content

🔑 Customize your Json Web Tokens

Introduction

What's a JWT

About the Cryptr JWT

  • Access Token
  • ID Token
  • User Metadata

Soon : Organization & Application Metadata

Soon : Get a flatten version of your Custom JWT

Create new key values in your JWT

Query

curl -v -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Domain: ${YOUR_OWN_DOMAIN}" \
-d '{
{
"name": "department",
"type": "STRING",
"required": "true"
}
}' "https://${YOUR_CRYPTR_SERVICE_URL}/api/v2/jwt-user-metakey "


Preview your JWT Customization

Query

curl -v -X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Domain: ${YOUR_OWN_DOMAIN}" \
' "https://${YOUR_CRYPTR_SERVICE_URL}/api/v2/jwt-user-metakey "


PARAMETERS

domain ID REQUIRED

The domain of the organization

RETURNS

Access token and ID token samples with all keys for each.