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 was 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.
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
resourceheader: