
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
Pekka Kuronen
Pegasi Oy / pegasi.fi


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Simple (and stupid) solution for your case: use 2 instances of the "same" driver (one for import and one for export operation only).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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.
Pekka Kuronen
Pegasi Oy / pegasi.fi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Smile, IT confuses people!