Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
I am having Problems retrieving Data from an REST API. The Authorization Server prodives only single use authorization tokens. Which means by creating my Data Connection the token i entered gets used when saving the connection and thus is blacklisted. Which is no problem, because the token can be changed by using "WITH CONNECTION ()".
But if I want to select the data via "select data" with your data connection, I always run into the error that the token used to create the connection has been blacklisted. So i cannot create the script to use in my Data load editor which means i am not able to modify my connection to insert a valid authorization token.
I even tried to change the authorization token in the QMC so the token is not being used when saving the changes, but as soon as you refresh you data load editor, the data connection for my REST API is using the new token to test the connection i think.
Does anyone know, how to use "select data" using the Data connection when working with single us authorization tokens?
Help is much appreciated!
Hi @canerkan , I don't have any solutions here, unfortunateley this is how our REST connector works. It makes a call everytime you save, test or select data.
Does your REST API have a different type of authentication? If no, the only solution that I can see here is to try to create manually your select. First call your REST API with Postman or any other tool and then try to create the reload script reading the response from your REST API.
Hi @alex_colombo , thanks for your reply. I have already contacted the support of the website i am trying to connect to, so i can get some information about the tables that contain the data needed. Unfortunately this is the only type of authentication. So i might try build the select on my own based on the API response as well.
Do you think this will be changed in upcoming Versions of the REST conncector?
If no other have a different idea on this issue, you could propose an idea on our ideation section (under community site). The idea could be to avoid to make a call during during connection saving phase, and make the call only when you are getting data for creating the select. In my opinion this could be reasonable.
Alright, thanks for letting me know. I will make a suggestion, I've already got something on my mind.