Skip to main content
Solved

Authorization with bearer token and json body


I am getting a bearer token when i am running the json code below with the specified url, but i don`t know how to implement this json body in TimeXtender, is there any documentation available or a solution for this?

 

{

 

  "id": "",

 

  "language": "en",

 

  "data": {

 

    "resourceType": "AUTH",

 

    "item": {

 

          "loginName": "api@user", 

 

          "password": "password",

 

          "module": "API"

 

    }

 

  }

 

}

Best answer by Christian Hauggaard

Hi @r.brummans 

Please try to specify everything in one call including authorization, rather than separate calls. Please see the following question which may be relevant:

Also please see the following documentation for TimeXtender REST data source and Cdata REST data source:

For TimeXtender REST please try basic authentication

For Cdata REST please try to set the Oauth grant type to password

If you still have issues connecting, please share an error message in order to aid troubleshooting

View original
Did this topic help you find an answer to your question?

Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

Hi @r.brummans 

Please try to specify everything in one call including authorization, rather than separate calls. Please see the following question which may be relevant:

Also please see the following documentation for TimeXtender REST data source and Cdata REST data source:

https://support.timextender.com/data-sources-112/connect-to-a-rest-api-using-the-cdata-provider-824

For TimeXtender REST please try basic authentication

For Cdata REST please try to set the Oauth grant type to password

If you still have issues connecting, please share an error message in order to aid troubleshooting


Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • August 5, 2024

Hi @r.brummans 

It is possible to do such a call, I haven’t updated the existing guide with this, but you will need to do it in two steps.

First you create an endpoint where you use the snippet in a post call. Like I do here

Then you can get the bearer token from this and use it as a dynamic value.

 


Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

Hi @r.brummans please let us know if the issue is resolved, and if so please help us by marking a best answer above. If you have any follow up questions please let us know


Hi Christian,

 

We can also use the case of Arthur van Rijn, it is the same question (same company) and close this question.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings