I’m trying to get the simplest http step working in my workflow.
And the HTTP step is configured as following:
"HTTP Request": {
"actionId": "sp:http",
"attributes": {
"method": "get",
"param_authenticationRef": "oauth",
"param_oauth": {
"mapping": {
"auth_client_id": "clientId",
"auth_client_secret": "clientSecret",
"auth_credential_location": "credentialLocation",
"auth_token_url": "tokenURL"
},
"paramID": "zzz",
"paramType": "1.4",
"refID": "4afeff58-9ffc-49c7-aac9-9cdc8114dd30"
},
"url": "https://zzzz.api.identitynow.com/identities/v1/{{$.trigger.identity.id}}"
},
"displayName": "",
"nextStep": "End Step - Success",
"type": "action",
"versionNumber": 3
}
The ClientID and secret is from Personal Access Token that I created (I am an admin).
I use exact same ClientID and secret in postman and I when invoking endpoint “identities/v1/” I get correct result.
But when running workflow test, I get an error:
task failed: activity error (type: sp:external:http:v3, scheduledEventID: 7, startedEventID: 8, identity: 1@sp-workflow-worker-stg-eucentral1-idn-stg01-euc1-66c569484rmrzh@sp-workflow-engine): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request - {"error_description":"Authentication failed","error":"invalid_request"} (type: WorkflowFailure, retryable: false): task failed: activity error (type: sp:external:http:v3, scheduledEventID: 7, startedEventID: 8, identity: 1@sp-workflow-worker-stg-eucentral1-idn-stg01-euc1-66c569484rmrzh@sp-workflow-engine): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 400 - 400 Bad Request - {"error_description":"Authentication failed","error":"invalid_request"}
Input json is invalid.
Just for testing I changed the clientID to wrong one and then I get 401 error “Invalid client” same when providing wrong client secret.
My parameter config:
Like I said: The exact same setup works fine in Postman.
Any ideas or suggestions what I should try welcome.



