Generating and adding a token from APIM to backend api

Sisodia, Deepak 21 Reputation points
2022-03-16T01:52:19.797+00:00

I am aware that we can forward the same bearer token which APIM get from client to backend api BUT can we generate and add a different token from APIM which can be used in backend?

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

Accepted answer
  1. MayankBargali-MSFT 69,411 Reputation points
    2022-03-16T12:36:30.453+00:00

    @Sisodia, Deepak Thanks for reaching out. You can leverage send-request policy to call any external service that will perform complex processing functions and return data to the API Management service that can be used for further policy processing. In your case to generate the token you need to call your service that will return the token and APIM will pass the newly generated token to your backend service.

    You can also refer to this article which explains how you can leverage policy for Access Token Acquisition, Caching, Renewal, and pas the same to your backend service.

    0 comments No comments

0 additional answers

Sort by: Most helpful