You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opendal.apache.org by "djouallah (via GitHub)" <gi...@apache.org> on 2025/01/11 01:17:25 UTC
authentication using token
GitHub user djouallah created a discussion: authentication using token
I am trying to see if we can use opendal Python binding for manipulating the file section of onelake, I search the documentation, but could not find anyway to use token for authentication, is it a supported scenario ?
GitHub link: https://github.com/apache/opendal/discussions/5533
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "djouallah (via GitHub)" <gi...@apache.org>.
GitHub user djouallah added a comment to the discussion: authentication using token
btw, it is already supported by object store
<img width="723" alt="image" src="https://github.com/user-attachments/assets/1663b840-cef9-47a1-89d0-247766d761e4" />
https://github.com/roeap/object-store-python
GitHub link: https://github.com/apache/opendal/discussions/5533#discussioncomment-11819204
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
GitHub user Xuanwo added a comment to the discussion: authentication using token
Thank you for the information. I got it: https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities#credentials-utilities
GitHub link: https://github.com/apache/opendal/discussions/5533#discussioncomment-11819018
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
GitHub user Xuanwo added a comment to the discussion: authentication using token
Hi, does token support refer to [`sas_token`](https://docs.rs/opendal/latest/opendal/services/struct.Azblob.html#method.sas_token) support in `azblob` for `azdls`?
GitHub link: https://github.com/apache/opendal/discussions/5533#discussioncomment-11817941
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "djouallah (via GitHub)" <gi...@apache.org>.
GitHub user djouallah closed the discussion with a comment: authentication using token
thanks, sas token indeed works azblob, the limitation is with Onelake sas token as you can't list at the container level
GitHub link: https://github.com/apache/opendal/discussions/5533#discussioncomment-11880632
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "djouallah (via GitHub)" <gi...@apache.org>.
GitHub user djouallah added a comment to the discussion: authentication using token
@Xuanwo actually, we can get a sas_token from onelake, how do you pass a sas_toeken in Python ? currently, I am using this
`azure = opendal.Operator("azdls", root=root_path, filesystem= filesystem, endpoint=endpoint_azure, sas_token= sas_token )`
is it the right syntax ?
GitHub link: https://github.com/apache/opendal/discussions/5533#discussioncomment-11880176
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "djouallah (via GitHub)" <gi...@apache.org>.
GitHub user djouallah added a comment to the discussion: authentication using token
honestly not sure, but this is how I get the token currently
```
try:
os.environ['azure_storage_token'] = notebookutils.credentials.getToken('storage')
print(' all good you are in fabric notebook')
except:
from azure.identity import InteractiveBrowserCredential
os.environ['azure_storage_token'.upper()] = InteractiveBrowserCredential().get_token("https://storage.azure.com/.default").token
```
GitHub link: https://github.com/apache/opendal/discussions/5533#discussioncomment-11818373
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "djouallah (via GitHub)" <gi...@apache.org>.
GitHub user djouallah added a comment to the discussion: authentication using token
here is another reference, on storage token : https://learn.microsoft.com/en-us/azure/storage/blobs/authorize-access-azure-active-directory
GitHub link: https://github.com/apache/opendal/discussions/5533#discussioncomment-11819178
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org
Re: authentication using token
Posted by "djouallah (via GitHub)" <gi...@apache.org>.
GitHub user djouallah closed a discussion: authentication using token
I am trying to see if we can use opendal Python binding for manipulating the file section of onelake, I search the documentation, but could not find anyway to use token for authentication, is it a supported scenario ?
GitHub link: https://github.com/apache/opendal/discussions/5533
----
This is an automatically sent email for dev@opendal.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@opendal.apache.org