How to create a REST flow with OAuth2 in OO?

I am unsure on how to create a REST flow with OAuth2 in OO, as the HTTP operations don't seem to have the proper input variables that I need for this.

For OAuth2, I e.g. have the following variables:

  • Ressource Owner Name
  • Ressource Owner Password
  • Client Identification
  • Client Secret
  • Access Token URI

In which operation and in which input-variables would I put all those variables in, so that OO can make a proper REST call using OAuth2?

Is there a sample flow for this somewhere in OO?

I have tried to use the sample flow "Get Auth Token" in Library->Integrations->Micro Focus ->Cloud OS, but I couldn't get it to work.

Any help would be greatly appreciated Slight smile

Tags:

Labels:

RPA
Parents
  • Suggested Answer

    Hi,

    Could you try to send a POST REST request to the specified URL with the following body:

    grant_type=client_credentials&client_id=${LV_clientId}&client_secret=${LV_secret}

    I also had to put following in the header, but I am not sure if this is the end point specific:

    cache-control: no-cache, max-age=0
    pragma: no-cache
    accept: application/json

    Leave authType empty.

    As a result you should get a token.

    Good luck

Reply
  • Suggested Answer

    Hi,

    Could you try to send a POST REST request to the specified URL with the following body:

    grant_type=client_credentials&client_id=${LV_clientId}&client_secret=${LV_secret}

    I also had to put following in the header, but I am not sure if this is the end point specific:

    cache-control: no-cache, max-age=0
    pragma: no-cache
    accept: application/json

    Leave authType empty.

    As a result you should get a token.

    Good luck

Children