Pega Robotics 19.1 - API with OAuth2

Hello Dear Community,

I would like to ask you if there exists documentation for Pega Robot Studio 19.1 to configure REST API call to another application using OAuth2 authentication. Until now we used just Basic Auth. to send REST API calls, but now we have requirement that we need to use more secure configuration OAuth2.

We have been offered with 3 options to use OAuth2, either we use client credentials / resource owner PW / authorization code grant type to get bearer token.

Do you have please someone idea how to configure this in PEGA 19.1, or navigate me to Openspan documentation for this ?

BR

David

@DavidT I believe that you will need to make two requests. The first will be to the API that provides a token The second request would use the SetBearerAuthentication and you would pass the token from the first request as the parameter. The methods and properties are slightly different to make them easier to use in an automation, but under-the-hood, the REST Client is using the same C# code you would use. If you have PostMan, I believe it can generate the code for you and seeing it can help translate it into how you pass it to the RESTClient component.

Thank you @ThomasSasnett