Using Adal for accessing the Azure KeyVault on behalf of a user

前端 未结 2 949
旧巷少年郎
旧巷少年郎 2021-02-05 18:54

The following is in a console application and ClientID, RedirectUri is from the created native app in azure active directory.

var authContext = new Authenticatio         


        
2条回答
  •  天涯浪人
    2021-02-05 19:15

    Here is what you need to do:

    • Create a service principal
    • Register it in Azure AD
    • Grant it access to the Azure KeyVault API

    The steps were documented in an Azure article last September at

    https://blogs.technet.microsoft.com/kv/2016/09/17/accessing-key-vault-from-a-native-application/

    This article explains how to perform the above steps to access Azure KeyVault programmatically from a native application (as opposed to a service application) without having to rely on the Azure Powershell trick mentioned by @benv.

提交回复
热议问题