-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get access token using Microsoft.Azure.Services.AppAuthentication in a container #4933
Comments
Anyone have an idea if this should be working or if this is not supported currently? |
@Zenuka please give a test drive for this cli tool https://www.nuget.org/packages/appauthentication/ |
To use the app auth library in a container on local machine, you will need to set env variables to use an explicit service principal credential. https://docs.microsoft.com/en-us/azure/key-vault/service-to-service-authentication#running-the-application-using-a-service-principal |
I've got a docker container using the
AzureServiceTokenProvider
to get an access token to access key vault but it's not working. I'm getting the following exception message:I'm not sure if the nuget package should be working inside a docker container I start up using Visual Studio (docker-compose).
The text was updated successfully, but these errors were encountered: