Hello All,
I am working on a Web Service connector. We have an entitlement type which uses different credentials than rest of the API endpoints. So, I am trying to use custom authentication.
- On Connection Settings:
- I have put Authentication Type: Custom Authentication
- Base URL for the API endpoints (Same Base URL is used by all API endpoints even if the authentication used is different).
- API Token - This is used for Account Aggregation and Entitlement Aggregation - Entitlement 1,
- Client ID and Client Secret - This is used for Entitlement Aggregation - Entitlement 2.
- Under HTTP Operations:
- Custom Authentication:
- Operation Type: Custom Authenication
- Headers: Content-Type: application/x-www-form-url
- Body: Form Data: grant_type: client_credentials, client_id: $application.client_id$, client_secret: $application.client_secret$, scope: , resource:
- Response Information:
- Success Codes: 200
- Response Mapping:
- customaccesstoken: access_token
- Group Aggregation - Entitlement 2
- Operation Type: Group Aggregation - Entitlement 2
- Context URL: /entitlement2
- Headers: Authorization: Bearer $application.customaccesstoken$
- Response Information: Success Codes: 200
- Response Mapping:
- entitlement2_id: entitlement2_id
- entitlement2_name: entitlement2_name
- Custom Authentication:
I have defined Entitlement Type: entitlement2 with entitlement2_id as eneitlement id and entitlement2_name as Entitlement Name.
However, when I run the entitlement aggregation by selecting specific type: entitlement2, it returns 0 entitlements.
Is there any pointer on this? I feel like I am following all the instructions on the connector documentation on custom authentication. However, it is not working as expected.
Please let me know if there is any suggestions on how I can fix this. I would really appreciate any help!
Thanks,
Nischal