v0.0.9
OAS 2.0

Authorisation - API definition

Authorisation - API definition

Server: https://api.cls.oob.ockto.cloud/auth
Client Libraries

AUTHORISATION

AUTHORISATION Operations

Get an encrypted JWT after successful signing

Get an encrypted JWT after the signed request is verified

Body
application/json
  • userId
    Type:string

    Internal user id associated with the JWT token. Typically prefixed with the tenantId and tenantAppId.

  • tenantUserId
    Type:string

    Tenant user id associated with the JWT token. Typically as used within the tenant's system.

Responses
  • 200

    OK - JWT Returned

  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Forbidden

  • 500

    500 Internal Server Error

  • 503

    503 Service Unavailable

Request Example forPOST/token
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"
}

Models