Cluster authentication service reference (CAS)

Steaming Token (Access Token)

<url>/stream/token/v2/

GET Https://<url>/stream/token/v2/

Path Parameters

NameTypeDescription

/stream/token/

string

Headers

NameTypeDescription

Auth-API-Secret

string

Customer api secret

Auth-API-Key

string

Customer api key

Accept

string

application/json

{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyaWQiOiJlMDFkYmU0NTg5MzU0YmU3OTc3OTg0ZmU2NjIxMTgwOCIsInVuY3QiOiJiNjA2NGFlZjVkZTU0NWZiODM1...
}

Example - acquiring an Access Token

curl -iL --request GET --url https://YOUR_CAS_URL/stream/token/v2/ --header 'auth-api-key: API_KEY'   --header 'auth-api-secret: API_SECRET'

The Access Token is a JWT token - more about JWT you can read - here.

A successful response will look like that:

{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...."
}

You can get your API_KEY and API_SECRET in your private area, here.

Last updated