-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
Description
Can't use Managed Identity and supply token for Auth
Reproduction Steps
Generate and supply token to base file-system class
token_credential = get_token_credential()
access_token = token_credential.get_token("https://datalake.azure.net/.default")
adls_client = core.AzureDLFileSystem(access_token, store_name=adls_account_name)Got error:
adls_client = core.AzureDLFileSystem(access_token, store_name=adls_account_name)
File "/usr/lib/python3.9/site-packages/azure/datalake/store/core.py", line 72, in __init__
self.connect()
File "/usr/lib/python3.9/site-packages/azure/datalake/store/core.py", line 90, in connect
self.azure = DatalakeRESTInterface(token=self.token, req_timeout_s=self.per_call_timeout_seconds, **self.kwargs)
File "/usr/lib/python3.9/site-packages/azure/datalake/store/lib.py", line 285, in __init__
self._check_token() # Retryable method. Will ensure that signed_session token is current when we set it on next line
File "/usr/lib/python3.9/site-packages/azure/datalake/store/lib.py", line 313, in _check_token
cur_session = self.token.signed_session()
AttributeError: 'AccessToken' object has no attribute 'signed_session'
Environment summary
SDK Version: What version of the SDK are you using? (pip show azure-datalake-store)
0.0.53
Python Version: What Python version are you using? Is it 64-bit or 32-bit?
3.8
OS Version: What OS and version are you using?
WSL+Ubuntu 22.04
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Metadata
Metadata
Assignees
Labels
No labels