APIM subscription and backend app token

SBAM 21 Reputation points
2020-12-02T19:53:15.51+00:00

Hi,

We have a Websphere based api which has token corresponding to each consumer which they have to pass to be able to get the data from API. We are trying to virtualize this API through APIM. APIM has its own subscription key/token.

Is there any customization that can be done in APIM to map the APIM token to an internal token before making the backend API call?

So Consumer passes APIM token/key --> APIM indentifies the backend websphere key corresponding to the subscription through some mapping table --> Make the Websphere API call by passing webpshere key.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,740 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,066 Reputation points
    2020-12-03T11:37:08.493+00:00

    Hi @SBAM

    There is no out of box feature that will help you in your scenario but you can write your custom logic in the function app (any database to store the mapping of WebSphere key corresponding to the subscription) or any other API services.

    You can now call your middleware service from APIM using send-request policy and your service will return the right key that you can pass to your backend service.

    References:
    https://learn.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#SendRequest
    https://learn.microsoft.com/en-us/azure/api-management/api-management-sample-send-request

    0 comments No comments

0 additional answers

Sort by: Most helpful