Call a azure hosted web api from on prem c# web application

Edula Divya Siri 1 Reputation point
2020-10-08T07:05:21.86+00:00

I have a azure web api provided to me to consume. I need to consume it from my native c# web application.

How do i do the post, get request to the azure hosted web api endpoint.

The web api expects azure authentication also like client id and secret..

any suggestions on this please how to implement

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

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,526 Reputation points
    2020-10-08T07:49:52.443+00:00

    @Edula Divya Siri Thank you for the question. I believe here you are trying to implement the Azure AD authentication to secure your application. I am sharing few relevant links which would help you implement the same:

    https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad

    https://www.c-sharpcorner.com/article/how-to-secure-your-azure-app-service-with-azures-ad-authentication/

    https://stackoverflow.com/questions/32589063/unable-to-get-bearer-token-from-azure-ad-to-use-with-api-app [ navigate to the answer]

    Please let me know if this answers or you need more details to understand how to implement authentication.

    0 comments No comments