24
Views
7
Comments
[SAML Platform Authentication] How i can generate an Auth. token post SAML Platform Authentication Activation?.
Question
Forge component by Alexandre Costa
2
Published on 13 Jan 2021

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 .


Staff
Rank: #62

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#Endpoints

Regards,

Rank: #2410

João Barata wrote:

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#Endpoints

Regards,

Thank you for your reply .

 

Rank: #2410

João Barata wrote:

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#Endpoints

Regards,

 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


}

 

Staff
Rank: #62

samsuddin chisti wrote:

João Barata wrote:

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#Endpoints

Regards,

 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


}

 

 

 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_Authentication

Regards,

Rank: #2410

João Barata wrote:

samsuddin chisti wrote:

João Barata wrote:

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#Endpoints

Regards,

 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


}

 

 

 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_Authentication

Regards,

 

 Yes, i have passed the Authentication token to the API  as described on the above article

Staff
Rank: #62

samsuddin chisti wrote:

João Barata wrote:

samsuddin chisti wrote:

João Barata wrote:

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#Endpoints

Regards,

 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


}

 

 

 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_Authentication

Regards,

 

 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,

 

Rank: #2410

João Barata wrote:

samsuddin chisti wrote:

João Barata wrote:

samsuddin chisti wrote:

João Barata wrote:

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#Endpoints

Regards,

 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


}

 

 

 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_Authentication

Regards,

 

 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,

 

 

 Sure i will open a support case