Best way to use API Key Authentication for the endpoints for the users in Azure Web API

Anonymous
2022-06-28T00:01:26.55+00:00

Published the ASP.NET Web API Project in Azure. What is the best way to use API Key authentication for the endpoints for the users?

Example: https://sampleapi.test.org/data&key=**{API key}**

In appsettings.json, own API key is available. When I compare the given key from the header with this, not sure which is correct.

For example, is it possible to connect the above API with Azure APIM and use a Azure Key?

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

Accepted answer
  1. Sujithreddy Komma 581 Reputation points Microsoft Employee
    2022-06-28T04:43:08.623+00:00

    Hi Vamsi,

    if you want to host it inside the APIM, you can do that by using this as a Backend Service.

    When you Publish this inside the Product, if you want the APIKey Authentication you can use the Ocp-Apim-Subscription-Key Header or query Parameter to do it.

    Thanks,
    Sujith.

    0 comments No comments

0 additional answers

Sort by: Most 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.