You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
I am successfully able to retrieve a token using the gem and authenticate against Azure Service Management API. Using the same token, I can also use the Azure Key Vault REST API to retrieve my vault:
I recently found this stackoverflow post and it suggests that when making a token request, I need to pass a resource header:
When you make the request for the Bearer token, make sure that you include the "resource" header, and that it is set to "https://vault.azure.net". If you don't, you'll get a token, but you won't be able to access any vault data with it.
The text was updated successfully, but these errors were encountered:
Turns out to be a bug on Azure's end. You need to use the client ID of Powershell because there isn't an option to assign access to vault within your application in AD.
@AMoghrabi can you elaborate on this? I have been beating my head against a wall all day because of this, how do I authorize my application to talk to the keyvalut data api's?
Basically you need to impersonate Powershell making the call because there isn't an option in Azure AD to assign access to Azure Vault. The client ID is:
I am successfully able to retrieve a token using the gem and authenticate against Azure Service Management API. Using the same token, I can also use the Azure Key Vault REST API to retrieve my vault:
https://msdn.microsoft.com/en-us/library/azure/mt620026.aspx
However, when trying to retrieve a secret from my vault:
https://msdn.microsoft.com/en-us/library/azure/dn903633.aspx
This returns a 401 Unauthorized.
I recently found this stackoverflow post and it suggests that when making a token request, I need to pass a
resource
header:The text was updated successfully, but these errors were encountered: