v0.0.9
OAS 2.0
Authorisation - API definition
Client Libraries
Get an encrypted JWT after the signed request is verified
Internal user id associated with the JWT token. Typically prefixed with the tenantId and tenantAppId.
Tenant user id associated with the JWT token. Typically as used within the tenant's system.
OK - JWT Returned
400 Bad Request
401 Unauthorized
403 Forbidden
500 Internal Server Error
503 Service Unavailable
curl https://api.cls.oob.ockto.cloud/auth/token \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: YOUR_SECRET_TOKEN' \
--data '{
"userId": "companyA_app1_user674638475",
"tenantUserId": "user674638475"
}'
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"userId": "tenantA_app1_user12345",
"tenantUserId": "user12345",
"tenantId": "tenantA",
"tenantAppId": "app1"
}OK - JWT Returned