cancel
Showing results for 
Search instead for 
Did you mean: 

REST API Integration

SameerJoshi1
Level 4
We are trying to integrate REST API into the process which use credentials but this credentials will be retrieved from external credential vault and cant be saved in BP credential manager. Is there any way to achive 
1. retrieve credentials from external credential vault
2. pass credentials retrieved in #1 to access API
3. then perform further​ operations


------------------------------
Sameer Joshi
State Street
------------------------------
1 BEST ANSWER

Helpful Answers

@Sameer Joshi,

Ok, so if you're using a Web API service definition that requires you to pass in the name of a credential in Credential Manager​ you can tackle this a few ways:
  1. Edit the definition of the Web API to accept input of the actual username and password. This can become a bit cumbersome though as you might have to make additional changes within the service definition (ex editing the authentication configuration).
  2. Define a placeholder credential in Credential Manager. That placeholder should align with whatever Web API service definition you're working with. As you get your credential details from the external vault you would use the Credential VBO to set the username/password values on the placeholder credential and then pass that in to the Web API service.
  3. Write your own Web API service definition and set it up however you want.
Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

View answer in original post

4 REPLIES 4

ewilson
Staff
Staff
HI @Sameer Joshi,

Are you referring to authentication against the BP REST API in v7​ or some other REST API? For general authentication against a REST API it doesn't really matter where the credentials come from.

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

I am referring to external REST API for e.g. Service Now API.  We may not be able to save credentials in BP credential manager, this will come from external credential vault and we need to just pass that username & password.

------------------------------
Sameer Joshi
State Street
------------------------------

@Sameer Joshi,

Ok, so if you're using a Web API service definition that requires you to pass in the name of a credential in Credential Manager​ you can tackle this a few ways:
  1. Edit the definition of the Web API to accept input of the actual username and password. This can become a bit cumbersome though as you might have to make additional changes within the service definition (ex editing the authentication configuration).
  2. Define a placeholder credential in Credential Manager. That placeholder should align with whatever Web API service definition you're working with. As you get your credential details from the external vault you would use the Credential VBO to set the username/password values on the placeholder credential and then pass that in to the Web API service.
  3. Write your own Web API service definition and set it up however you want.
Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi @Eric Wilson

Thanks for quick help, will try option #2 and believe should work, cheers!​​​

------------------------------
Sameer Joshi
State Street
------------------------------