We are trying to perform some logic for an automated user and team creation/management (IT User – On Lifetime) but failing to do so due to no value/token returned by Authentication_GetToken of the LifeTime Services API.
Is anyone aware how we can generate a token post activating the SAML Platform Authentication as an external Authentication ?.
We have to pass this generated Authentication token to create team/groups using TeamManagementService on Outsytems .
Hi Samsuddin,Since you want to create teams/groups, I would suggest you use the LifeTime_API_v2.This API will use the service account that you create in Lifetime and you will not need the end-user token.https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_API_v2#EndpointsRegards,
João Barata wrote:
Thank you for your reply .
Using LifeTime_API_v2 i tried to fetch the present teams on lifetime but the api returns HTTP/1.1 500 response.
API ::/lifetimeapi/rest/v2/teams/
API Response ::
HTTP/1.1 500 InternalServerError
Content-Type: application/json; charset=utf-8
Pragma: no-cache
X-Content-Type-Options: nosniff
Content-Length: 82
Cache-Control: no-cache
Date: Wed, 02 Sep 2020 10:21:01 GMT
Expires: -1
Server: Microsoft-IIS/10.0
{
"Errors": [
"Invalid length for a Base-64 char array or string."
],
"StatusCode": 500
}
samsuddin chisti wrote:
Hi Samsuddin, Did you pass the authentication token in your request as described on the following article:https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_API_v2/REST_API_AuthenticationRegards,
Hi Samsuddin,Did you pass the authentication token in your request as described on the following article:https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_API_v2/REST_API_AuthenticationRegards,
Yes, i have passed the Authentication token to the API as described on the above article
Hi Samsuddin, If that is the case, then I would suggest you open a support case so that the issue can be looked at.Regards,
Hi Samsuddin,If that is the case, then I would suggest you open a support case so that the issue can be looked at.Regards,
Sure i will open a support case