OAuth2 HTTP Request in Workflow

Hey!

We have two questions regarding OAuth2 Authentication in a HTTP Request Action for Workflows in IdentityNow.

  1. How do we actually pass the bearer Token received in the first Authentication request to the 2nd request where we actually Authorize. Is there a certain placeholder to fetch this token, e.g: Authorization: ${access_token}? (To my understanding there has previously been a separate action for fetching Oauth Token).

  2. For this certain REST API we have a custom variable (e.g: variable_val=123) that needs to be passed in the header. How can we achieve this?

Is this something you could answer @colin_mckibben ?

Best regards,
Sebastian

If you setup the authentication section of the HTTP request, you don’t need to explicitly pass the token. It will be configured automatically. Actions - SailPoint Identity Services. In your case, you will use OAuth 2.0 - Client Credentials Grant as your auth type. You will need to setup auth on each HTTP request you make in a workflow.

Request headers can be configured in the HTTP Request:

Thanks for answering!

Yes, the problem is that we need to add the variable in the “first” part of the request to get the access token and not in the 2nd request.

what is your exact request body and what is the exact error message?