This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IG fulfillment thru REST API with Pre-emptive Basic Authentication

Hi All,

From IG fulfillment, trying to call the REST API with Pre-emptive Basic Authentication. Here is the sample REST API with pre-emptive authentication,

curl --location --request POST 'rpaoo.advantageinc.org:8443/.../executions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic YWRtaW461234dARAWTIzNA==' \
--data-raw '
{"flowUuid": "0a5f5883-9b2f-4324-ab7b-356bcb2c59b1",
"inputs": {
"min":"1",
"max":"10"}
}'

When trying to call this REST API thru Postman/SOAP UI and even run the following in Linux OS, and able to receive the response. But when running this in IG fulfillment REST API call, receiving this error: " [com.netiq.iac.persistence.dcs.prov.worker.AutoProvisioningWorkerThread] [IG-DTP] Unexpected error while provisioning changeItem id: 96. Reason: HTTP error, status code is 400.

Parents
  • Hi fteo1,

    The REST fulfillment call should include 'Authorization: Basic <base64 encoded username:pass>' header in its request. I can see it in the network traces when testing that template with Basic Auth method. It is possible that there's something else in the request that the server doesn't like. You may try increasing logging for the com.netiq.daas package to see if it gives you more details on what it tries to pass in the body of that call.

    BR,

    _pg

Reply
  • Hi fteo1,

    The REST fulfillment call should include 'Authorization: Basic <base64 encoded username:pass>' header in its request. I can see it in the network traces when testing that template with Basic Auth method. It is possible that there's something else in the request that the server doesn't like. You may try increasing logging for the com.netiq.daas package to see if it gives you more details on what it tries to pass in the body of that call.

    BR,

    _pg

Children