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
This is successful until it tries to get a secret and it returns Unauthorized.
However, I am successful in getting secrets using a ServicePrincipalCredential with the same auth file if I manually open the file and pull the data.
It looks like some work has been done for get_client_from_cli_profile to support a KeyVaultClient already, so I'm hoping this could be fixed/added for get_client_from_auth_file.
The text was updated successfully, but these errors were encountered:
What would be great to be able to do is:
kv_client= get_client_from_auth_file(KeyVaultClient)
This returns the error
TypeError: __init__() got an unexpected keyword argument 'base_url'
which makes sense.So, here is a helper class and essentially what I'd like to do:
This is successful until it tries to get a secret and it returns Unauthorized.
However, I am successful in getting secrets using a ServicePrincipalCredential with the same auth file if I manually open the file and pull the data.
It looks like some work has been done for
get_client_from_cli_profile
to support a KeyVaultClient already, so I'm hoping this could be fixed/added forget_client_from_auth_file
.The text was updated successfully, but these errors were encountered: