How to add headers along with body to rest api POSTcalls in AD B2C custom policies

Srinivas Sripathi 36 Reputation points
2020-04-15T05:48:25.47+00:00

We are using Azure API management and we are migrating all api to api management. In this process we need to change some of the rest apis that are used in AD B2C custom policies. These apis are POST apis and we are sending the claims in the body. Now, as we are moving to apim, we need to send the subscription key in the headers. We did not find any way to send the header along with body to the rest apis in AD B2C custom policies. Please let us know how to do this. Appreciate your help.

Thanks.

Microsoft Security Microsoft Entra Microsoft Entra External ID
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,866 Reputation points Moderator
    2020-04-15T18:05:53.153+00:00

    @Srinivas Sripathi This is currently not supported but in near future we will be adding support for sending crypto key in the header for authentication purpose, which would be helpful in the above scenario.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept as answer" wherever the information provided helps you to help others in the community.


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.