Webhook page customization

(Dmitry Yemelyanov) #1

Hi Team!

Is it possible to customize webhook page?
Or at least set a redirection or automatic closing of that page?

(Kellsey Shaw) #2

Hi Dmitry,

Because our webhooks are designed to be used with API’s, there isn’t any customisable or user friendly web page that is served with the response.

(Dmitry Yemelyanov) #3

I’m using 3-legged oAuth 2 and need to redirect user to webhook page by callback URL. Redirection link contains authorization code (end of Step 1 here ). So user finally arrives to that page via browser.

Probably I’ll just need to add a certain description to user that he need to close that page if it shows Success message.

(Karen Barker) #4

Hi Dmitry,

Webhooks are designed to make HTTP requests, but aren’t designed for use with web pages. If you are working with bots then you can send the URL for them to click and open in a web browser.

(Dmitry Yemelyanov) #5

Yes, I see. That’s exactly what am I doing.

  1. User follows the link to oAuth page for Autodesk services from chat.
  2. User completes authentication workflow.
  3. Webpage performs redirection to webhook page.
  4. FlowXO retrieves a code and getting token for further operations.
(Kellsey Shaw) #6

Hi Dmitry,

Step 3 is the problem. Webhooks don’t have web pages. The only reason that you see anything on-screen when you enter a webhook address in your browser is because the browser renders the server response on screen.

Webhooks would normally be used with 2-step (2 legged) authentication methods.

(Dmitry Yemelyanov) #7

Anytime, it works like a charm. The only inconvenience is remained non-informative page in browser and that’s not a big deal.