cancel
Showing results for 
Search instead for 
Did you mean: 

API Auth Token issue

matthew.cable
Level 5
Hi
I have an API where I am trying to obtain the Access Token, I have the collection in Postman which is working fine but I am unable to make this work in Blue Prism.

I am not sure if it is because it uses FormData to obtain token but BP does not like it, I have tried multiple ways and get the error messages of 400, or the output is not a JSON response.

I am using BP 6.7.

Any assistance would be greatly appreciated.

Thank you 
Matt

13262.png

------------------------------
matthew Cable
Consultant
Zurich
Europe/London
------------------------------
10 REPLIES 10

Are you using Web API or VBO to configure this in Blue Prism. If you can post a screenshot of your BP configuration, we can suggest the change required to make it work.

------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Hi Shashank,

I have tried lots of different things, I have attached a word document with screen shots of the Web API that I have used. and also the instructions on how to connect from the API provider.

Also please see screen shot below of error from the process.

13228.png

Thank you



------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------

Hi Matthew,

Set the Body Template as

resource=[resource]&grant_type=client_credentials&client_id=[client_id]&client_secret=[client_secret]

Set the Header as
Content-Type      application/x-www-form-urlencoded

Remove the response parameter for now and see if you are getting the response. And the parameters in URL should be enclosed in square brackets.. [tenant]


------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Hi 

I have tried the above and now i receive the error message below

13232.png

------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------

For the  application/x-www-form-urlencoded content type, you will have to set the HTTP Method to POST.

Sorry I got a bit confused after re-looking at your post. Are you doing a GET or a POST request from POSTMAN and what is the Content-Type, form-data or x-www-form-urlencoded?


------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Hi Shashank,

I have amended this to POST and it now works.

Thank you very much for your help.

------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------

Hi Matthew,

How did you resolve this issue and obtain the Access Token in Blue Prism. can you please let me know 

I am also facing the same issue,

Thank you



------------------------------
Revathi A
------------------------------

Hi Revathi A,
 
Check if this discussion can help:

Click Here

Regards,



------------------------------
Leonardo Soares
RPA Developer Tech Leader
Bridge Consulting
América/Brazil
------------------------------

Leonardo Soares RPA Developer América/Brazil

Hi Leonardo Soares

 I am trying to get the access token through blue prism
I have the form data collection in postman which is working fine but i m unable to make this work in blur prism

Please refer this screenshot and let me know if you have solution for this.



------------------------------
Revathi A
------------------------------