Skip to content

Validate a credential and resolve the caller

POST
/api/v1/auth/validate
curl --request POST \
--url https://localhost:8080/api/v1/auth/validate

Validate an IDP JWT, an enriched JWT issued by this service, or an API key supplied via Authorization: Bearer <jwt_or_api_key>, sync user data when applicable, and return the resolved user, organization, and permissions

Token is valid

Media type application/json
object
claims
object
key
additional properties
email
string
name
string
organization
object
id
integer
name
string
roles
Array<string>
permissions
Array<string>
userId
string
valid
boolean
Example generated
{
"claims": {
"additionalProperty": "example"
},
"email": "example",
"name": "example",
"organization": {
"id": 1,
"name": "example",
"roles": [
"example"
]
},
"permissions": [
"example"
],
"userId": "example",
"valid": true
}

Token is invalid or expired

Media type application/json
object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}

Internal server error

Media type application/json
object
error
string
error_description
string
Example
{
"error": "Unauthorized",
"error_description": "Invalid token"
}