I need to connect to a 3rd party system using Appian to pull in data from it.
It would need me to first create a token bearer , access that token for Bearer Authorization which will help to connect to a session and finally get data based on the api path URL
Would highly appreciate if someone can help me with the steps I need to follow to achieve it. Thanks.
Discussion posts and replies are publicly visible
Well, while that procedure seems pretty simple, it very much depends on the concrete implementation of these services. Without more details we will not be able to help you.
BTW, this kind of authentication is in no way special to Appian and very common. You will be able to find a lot of information in the internet.
Hello Stefan, Thank you for your response, I did do some digging and was able to do some configuration.
Similar approach we tried it from Postman, it is working fine, the only difference between Postman and Appian is in 3rd integration step where are facing issue, Postman has an option to select “Inherit Auth from parent” in Authentication, but Appian does not have this option.
What exactly are you doing in step 2?
I would expect to not configure any authentication at the connected system level, but add a authorization header in the integration object. To define the value for that header I would just call the first integration or an expression that wraps it to extract the token.
In step 2 I am making a request using the token created in step 1 , have defined a header for access token as shown in screenshot
Hm ... I see a successful call.
Yes it is a success, now the question is how do we use this generated session to get data from the connected system API. We tried to pass the session through the URL and call the API to fetch data but getting error.
I don't understand. What session do you mean? You get the token and use it to do the call. What are you missing?
Hello,
Basically I am trying to emulate the python script (screenshot below) created to get a token(Step 1), Making a login request using this token (Step 2), connect using the credentials and fetch the records from system (step 3).
The python script works without any issue and fetches the data.
Seems like oAuth2. Did you try the OOTB support?
The only difference here is, that you do not use that "session". That is just a construct used in the Python code. If this is a normal HTTP API, you just do the call using that token.