dmthames | 2020-03-26 22:00:18 UTC | #1
HI All,
I am having the same issue as noted in the post below. Problem I'm having is editing the custom auth action... it seems to publish as soon as I save the Integration, so I cannot update the request body template. What am I missing?
https://developer.mypurecloud.com/forum/t/external-web-services-integration-with-oauth-2-and-scope/6819
Jerome.Saint-Marc | 2020-03-27 07:44:55 UTC | #2
Hello,
I must say I have not used the "Custom Auth" data action so far. But I'll answer for data actions in general.
Once a data action is published, you cannot modify what's in the Contracts part/tab. But you can still modify what's in the Configuration part/tab (which is the case for your Request Body Template).
What may be confusing is how to switch back from "Published" to edit/draft mode. Select your action (in Admin - Integrations - Actions). At the bottom of the Action page, you have a "Viewing" toggle showing "Published". Click on it (on "Published") and it will switch back to Draft (edit mode). Once you have made your changes and saved them, click on Save & Publish (or you can also click on the same "Viewing" toggle - which should show "Draft". It will then switch to "Published").
Hope this helps.
Regards,
dmthames | 2020-03-27 09:56:54 UTC | #3
Thanks Jerome,
The link I posted in my comment is the exact thing I'm working on. When you create an Oauth integration, it automatically creates and publishes a custom auth action that is meant to fetch the token from the auth client for use in the actual data action.
Issue I'm having is that my auth endpoint requires a scope data element in addition to the client id and client secret. But since the auth action is published automatically, I can't edit it to include it as noted by @Gurwan_Duplenne in his answer to the thread.
Thanks!
Jerome.Saint-Marc | 2020-03-27 10:18:35 UTC | #4
I am not sure I understand. As explained at the end of the post/link you gave (last post from vchoa), you can directly put the values for scope & grant_type in the body. These don't need to leverage something that would come from a variable (that you define earlier like client ID and client secret). You can directly set it to a static value defined in the Configuration of your Custom Auth action.
Jerome.Saint-Marc | 2020-03-27 10:20:08 UTC | #5
And what I explained in the previous post is that you can change the configuration of your custom auth action after it is published. Click the button to set it back to Draft as I indicated and switch it back to Published once you are done.
dmthames | 2020-03-27 10:34:54 UTC | #6
Ah... got it. I was staring right at it but it wasn't registering. Thanks!
system | 2020-04-27 10:34:57 UTC | #7
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: 7413