
Announcements
Hi,
I have set up a scenario where a webhook is triggered upon the creation of a contact in my Dataverse table, calling an external WebAPI. I am using the plugin tool to register the webhook and passing the created contact data to the registered webhook API URL. My question is regarding authentication. I have chosen HTTP header for authentication, and if my WebAPI requires a token for authentication, how do I handle it when calling the secured WebAPI through the webhook? Do I need to manually provide the token every time?
Hi,
when you register a webhook you need to set the values that are static so if your webapi requires a token that needs to be refreshed every X you have two options
1) update the webhook registration before (of course this is not feasible if you need to update frequently)
2) create something in the middle (like an azure function) that will receive the webhook with a static value for the authentication and will resend the payload to your final server handling the token