- Print
- PDF
Token Generation
Knovvu Cloud SR service uses bearer tokens for authentication and authorization.
When your subscription is created your Client Id and Client Secret generated from License Distribution Manager (LDM) will be sent to you. Please use them to generate tokens as suggested below.
Endpoint
https://identity.ldm.knovvu.com/connect/token
REST Service Client Actions | REST Service Actions |
---|---|
POST Get Integration Token LDM endpoint | Create a bearer token. |
Post condition | API Client ID, API Client Secret and below parameters are given in body: grant_type=client_credentials scope=Ldm_Integration |
Business Rules | Subscription should be valid. |
Curl for request example is given below.
curl --location 'https://identity.ldm.knovvu.com/connect/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=[client_id]' \
--data-urlencode 'client_secret=[client_secret]=' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=Ldm_Integration'
Example of respond message is given below:
{
"access_token": "[token]",
"expires_in": 31536000,
"token_type": "Bearer",
"scope": "Ldm_Integration"
}
LDM tokens generated for access to our service are typically valid for a duration of one year (365 days) from the moment of generation. This means that you can use the same token to make API requests for up to a year.
After the one-year period has elapsed, the LDM token will expire. To continue using our services, it will be necessary to generate a new token.