Session
A unique session is created in LMC for every successful user authentication.
The authentication & authorization tokens generated in LMC contain a unique session identifier.
See the example described in JWT.
By default, every session created in LMC is valid for 30 minutes.
Both the authentication and the authorization tokens created in LMC cannot be extended beyond the validity of the corresponding session.
The sessions can be prolonged as follows:
- Endpoint:
/cloud-service-auth/auth - Method:
POST - Body:
{
"prolong": true,
"lifetime": 1800000 // 30 minutes in milliseconds
}
The resultant token can be used with further API calls.
The sessions might have to be prolonged before the expiry for the smooth functioning of the API requests