I’ve managed to authenticate into my data lake in my storage account fro python using shared access key, but now I’m trying to chain together multiple authentication methods, namely the Managed Identity with the access key. However I couldn’t find a solution for including the access key credential in the ChainedTokenCredential
. Any idea or advice?
Using shared access key works:
service_client = DataLakeServiceClient(account_url, credential=account_key)
What setup shall I use to chain the access key credential into:
credential_chain = ChainedTokenCredential(ManagedIdentityCredential(),<access key credential>)
service_client = DataLakeServiceClient(account_url, credential=credential_chain)
service_client.get_service_properties() # to check the client authentication
so essentially I want to make this line work (the chaining with a single credential type):
credential_chain = ChainedTokenCredential(<access key credential>)
Tomi Illes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.