I have deployed my webapi on Azure Websites and exposing it through Azure Api Management Portal. I want to block access on azurewebsites url so that a user can only access my api through azure aoi management proxy through security key. Can you please shed some light on how can this be done. I have heard Mutual Certificates can be used but not finding any article online which describes the process of creating such certificates and configuring web api to effectively use them. My Second question is , Is there a mechanism to get Api Primary key based on UserName / Password and Product name. What would be the best approach regarding keep that api access key. Should client app store it in some config file and this should be obtained programatically at run time?
Many thanks
Azure API Management Features Authentication by relying on industry standards such as OAuth 2.0 and OpenID Connect.
Authenticate with client certificate The certificate needs to be installed into API Management first and is identified by its thumbprint or certificate ID (resource name). If the certificate references a certificate stored in Azure Key Vault, identify it using the certificate ID.
There are multiple ways to protect your backend:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With