Ragavi_Kanagalingam | 2020-08-06 08:38:13 UTC | #1
Hi,
I'm working on an integration with Web Services which uses OAuth-like model of authentication. I had earlier worked on similar authentication where the Grant Type is of Client Credentials which needs Web Services Data Actions with User Defined(OAuth). In Add Credential Field, I have added loginUrl, clientId & clientSecret and it worked perfectly. The new requirement uses Grant Type of Refresh Token. For this I tried adding refresh token in Credential Field, still granttype shows as clientcredentials. Can someone please suggest how to configure Refresh Token Grant Type in PureCloud Integrations?
Thanks
Jason_Mathison | 2020-08-06 11:41:50 UTC | #2
Hi Ragavi,
Could you post an export of your authentication action?
--Jason
Ragavi_Kanagalingam | 2020-08-06 11:59:39 UTC | #3
Attaching Custom Auth action here.
SFDC-Web-Services-Data-Actions-Auth-20200806172704.customAuth.json|attachment (1.1 KB)
Jason_Mathison | 2020-08-06 12:01:27 UTC | #4
The action currently includes this line: "requestTemplate": "granttype=clientcredentials"
You need to update the request template in your action to change the grant type.
Ragavi_Kanagalingam | 2020-08-06 12:26:30 UTC | #5
When I create a Web service integration, custom action automatically creates and published with granttype Client Credentials. I'm not able to edit that after. I'm creating the integration with loginUrl, clientId, clientSecret, granttype as refresh_token and refresh token fields. Still Custom Auth action comes as Client Credentials.
Ragavi_Kanagalingam | 2020-08-07 13:11:06 UTC | #6
Is it possible to create Custom Auth Action? Can you please suggest how to configure integration or action for grant_type 'Refresh Token'?
Jason_Mathison | 2020-08-08 14:29:26 UTC | #7
You should be able to modify the request template of your custom auth action. One thing that could be tripping you up is that you may have to click on the published / draft slider on the bottom in order to make edits.
--Jason
system | 2020-09-08 14:29:28 UTC | #8
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 8496