API Manager policy to handle WebHook Secret

Steve 1 Reputation point
2022-05-25T02:37:03.033+00:00

Can someone point me to some document where I can handle a webhook secret from a 3rd party into an API POST which has been setup on the Azure API Manager.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,459 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2022-05-26T14:09:13.24+00:00

    @Steve Just to reconfirm my understanding you are passing the secret from client to APIM and what APIM to validate whether the secret is valid or not before passing to your backend service logic app.
    If this is the case, then you need to have custom service that validates this for you with some mapping at your end of different clients with their respective secrets. From APIM you can leverage SendRequest
    Policy to call your custom service to validate it. In case if you have few clients then you do this mapping and storing it levering the name values. The mapping should be the product keys that you are providing to your client to call the APIM APIs with the respective secrets.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.