Different REST credentials per channel

Is there a way to use different credentials for subscriber and publisher channel in REST driver? Target system enforces the use of different credentials for import and export operations. I did not see support for this in the driver-operation-data.

I tried adding basic authorization header with encoded credentials but no success, even with curl.

All help and opinions welcome.

  • I don't think, that different credentials for sub/pub are supported.
    Simple (and stupid) solution for your case: use 2 instances of the "same" driver (one for import and one for export operation only).
  • Hello

    you could replace default publisher functionality by implementing IDM job on driver which can implement a target rest api operation such as /query /GET for you with different credentials and rest endpoints.

    regards

    maqsood,

     

  • I checked what the driver is really doing when i add a basic authorization header with credentials.

    When driver authentication is set to anonymous the driver is overwriting the authorization header with an empty one. When set to basic authentication the driver is writing another basic authentication header in addition to the one I added, resulting on non-functioning authentication.

    I would like to see an option where the driver does nothing to the authorization header since there may be multiple REST endpoints with different credentials.

    The quickest solution was to do a localhost apache proxy which matches the location and injects the correct authorization headers.

    Thanks again for your answers.

  • Can you create an idea about this, could be picked up as an enhancement request.