Appservice:access keyvault certificate

azure 1 Reputation point
2021-07-14T12:43:57.997+00:00

Hi
I have backend client rest api with two factor authentication 1.basic authentication 2.certificate.
and for client to client this two are varies .My project aim is to save these two values inside azure keyvault and access to the angular project which is hosted on app services. Please help best practice

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,124 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,908 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2021-07-20T16:44:56.347+00:00

    Hi @azure ,

    I believe https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate#store-in-azure-key-vault would be a good place to start for becoming familiar with using cert from key vault in your app service. There are plenty of key vault code samples that you can find here.

    By basic authentication, you could create username/password combo pair and store it key vault, retrieve those values, and if they don't match, return a 404. Have a look at the following samples to see how to achieve what you're trying to do.

    0 comments No comments