This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new ef586ce728 fix(services/azblob,azfile): fix azblob presign and align 
Azure credential wiring (#8903)
ef586ce728 is described below

commit ef586ce72806126e72241502cb334c7ae31ba751
Author: Xuanwo <[email protected]>
AuthorDate: Tue Nov 24 03:11:58 2026 +0800

    fix(services/azblob,azfile): fix azblob presign and align Azure credential 
wiring (#8903)
    
    * fix(services/azblob,azfile): fix azblob presign and align Azure 
credential wiring
    
    * fix(services/azblob): gate SharedKey presign on host-style endpoints
---
 .../OpenDAL/ServiceConfig/AzblobServiceConfig.cs   |  32 ++
 .../OpenDAL/ServiceConfig/AzfileServiceConfig.cs   |  40 ++
 .../java/org/apache/opendal/ServiceConfig.java     |  65 +++
 bindings/python/python/opendal/config.py           |  18 +
 core/services/azblob/src/backend.rs                | 439 ++++++++++++++++++++-
 core/services/azblob/src/config.rs                 |  14 +
 core/services/azblob/src/core.rs                   |   7 +-
 core/services/azblob/src/docs.md                   |   7 +
 core/services/azfile/src/backend.rs                | 329 +++++++++++++--
 core/services/azfile/src/config.rs                 |  18 +-
 core/services/azfile/src/core.rs                   |   7 +
 core/services/azfile/src/lib.rs                    |  10 +
 dev/src/generate/capabilities_docs.rs              |  23 +-
 website/data/capabilities.json                     |   8 +-
 website/data/services.json                         |  87 +++-
 15 files changed, 1051 insertions(+), 53 deletions(-)

diff --git a/bindings/dotnet/OpenDAL/ServiceConfig/AzblobServiceConfig.cs 
b/bindings/dotnet/OpenDAL/ServiceConfig/AzblobServiceConfig.cs
index ed1c777aec..4e33f55333 100644
--- a/bindings/dotnet/OpenDAL/ServiceConfig/AzblobServiceConfig.cs
+++ b/bindings/dotnet/OpenDAL/ServiceConfig/AzblobServiceConfig.cs
@@ -37,11 +37,23 @@ namespace OpenDAL.ServiceConfig
         /// </summary>
         public string? AccountName { get; init; }
         /// <summary>
+        /// The authority host of the service principal for Microsoft Entra ID 
authentication. Defaults to `https://login.microsoftonline.com`.
+        /// </summary>
+        public string? AuthorityHost { get; init; }
+        /// <summary>
         /// Deprecated: Azblob delete batch capability is enabled by default 
with Azure Blob's 256-operation batch limit.
         /// </summary>
         [System.Obsolete("Azblob delete batch capability is enabled by default 
with Azure Blob's 256-operation batch limit. Use CapabilityOverrideLayer to 
override delete_max_size for specific endpoints.")]
         public long? BatchMaxOperations { get; init; }
         /// <summary>
+        /// The client id of the service principal for Microsoft Entra ID 
authentication.
+        /// </summary>
+        public string? ClientId { get; init; }
+        /// <summary>
+        /// The client secret of the service principal for Microsoft Entra ID 
authentication.
+        /// </summary>
+        public string? ClientSecret { get; init; }
+        /// <summary>
         /// The container name of Azblob service backend.
         /// </summary>
         public string? Container { get; init; }
@@ -73,6 +85,10 @@ namespace OpenDAL.ServiceConfig
         /// Skip signature will skip loading credentials and signing requests.
         /// </summary>
         public bool? SkipSignature { get; init; }
+        /// <summary>
+        /// The tenant id of the service principal for Microsoft Entra ID 
authentication.
+        /// </summary>
+        public string? TenantId { get; init; }
 
         public string Scheme => "azblob";
 
@@ -87,12 +103,24 @@ namespace OpenDAL.ServiceConfig
             {
                 map["account_name"] = Utilities.ToOptionString(AccountName);
             }
+            if (AuthorityHost is not null)
+            {
+                map["authority_host"] = 
Utilities.ToOptionString(AuthorityHost);
+            }
 #pragma warning disable CS0618
             if (BatchMaxOperations is not null)
             {
                 map["batch_max_operations"] = 
Utilities.ToOptionString(BatchMaxOperations);
             }
 #pragma warning restore CS0618
+            if (ClientId is not null)
+            {
+                map["client_id"] = Utilities.ToOptionString(ClientId);
+            }
+            if (ClientSecret is not null)
+            {
+                map["client_secret"] = Utilities.ToOptionString(ClientSecret);
+            }
             if (Container is not null)
             {
                 map["container"] = Utilities.ToOptionString(Container);
@@ -125,6 +153,10 @@ namespace OpenDAL.ServiceConfig
             {
                 map["skip_signature"] = 
Utilities.ToOptionString(SkipSignature);
             }
+            if (TenantId is not null)
+            {
+                map["tenant_id"] = Utilities.ToOptionString(TenantId);
+            }
             return map;
         }
     }
diff --git a/bindings/dotnet/OpenDAL/ServiceConfig/AzfileServiceConfig.cs 
b/bindings/dotnet/OpenDAL/ServiceConfig/AzfileServiceConfig.cs
index 36c049dd34..17f9bef34f 100644
--- a/bindings/dotnet/OpenDAL/ServiceConfig/AzfileServiceConfig.cs
+++ b/bindings/dotnet/OpenDAL/ServiceConfig/AzfileServiceConfig.cs
@@ -37,6 +37,18 @@ namespace OpenDAL.ServiceConfig
         /// </summary>
         public string? AccountName { get; init; }
         /// <summary>
+        /// The authority host of the service principal for Microsoft Entra ID 
authentication. Defaults to `https://login.microsoftonline.com`.
+        /// </summary>
+        public string? AuthorityHost { get; init; }
+        /// <summary>
+        /// The client id of the service principal for Microsoft Entra ID 
authentication.
+        /// </summary>
+        public string? ClientId { get; init; }
+        /// <summary>
+        /// The client secret of the service principal for Microsoft Entra ID 
authentication.
+        /// </summary>
+        public string? ClientSecret { get; init; }
+        /// <summary>
         /// The endpoint for azfile.
         /// </summary>
         public string? Endpoint { get; init; }
@@ -52,6 +64,14 @@ namespace OpenDAL.ServiceConfig
         /// The share name for azfile.
         /// </summary>
         public string? ShareName { get; init; }
+        /// <summary>
+        /// Skip signature will skip loading credentials and signing requests.
+        /// </summary>
+        public bool? SkipSignature { get; init; }
+        /// <summary>
+        /// The tenant id of the service principal for Microsoft Entra ID 
authentication.
+        /// </summary>
+        public string? TenantId { get; init; }
 
         public string Scheme => "azfile";
 
@@ -66,6 +86,18 @@ namespace OpenDAL.ServiceConfig
             {
                 map["account_name"] = Utilities.ToOptionString(AccountName);
             }
+            if (AuthorityHost is not null)
+            {
+                map["authority_host"] = 
Utilities.ToOptionString(AuthorityHost);
+            }
+            if (ClientId is not null)
+            {
+                map["client_id"] = Utilities.ToOptionString(ClientId);
+            }
+            if (ClientSecret is not null)
+            {
+                map["client_secret"] = Utilities.ToOptionString(ClientSecret);
+            }
             if (Endpoint is not null)
             {
                 map["endpoint"] = Utilities.ToOptionString(Endpoint);
@@ -82,6 +114,14 @@ namespace OpenDAL.ServiceConfig
             {
                 map["share_name"] = Utilities.ToOptionString(ShareName);
             }
+            if (SkipSignature is not null)
+            {
+                map["skip_signature"] = 
Utilities.ToOptionString(SkipSignature);
+            }
+            if (TenantId is not null)
+            {
+                map["tenant_id"] = Utilities.ToOptionString(TenantId);
+            }
             return map;
         }
     }
diff --git a/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java 
b/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java
index 59105f2920..467908b73f 100644
--- a/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java
+++ b/bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java
@@ -172,12 +172,25 @@ public interface ServiceConfig {
          * <p>The account name of Azblob service backend.</p>
          */
         public final String accountName;
+        /**
+         * <p>The authority host of the service principal for Microsoft Entra 
ID authentication.</p>
+         * <p>Defaults to <code>https://login.microsoftonline.com</code>.</p>
+         */
+        public final String authorityHost;
         /**
          * <p>Deprecated: Azblob delete batch capability is enabled by default 
with Azure Blob's 256-operation batch limit.</p>
          *
          * @deprecated Azblob delete batch capability is enabled by default 
with Azure Blob's 256-operation batch limit. Use CapabilityOverrideLayer to 
override delete_max_size for specific endpoints.
          */
         public final Long batchMaxOperations;
+        /**
+         * <p>The client id of the service principal for Microsoft Entra ID 
authentication.</p>
+         */
+        public final String clientId;
+        /**
+         * <p>The client secret of the service principal for Microsoft Entra 
ID authentication.</p>
+         */
+        public final String clientSecret;
         /**
          * <p>The container name of Azblob service backend.</p>
          */
@@ -218,6 +231,10 @@ public interface ServiceConfig {
          * <p>Skip signature will skip loading credentials and signing 
requests.</p>
          */
         public final Boolean skipSignature;
+        /**
+         * <p>The tenant id of the service principal for Microsoft Entra ID 
authentication.</p>
+         */
+        public final String tenantId;
 
         @Override
         public String scheme() {
@@ -233,9 +250,18 @@ public interface ServiceConfig {
             if (accountName != null) {
                 map.put("account_name", accountName);
             }
+            if (authorityHost != null) {
+                map.put("authority_host", authorityHost);
+            }
             if (batchMaxOperations != null) {
                 map.put("batch_max_operations", 
String.valueOf(batchMaxOperations));
             }
+            if (clientId != null) {
+                map.put("client_id", clientId);
+            }
+            if (clientSecret != null) {
+                map.put("client_secret", clientSecret);
+            }
             map.put("container", container);
             if (encryptionAlgorithm != null) {
                 map.put("encryption_algorithm", encryptionAlgorithm);
@@ -258,6 +284,9 @@ public interface ServiceConfig {
             if (skipSignature != null) {
                 map.put("skip_signature", String.valueOf(skipSignature));
             }
+            if (tenantId != null) {
+                map.put("tenant_id", tenantId);
+            }
             return map;
         }
     }
@@ -400,6 +429,19 @@ public interface ServiceConfig {
          * <p>The account name for azfile.</p>
          */
         public final String accountName;
+        /**
+         * <p>The authority host of the service principal for Microsoft Entra 
ID authentication.</p>
+         * <p>Defaults to <code>https://login.microsoftonline.com</code>.</p>
+         */
+        public final String authorityHost;
+        /**
+         * <p>The client id of the service principal for Microsoft Entra ID 
authentication.</p>
+         */
+        public final String clientId;
+        /**
+         * <p>The client secret of the service principal for Microsoft Entra 
ID authentication.</p>
+         */
+        public final String clientSecret;
         /**
          * <p>The endpoint for azfile.</p>
          */
@@ -416,6 +458,14 @@ public interface ServiceConfig {
          * <p>The share name for azfile.</p>
          */
         public final @NonNull String shareName;
+        /**
+         * <p>Skip signature will skip loading credentials and signing 
requests.</p>
+         */
+        public final Boolean skipSignature;
+        /**
+         * <p>The tenant id of the service principal for Microsoft Entra ID 
authentication.</p>
+         */
+        public final String tenantId;
 
         @Override
         public String scheme() {
@@ -431,6 +481,15 @@ public interface ServiceConfig {
             if (accountName != null) {
                 map.put("account_name", accountName);
             }
+            if (authorityHost != null) {
+                map.put("authority_host", authorityHost);
+            }
+            if (clientId != null) {
+                map.put("client_id", clientId);
+            }
+            if (clientSecret != null) {
+                map.put("client_secret", clientSecret);
+            }
             if (endpoint != null) {
                 map.put("endpoint", endpoint);
             }
@@ -441,6 +500,12 @@ public interface ServiceConfig {
                 map.put("sas_token", sasToken);
             }
             map.put("share_name", shareName);
+            if (skipSignature != null) {
+                map.put("skip_signature", String.valueOf(skipSignature));
+            }
+            if (tenantId != null) {
+                map.put("tenant_id", tenantId);
+            }
             return map;
         }
     }
diff --git a/bindings/python/python/opendal/config.py 
b/bindings/python/python/opendal/config.py
index 646f7a8f8c..60fcfb25b1 100644
--- a/bindings/python/python/opendal/config.py
+++ b/bindings/python/python/opendal/config.py
@@ -90,8 +90,14 @@ class AzblobConfig(TypedDict):
     """The account key of Azblob service backend."""
     account_name: NotRequired[str]
     """The account name of Azblob service backend."""
+    authority_host: NotRequired[str]
+    """The authority host of the service principal for Microsoft Entra ID 
authentication.  Defaults to `https://login.microsoftonline.com`.""";
     batch_max_operations: NotRequired[int]
     """Deprecated: Azblob delete batch capability is enabled by default with 
Azure Blob's 256-operation batch limit. [Deprecated since 0.57.0] Azblob delete 
batch capability is enabled by default with Azure Blob's 256-operation batch 
limit. Use CapabilityOverrideLayer to override delete_max_size for specific 
endpoints."""
+    client_id: NotRequired[str]
+    """The client id of the service principal for Microsoft Entra ID 
authentication."""
+    client_secret: NotRequired[str]
+    """The client secret of the service principal for Microsoft Entra ID 
authentication."""
     container: Required[str]
     """The container name of Azblob service backend."""
     encryption_algorithm: NotRequired[str]
@@ -108,6 +114,8 @@ class AzblobConfig(TypedDict):
     """The sas token of Azblob service backend."""
     skip_signature: NotRequired[bool]
     """Skip signature will skip loading credentials and signing requests."""
+    tenant_id: NotRequired[str]
+    """The tenant id of the service principal for Microsoft Entra ID 
authentication."""
 
 
 class AzdlsConfig(TypedDict):
@@ -148,6 +156,12 @@ class AzfileConfig(TypedDict):
     """The account key for azfile."""
     account_name: NotRequired[str]
     """The account name for azfile."""
+    authority_host: NotRequired[str]
+    """The authority host of the service principal for Microsoft Entra ID 
authentication.  Defaults to `https://login.microsoftonline.com`.""";
+    client_id: NotRequired[str]
+    """The client id of the service principal for Microsoft Entra ID 
authentication."""
+    client_secret: NotRequired[str]
+    """The client secret of the service principal for Microsoft Entra ID 
authentication."""
     endpoint: NotRequired[str]
     """The endpoint for azfile."""
     root: NotRequired[str | os.PathLike[str]]
@@ -156,6 +170,10 @@ class AzfileConfig(TypedDict):
     """The sas token for azfile."""
     share_name: Required[str]
     """The share name for azfile."""
+    skip_signature: NotRequired[bool]
+    """Skip signature will skip loading credentials and signing requests."""
+    tenant_id: NotRequired[str]
+    """The tenant id of the service principal for Microsoft Entra ID 
authentication."""
 
 
 class B2Config(TypedDict):
diff --git a/core/services/azblob/src/backend.rs 
b/core/services/azblob/src/backend.rs
index 5744cc88d5..4ec8fc8e51 100644
--- a/core/services/azblob/src/backend.rs
+++ b/core/services/azblob/src/backend.rs
@@ -22,6 +22,7 @@ use base64::Engine;
 use base64::prelude::BASE64_STANDARD;
 use http::StatusCode;
 use log::debug;
+use reqsign_azure_storage::ClientSecretCredentialProvider;
 use reqsign_azure_storage::Credential;
 use reqsign_azure_storage::DefaultCredentialProvider;
 use reqsign_azure_storage::RequestSigner;
@@ -65,6 +66,10 @@ impl From<AzureConnectionConfig> for AzblobConfig {
             endpoint: value.endpoint,
             account_name: value.account_name,
             account_key: value.account_key,
+            client_id: value.client_id,
+            client_secret: value.client_secret,
+            tenant_id: value.tenant_id,
+            authority_host: value.authority_host,
             sas_token: value.sas_token,
             ..Default::default()
         }
@@ -247,6 +252,58 @@ impl AzblobBuilder {
         self
     }
 
+    /// Set client_id of this backend.
+    ///
+    /// - If client_id is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Required for client_credentials authentication.
+    pub fn client_id(mut self, client_id: &str) -> Self {
+        if !client_id.is_empty() {
+            self.config.client_id = Some(client_id.to_string());
+        }
+
+        self
+    }
+
+    /// Set client_secret of this backend.
+    ///
+    /// - If client_secret is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Required for client_credentials authentication.
+    pub fn client_secret(mut self, client_secret: &str) -> Self {
+        if !client_secret.is_empty() {
+            self.config.client_secret = Some(client_secret.to_string());
+        }
+
+        self
+    }
+
+    /// Set tenant_id of this backend.
+    ///
+    /// - If tenant_id is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Required for client_credentials authentication.
+    pub fn tenant_id(mut self, tenant_id: &str) -> Self {
+        if !tenant_id.is_empty() {
+            self.config.tenant_id = Some(tenant_id.to_string());
+        }
+
+        self
+    }
+
+    /// Set authority_host of this backend.
+    ///
+    /// - If authority_host is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Defaults to `https://login.microsoftonline.com`.
+    pub fn authority_host(mut self, authority_host: &str) -> Self {
+        if !authority_host.is_empty() {
+            self.config.authority_host = Some(authority_host.to_string());
+        }
+
+        self
+    }
+
     /// Replace the credential providers with a custom chain.
     ///
     /// Build the chain from [`opendal_core::reqsign_core`] and
@@ -310,6 +367,12 @@ impl Builder for AzblobBuilder {
     type Config = AzblobConfig;
 
     fn build(self) -> Result<impl Service> {
+        self.build_backend()
+    }
+}
+
+impl AzblobBuilder {
+    fn build_backend(self) -> Result<AzblobBackend> {
         debug!("backend build started: {:?}", self);
 
         let root = normalize_root(&self.config.root.unwrap_or_default());
@@ -325,7 +388,7 @@ impl Builder for AzblobBuilder {
         debug!("backend use container {}", container);
 
         let endpoint = match &self.config.endpoint {
-            Some(endpoint) => Ok(endpoint.clone()),
+            Some(endpoint) => Ok(endpoint.trim_end_matches('/').to_string()),
             None => Err(Error::new(ErrorKind::ConfigInvalid, "endpoint is 
empty")
                 .with_operation("Builder::build")
                 .with_context("service", AZBLOB_SCHEME)),
@@ -403,8 +466,51 @@ impl Builder for AzblobBuilder {
 
         let ctx = Context::new().with_file_read(TokioFileRead).with_env(OsEnv);
 
-        let mut credential_providers =
-            
ProvideCredentialChain::new().push(DefaultCredentialProvider::new());
+        let mut client_secret = ClientSecretCredentialProvider::new();
+        if let Some(v) = self.config.tenant_id.as_deref().filter(|v| 
!v.is_empty()) {
+            client_secret = client_secret.with_tenant_id(v);
+        }
+        if let Some(v) = self.config.client_id.as_deref().filter(|v| 
!v.is_empty()) {
+            client_secret = client_secret.with_client_id(v);
+        }
+        if let Some(v) = self
+            .config
+            .client_secret
+            .as_deref()
+            .filter(|v| !v.is_empty())
+        {
+            client_secret = client_secret.with_client_secret(v);
+        }
+        if let Some(v) = self
+            .config
+            .authority_host
+            .as_deref()
+            .filter(|v| !v.is_empty())
+        {
+            client_secret = client_secret.with_authority_host(v);
+        }
+
+        let mut credential_providers = ProvideCredentialChain::new().push(
+            DefaultCredentialProvider::builder()
+                .client_secret(client_secret)
+                .build(),
+        );
+
+        let has_shared_key = account_name.as_deref().is_some_and(|v| 
!v.is_empty())
+            && self
+                .config
+                .account_key
+                .as_deref()
+                .is_some_and(|v| !v.is_empty());
+        let has_sas_token = self
+            .config
+            .sas_token
+            .as_deref()
+            .is_some_and(|token| !token.trim_start_matches('?').is_empty());
+        let is_path_style_endpoint = match endpoint.parse::<http::Uri>() {
+            Ok(uri) => uri.authority().is_none() || 
!uri.path().trim_matches('/').is_empty(),
+            Err(_) => true,
+        };
 
         if let (Some(account_name), Some(account_key)) =
             (account_name.as_deref(), self.config.account_key.as_deref())
@@ -429,6 +535,14 @@ impl Builder for AzblobBuilder {
             RequestSigner::new().with_service_sas_permissions("racwd"),
         );
 
+        // SharedKey Service SAS signing in `reqsign-azure-storage` derives the
+        // canonicalized resource from the first URL path segment, which only
+        // matches host-style endpoints 
(`https://<account>.blob.core.windows.net`).
+        // Path-style endpoints such as Azurite 
(`http://127.0.0.1:10000/<account>`)
+        // require a pre-generated `sas_token` for presigning.
+        let azblob_can_presign = !self.config.skip_signature
+            && (has_sas_token || (has_shared_key && !is_path_style_endpoint));
+
         let info = ServiceInfo::new(AZBLOB_SCHEME, &root, container);
         let capability = Capability {
             stat: true,
@@ -470,10 +584,10 @@ impl Builder for AzblobBuilder {
             list: true,
             list_with_recursive: true,
 
-            presign: self.config.sas_token.is_some(),
-            presign_stat: self.config.sas_token.is_some(),
-            presign_read: self.config.sas_token.is_some(),
-            presign_write: self.config.sas_token.is_some(),
+            presign: azblob_can_presign,
+            presign_stat: azblob_can_presign,
+            presign_read: azblob_can_presign,
+            presign_write: azblob_can_presign,
 
             shared: true,
 
@@ -665,6 +779,13 @@ impl Service for AzblobBackend {
         path: &str,
         args: OpPresign,
     ) -> Result<RpPresign> {
+        if !self.core.capability.presign {
+            return Err(Error::new(
+                ErrorKind::Unsupported,
+                "presign is not supported for the current azblob 
configuration",
+            ));
+        }
+
         let req = match args.operation() {
             PresignOperation::Stat(v) => 
self.core.azblob_head_blob_request(path, v),
             PresignOperation::Read(range, v) => 
self.core.azblob_get_blob_request(path, *range, v),
@@ -683,7 +804,7 @@ impl Service for AzblobBackend {
         };
 
         let req = req?;
-        let req = self.core.sign_query(ctx, req).await?;
+        let req = self.core.sign_query(ctx, req, args.expire()).await?;
 
         let (parts, _) = req.into_parts();
 
@@ -768,4 +889,306 @@ mod tests {
         };
         Operator::from_config(config).expect("Base64-encoded 32-byte key must 
build");
     }
+
+    fn parse_query_params(uri: &http::Uri) -> 
std::collections::HashMap<String, String> {
+        uri.query()
+            .unwrap_or_default()
+            .split('&')
+            .filter(|pair| !pair.is_empty())
+            .filter_map(|pair| {
+                let (k, v) = pair.split_once('=')?;
+                Some((k.to_string(), percent_decode_path(v)))
+            })
+            .collect()
+    }
+
+    #[tokio::test]
+    async fn presign_shared_key_enables_capability_and_generates_service_sas() 
{
+        let key = BASE64_STANDARD.encode([42u8; 64]);
+
+        for endpoint in [
+            "https://myaccount.blob.core.windows.net";,
+            "https://myaccount.blob.core.windows.net/";,
+        ] {
+            let op = Operator::from_config(AzblobConfig {
+                container: "test".to_string(),
+                endpoint: Some(endpoint.to_string()),
+                account_name: Some("myaccount".to_string()),
+                account_key: Some(key.clone()),
+                ..Default::default()
+            })
+            .unwrap();
+
+            let cap = op.info().capability();
+            assert!(cap.presign);
+            assert!(cap.presign_stat);
+            assert!(cap.presign_read);
+            assert!(cap.presign_write);
+            assert!(!cap.presign_delete);
+
+            for req in [
+                op.presign_stat("path/to/file.txt", 
std::time::Duration::from_secs(120))
+                    .await
+                    .unwrap(),
+                op.presign_read("path/to/file.txt", 
std::time::Duration::from_secs(120))
+                    .await
+                    .unwrap(),
+                op.presign_write("path/to/file.txt", 
std::time::Duration::from_secs(120))
+                    .await
+                    .unwrap(),
+            ] {
+                assert_eq!(req.uri().path(), "/test/path/to/file.txt");
+                let params = parse_query_params(req.uri());
+                assert_eq!(params.get("sr").map(String::as_str), Some("b"));
+                assert_eq!(params.get("sp").map(String::as_str), 
Some("racwd"));
+                assert!(params.contains_key("sv"));
+                assert!(params.contains_key("se"));
+                assert!(params.contains_key("sig"));
+            }
+        }
+
+        // SharedKey with account_name inferred from host-style endpoint 
enables presign.
+        let inferred_op = Operator::new(
+            AzblobBuilder::default()
+                .container("test")
+                .endpoint("https://myaccount.blob.core.windows.net";)
+                .account_key(&key),
+        )
+        .unwrap();
+        assert!(inferred_op.info().capability().presign);
+
+        // Path-style endpoints (such as Azurite) must not advertise SharedKey 
presign
+        // and must reject presign calls with Unsupported instead of emitting 
invalid URLs.
+        for endpoint in [
+            "http://127.0.0.1:10000/devstoreaccount1";,
+            "http://127.0.0.1:10000/devstoreaccount1/";,
+        ] {
+            for op in [
+                Operator::new(
+                    AzblobBuilder::default()
+                        .container("test")
+                        .endpoint(endpoint)
+                        .account_name("devstoreaccount1")
+                        .account_key(&key),
+                )
+                .unwrap(),
+                Operator::from_config(AzblobConfig {
+                    container: "test".to_string(),
+                    endpoint: Some(endpoint.to_string()),
+                    account_name: Some("devstoreaccount1".to_string()),
+                    account_key: Some(key.clone()),
+                    ..Default::default()
+                })
+                .unwrap(),
+            ] {
+                let cap = op.info().capability();
+                assert!(!cap.presign);
+                assert!(!cap.presign_stat);
+                assert!(!cap.presign_read);
+                assert!(!cap.presign_write);
+                let err = op
+                    .presign_read("path/to/file.txt", 
std::time::Duration::from_secs(120))
+                    .await
+                    .unwrap_err();
+                assert_eq!(err.kind(), ErrorKind::Unsupported);
+            }
+        }
+
+        // Path-style endpoints with a pre-generated sas_token still support 
presign.
+        for endpoint in [
+            "http://127.0.0.1:10000/devstoreaccount1";,
+            "http://127.0.0.1:10000/devstoreaccount1/";,
+        ] {
+            let sas_op = Operator::new(
+                AzblobBuilder::default()
+                    .container("test")
+                    .endpoint(endpoint)
+                    .sas_token("sv=2022-11-02&ss=b&srt=o&sp=r&sig=test"),
+            )
+            .unwrap();
+            let cap = sas_op.info().capability();
+            assert!(cap.presign);
+            assert!(cap.presign_stat);
+            assert!(cap.presign_read);
+            assert!(cap.presign_write);
+            let req = sas_op
+                .presign_read("path/to/file.txt", 
std::time::Duration::from_secs(120))
+                .await
+                .unwrap();
+            assert_eq!(req.uri().path(), 
"/devstoreaccount1/test/path/to/file.txt");
+            assert_eq!(
+                parse_query_params(req.uri()).get("sig").map(String::as_str),
+                Some("test")
+            );
+        }
+
+        // Custom credential_provider_chain without explicit SharedKey/SAS 
must not
+        // advertise presign support because the chain may yield BearerToken 
credentials.
+        let chain = ProvideCredentialChain::new()
+            .push(StaticCredentialProvider::new_shared_key("myaccount", &key));
+        let custom_op = Operator::new(
+            AzblobBuilder::default()
+                .container("test")
+                .endpoint("https://myaccount.blob.core.windows.net";)
+                .credential_provider_chain(chain),
+        )
+        .unwrap();
+        let custom_cap = custom_op.info().capability();
+        assert!(!custom_cap.presign);
+        assert!(!custom_cap.presign_stat);
+        assert!(!custom_cap.presign_read);
+        assert!(!custom_cap.presign_write);
+        let err = custom_op
+            .presign_read("path/to/file.txt", 
std::time::Duration::from_secs(120))
+            .await
+            .unwrap_err();
+        assert_eq!(err.kind(), ErrorKind::Unsupported);
+
+        // Entra ID client credentials alone must not claim presign support.
+        let entra_op = Operator::new(
+            AzblobBuilder::default()
+                .container("test")
+                .endpoint("https://myaccount.blob.core.windows.net";)
+                .client_id("client-123")
+                .client_secret("secret-123")
+                .tenant_id("tenant-123"),
+        )
+        .unwrap();
+        assert!(!entra_op.info().capability().presign);
+
+        // Empty or "?" sas_token and skip_signature must not enable presign.
+        for sas_token in ["", "?"] {
+            let op = Operator::from_config(AzblobConfig {
+                container: "test".to_string(),
+                endpoint: 
Some("https://myaccount.blob.core.windows.net".to_string()),
+                sas_token: Some(sas_token.to_string()),
+                ..Default::default()
+            })
+            .unwrap();
+            assert!(!op.info().capability().presign);
+        }
+        let skipped_op = Operator::new(
+            AzblobBuilder::default()
+                .container("test")
+                .endpoint("https://myaccount.blob.core.windows.net";)
+                .account_name("myaccount")
+                .account_key(&key)
+                .skip_signature(),
+        )
+        .unwrap();
+        assert!(!skipped_op.info().capability().presign);
+    }
+
+    #[tokio::test]
+    async fn presign_honors_requested_expiration() {
+        let key = BASE64_STANDARD.encode([42u8; 64]);
+        let op = Operator::new(
+            AzblobBuilder::default()
+                .container("test")
+                .endpoint("https://myaccount.blob.core.windows.net";)
+                .account_name("myaccount")
+                .account_key(&key),
+        )
+        .unwrap();
+
+        let before = reqsign_core::time::Timestamp::now();
+        let short_req = op
+            .presign_read("a", std::time::Duration::from_secs(120))
+            .await
+            .unwrap();
+        let long_req = op
+            .presign_read("a", std::time::Duration::from_secs(600))
+            .await
+            .unwrap();
+        let after = reqsign_core::time::Timestamp::now();
+
+        let short_params = parse_query_params(short_req.uri());
+        let long_params = parse_query_params(long_req.uri());
+
+        let short_se: reqsign_core::time::Timestamp = short_params
+            .get("se")
+            .expect("se must exist")
+            .parse()
+            .unwrap();
+        let long_se: reqsign_core::time::Timestamp = long_params
+            .get("se")
+            .expect("se must exist")
+            .parse()
+            .unwrap();
+
+        assert!(
+            short_se >= before + std::time::Duration::from_secs(115)
+                && short_se <= after + std::time::Duration::from_secs(125),
+            "expected ~120s expiration, got se={short_se:?} 
(before={before:?}, after={after:?})"
+        );
+        assert!(
+            long_se >= before + std::time::Duration::from_secs(595)
+                && long_se <= after + std::time::Duration::from_secs(605),
+            "expected ~600s expiration, got se={long_se:?} (before={before:?}, 
after={after:?})"
+        );
+        assert!(long_se > short_se);
+    }
+
+    #[derive(Clone, Default, Debug)]
+    struct MockTokenHttpSend {
+        captured: Arc<std::sync::Mutex<Vec<(String, String)>>>,
+    }
+
+    impl reqsign_core::HttpSend for MockTokenHttpSend {
+        async fn http_send(
+            &self,
+            req: http::Request<bytes::Bytes>,
+        ) -> reqsign_core::Result<http::Response<bytes::Bytes>> {
+            let uri = req.uri().to_string();
+            let body = String::from_utf8_lossy(req.body()).into_owned();
+            self.captured.lock().unwrap().push((uri, body));
+            Ok(http::Response::builder()
+                .status(StatusCode::OK)
+                .body(bytes::Bytes::from_static(
+                    
br#"{"access_token":"azblob-bearer-token","expires_in":3600}"#,
+                ))
+                .unwrap())
+        }
+    }
+
+    #[tokio::test]
+    async fn client_secret_credentials_use_configured_authority_and_tenant() {
+        let backend = AzblobBuilder::default()
+            .container("test")
+            .endpoint("https://myaccount.blob.core.windows.net";)
+            .client_id("client-123")
+            .client_secret("secret-123")
+            .tenant_id("tenant-123")
+            .authority_host("https://custom.authority.example";)
+            .build_backend()
+            .unwrap();
+
+        assert!(!backend.capability().presign);
+
+        let http = MockTokenHttpSend::default();
+        let ctx = Context::new()
+            .with_env(reqsign_core::StaticEnv::default())
+            .with_http_send(http.clone());
+        let signer = backend.core.signer.clone().with_context(ctx);
+
+        let (mut parts, _) = 
http::Request::get("https://myaccount.blob.core.windows.net/test/a";)
+            .body(())
+            .unwrap()
+            .into_parts();
+        signer.sign(&mut parts, None).await.unwrap();
+
+        assert_eq!(
+            parts.headers[http::header::AUTHORIZATION],
+            "Bearer azblob-bearer-token"
+        );
+        let captured = http.captured.lock().unwrap();
+        assert_eq!(captured.len(), 1);
+        assert_eq!(
+            captured[0].0,
+            "https://custom.authority.example/tenant-123/oauth2/v2.0/token";
+        );
+        assert!(captured[0].1.contains("client_id=client-123"));
+        assert!(captured[0].1.contains("client_secret=secret-123"));
+        assert!(captured[0].1.contains("grant_type=client_credentials"));
+    }
 }
diff --git a/core/services/azblob/src/config.rs 
b/core/services/azblob/src/config.rs
index b9654f772e..ef2261e738 100644
--- a/core/services/azblob/src/config.rs
+++ b/core/services/azblob/src/config.rs
@@ -77,6 +77,20 @@ pub struct AzblobConfig {
     )]
     pub sas_token: Option<String>,
 
+    /// The client id of the service principal for Microsoft Entra ID 
authentication.
+    pub client_id: Option<String>,
+
+    /// The client secret of the service principal for Microsoft Entra ID 
authentication.
+    pub client_secret: Option<String>,
+
+    /// The tenant id of the service principal for Microsoft Entra ID 
authentication.
+    pub tenant_id: Option<String>,
+
+    /// The authority host of the service principal for Microsoft Entra ID 
authentication.
+    ///
+    /// Defaults to `https://login.microsoftonline.com`.
+    pub authority_host: Option<String>,
+
     /// Deprecated: Azblob delete batch capability is enabled by default with 
Azure Blob's 256-operation batch limit.
     #[deprecated(
         since = "0.57.0",
diff --git a/core/services/azblob/src/core.rs b/core/services/azblob/src/core.rs
index 4348753247..740600b7b0 100644
--- a/core/services/azblob/src/core.rs
+++ b/core/services/azblob/src/core.rs
@@ -109,6 +109,7 @@ impl AzblobCore {
         &self,
         ctx: &OperationContext,
         req: Request<T>,
+        duration: Duration,
     ) -> Result<Request<T>> {
         if self.skip_signature {
             return Ok(req);
@@ -117,7 +118,7 @@ impl AzblobCore {
         let (mut parts, body) = req.into_parts();
 
         self.signer(ctx)
-            .sign(&mut parts, Some(Duration::from_secs(3600)))
+            .sign(&mut parts, Some(duration))
             .await
             .map_err(|e| new_request_sign_error(e.into()))?;
 
@@ -575,7 +576,9 @@ impl AzblobCore {
             .extension(ServiceOperation("GetBlob"))
             .body(Buffer::new())
             .map_err(new_request_build_error)?;
-        let source = self.sign_query(ctx, source).await?;
+        let source = self
+            .sign_query(ctx, source, Duration::from_secs(3600))
+            .await?;
         let source = source.uri().to_string();
         let req = self.azblob_put_block_from_url_request(&source, to, 
block_id, range)?;
         let req = self.sign(ctx, req).await?;
diff --git a/core/services/azblob/src/docs.md b/core/services/azblob/src/docs.md
index b925594150..1ce8690fac 100644
--- a/core/services/azblob/src/docs.md
+++ b/core/services/azblob/src/docs.md
@@ -15,6 +15,13 @@ Depending on its configuration and the backing system, this 
service can expose:
 Inspect the effective capability set with [`opendal_core::Operator::info`] and
 [`opendal_core::OperatorInfo::capability`] after building an operator.
 
+Presigning (`presign_stat`, `presign_read`, and `presign_write`) requires
+`skip_signature` to be disabled and either a pre-generated `sas_token` or
+SharedKey credentials (`account_name` and `account_key`) with a host-style
+endpoint such as `https://<account>.blob.core.windows.net`. Path-style
+endpoints such as Azurite (`http://127.0.0.1:10000/<account>`) require a
+pre-generated `sas_token` for presigning.
+
 ## Configuration
 
 Use [`crate::AzblobConfig`] for serializable configuration and this builder's
diff --git a/core/services/azfile/src/backend.rs 
b/core/services/azfile/src/backend.rs
index 577638c97d..19dd059e6e 100644
--- a/core/services/azfile/src/backend.rs
+++ b/core/services/azfile/src/backend.rs
@@ -20,11 +20,14 @@ use std::sync::Arc;
 
 use http::StatusCode;
 use log::debug;
+use reqsign_azure_storage::ClientSecretCredentialProvider;
+use reqsign_azure_storage::Credential;
 use reqsign_azure_storage::DefaultCredentialProvider;
 use reqsign_azure_storage::RequestSigner;
 use reqsign_azure_storage::StaticCredentialProvider;
 use reqsign_core::Context;
 use reqsign_core::OsEnv;
+use reqsign_core::ProvideCredentialChain;
 use reqsign_core::Signer;
 use reqsign_file_read_tokio::TokioFileRead;
 
@@ -52,8 +55,11 @@ impl From<AzureConnectionConfig> for AzfileConfig {
             account_key: config.account_key,
             sas_token: config.sas_token,
             endpoint: config.endpoint,
-            root: None,                // root is not part of 
AzureStorageConfig
-            share_name: String::new(), // share_name is not part of 
AzureStorageConfig
+            client_id: config.client_id,
+            client_secret: config.client_secret,
+            tenant_id: config.tenant_id,
+            authority_host: config.authority_host,
+            ..Default::default()
         }
     }
 }
@@ -63,6 +69,7 @@ impl From<AzureConnectionConfig> for AzfileConfig {
 #[derive(Default)]
 pub struct AzfileBuilder {
     pub(super) config: AzfileConfig,
+    pub(super) credential_providers: 
Option<ProvideCredentialChain<Credential>>,
 }
 
 impl Debug for AzfileBuilder {
@@ -133,6 +140,86 @@ impl AzfileBuilder {
         self
     }
 
+    /// Set sas_token of this backend.
+    ///
+    /// - If sas_token is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    pub fn sas_token(mut self, sas_token: &str) -> Self {
+        if !sas_token.is_empty() {
+            self.config.sas_token = Some(sas_token.to_string());
+        }
+
+        self
+    }
+
+    /// Set client_id of this backend.
+    ///
+    /// - If client_id is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Required for client_credentials authentication.
+    pub fn client_id(mut self, client_id: &str) -> Self {
+        if !client_id.is_empty() {
+            self.config.client_id = Some(client_id.to_string());
+        }
+
+        self
+    }
+
+    /// Set client_secret of this backend.
+    ///
+    /// - If client_secret is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Required for client_credentials authentication.
+    pub fn client_secret(mut self, client_secret: &str) -> Self {
+        if !client_secret.is_empty() {
+            self.config.client_secret = Some(client_secret.to_string());
+        }
+
+        self
+    }
+
+    /// Set tenant_id of this backend.
+    ///
+    /// - If tenant_id is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Required for client_credentials authentication.
+    pub fn tenant_id(mut self, tenant_id: &str) -> Self {
+        if !tenant_id.is_empty() {
+            self.config.tenant_id = Some(tenant_id.to_string());
+        }
+
+        self
+    }
+
+    /// Set authority_host of this backend.
+    ///
+    /// - If authority_host is set, we will take user's input first.
+    /// - If not, we will try to load it from environment.
+    /// - Defaults to `https://login.microsoftonline.com`.
+    pub fn authority_host(mut self, authority_host: &str) -> Self {
+        if !authority_host.is_empty() {
+            self.config.authority_host = Some(authority_host.to_string());
+        }
+
+        self
+    }
+
+    /// Replace the credential providers with a custom chain.
+    ///
+    /// Build the chain from [`opendal_core::reqsign_core`] and
+    /// [`crate::reqsign_azure_storage`] so that its types match the ones this
+    /// service is built with.
+    pub fn credential_provider_chain(mut self, chain: 
ProvideCredentialChain<Credential>) -> Self {
+        self.credential_providers = Some(chain);
+        self
+    }
+
+    /// Skip signature will skip loading credentials and signing requests.
+    pub fn skip_signature(mut self) -> Self {
+        self.config.skip_signature = true;
+        self
+    }
+
     /// Create a new `AfileBuilder` instance from an [Azure Storage connection 
string][1].
     ///
     /// [1]: 
https://learn.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string
@@ -162,50 +249,88 @@ impl Builder for AzfileBuilder {
     type Config = AzfileConfig;
 
     fn build(self) -> Result<impl Service> {
+        self.build_backend()
+    }
+}
+
+impl AzfileBuilder {
+    fn build_backend(self) -> Result<AzfileBackend> {
         debug!("backend build started: {:?}", self);
 
         let root = normalize_root(&self.config.root.unwrap_or_default());
         debug!("backend use root {root}");
 
         let endpoint = match &self.config.endpoint {
-            Some(endpoint) => Ok(endpoint.clone()),
+            Some(endpoint) => Ok(endpoint.trim_end_matches('/').to_string()),
             None => Err(Error::new(ErrorKind::ConfigInvalid, "endpoint is 
empty")
                 .with_operation("Builder::build")
                 .with_context("service", AZFILE_SCHEME)),
         }?;
         debug!("backend use endpoint {}", endpoint);
 
-        let account_name_option = self
+        let account_name = self
             .config
             .account_name
             .clone()
             .or_else(|| azure_account_name_from_endpoint(endpoint.as_str()));
 
-        let account_name = match account_name_option {
-            Some(account_name) => Ok(account_name),
-            None => Err(
-                Error::new(ErrorKind::ConfigInvalid, "account_name is empty")
-                    .with_operation("Builder::build")
-                    .with_context("service", AZFILE_SCHEME),
-            ),
-        }?;
-
         let ctx = Context::new().with_file_read(TokioFileRead).with_env(OsEnv);
 
-        let mut credential = DefaultCredentialProvider::new();
-        if let Some(account_key) = self.config.account_key.as_deref() {
-            credential = 
credential.push_front(StaticCredentialProvider::new_shared_key(
-                &account_name,
-                account_key,
-            ));
+        let mut client_secret = ClientSecretCredentialProvider::new();
+        if let Some(v) = self.config.tenant_id.as_deref().filter(|v| 
!v.is_empty()) {
+            client_secret = client_secret.with_tenant_id(v);
         }
+        if let Some(v) = self.config.client_id.as_deref().filter(|v| 
!v.is_empty()) {
+            client_secret = client_secret.with_client_id(v);
+        }
+        if let Some(v) = self
+            .config
+            .client_secret
+            .as_deref()
+            .filter(|v| !v.is_empty())
+        {
+            client_secret = client_secret.with_client_secret(v);
+        }
+        if let Some(v) = self
+            .config
+            .authority_host
+            .as_deref()
+            .filter(|v| !v.is_empty())
+        {
+            client_secret = client_secret.with_authority_host(v);
+        }
+
+        let mut credential_providers = ProvideCredentialChain::new().push(
+            DefaultCredentialProvider::builder()
+                .client_secret(client_secret)
+                .build(),
+        );
+
+        if let (Some(account_name), Some(account_key)) = (
+            account_name.as_deref().filter(|v| !v.is_empty()),
+            self.config.account_key.as_deref().filter(|v| !v.is_empty()),
+        ) {
+            credential_providers = credential_providers.push_front(
+                StaticCredentialProvider::new_shared_key(account_name, 
account_key),
+            );
+        }
+
         let sas_token = normalize_sas_token(self.config.sas_token.as_deref());
         if let Some(sas_token) = sas_token {
-            credential = 
credential.push_front(StaticCredentialProvider::new_sas_token(sas_token));
+            credential_providers =
+                
credential_providers.push_front(StaticCredentialProvider::new_sas_token(sas_token));
+        }
+
+        let rename_source_sas_token = sas_token
+            .filter(|_| self.credential_providers.is_none() && 
!self.config.skip_signature)
+            .map(str::to_string);
+
+        if let Some(customized_credential_chain) = self.credential_providers {
+            credential_providers = customized_credential_chain;
         }
 
         let sign_ctx = ctx;
-        let signer = Signer::new(sign_ctx.clone(), credential, 
RequestSigner::new());
+        let signer = Signer::new(sign_ctx.clone(), credential_providers, 
RequestSigner::new());
 
         let info = ServiceInfo::new(AZFILE_SCHEME, &root, "");
         let capability = Capability {
@@ -239,7 +364,8 @@ impl Builder for AzfileBuilder {
                 signer,
                 sign_ctx,
                 share_name: self.config.share_name.clone(),
-                sas_token: sas_token.map(str::to_string),
+                sas_token: rename_source_sas_token,
+                skip_signature: self.config.skip_signature,
             }),
         })
     }
@@ -433,3 +559,162 @@ impl Service for AzfileBackend {
         ))
     }
 }
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+
+    #[derive(Clone, Default, Debug)]
+    struct MockTokenHttpSend {
+        captured: Arc<std::sync::Mutex<Vec<(String, String)>>>,
+    }
+
+    impl reqsign_core::HttpSend for MockTokenHttpSend {
+        async fn http_send(
+            &self,
+            req: http::Request<bytes::Bytes>,
+        ) -> reqsign_core::Result<http::Response<bytes::Bytes>> {
+            let uri = req.uri().to_string();
+            let body = String::from_utf8_lossy(req.body()).into_owned();
+            self.captured.lock().unwrap().push((uri, body));
+            Ok(http::Response::builder()
+                .status(StatusCode::OK)
+                .body(bytes::Bytes::from_static(
+                    
br#"{"access_token":"azfile-bearer-token","expires_in":3600}"#,
+                ))
+                .unwrap())
+        }
+    }
+
+    #[tokio::test]
+    async fn build_with_sas_token_without_account_name_signs_requests() {
+        let backend = AzfileBuilder::default()
+            .endpoint("http://127.0.0.1:10002";)
+            .share_name("share")
+            .sas_token("?sv=2022-11-02&sig=abc")
+            .build_backend()
+            .unwrap();
+
+        assert_eq!(
+            backend.core.sas_token.as_deref(),
+            Some("sv=2022-11-02&sig=abc")
+        );
+
+        let signer = backend
+            .core
+            .signer
+            .clone()
+            
.with_context(Context::new().with_env(reqsign_core::StaticEnv::default()));
+        let (mut parts, _) = 
http::Request::get("http://127.0.0.1:10002/share/file.txt";)
+            .body(())
+            .unwrap()
+            .into_parts();
+        signer.sign(&mut parts, None).await.unwrap();
+
+        assert_eq!(
+            parts.uri.to_string(),
+            "http://127.0.0.1:10002/share/file.txt?sv=2022-11-02&sig=abc";
+        );
+    }
+
+    #[tokio::test]
+    async fn skip_signature_builds_without_account_name_and_omits_auth() {
+        let backend = AzfileBuilder::default()
+            .endpoint("http://127.0.0.1:10002";)
+            .share_name("share")
+            .sas_token("sv=2022-11-02&sig=abc")
+            .skip_signature()
+            .build_backend()
+            .unwrap();
+
+        assert!(backend.core.skip_signature);
+        assert_eq!(backend.core.sas_token, None);
+
+        let req = http::Request::get("http://127.0.0.1:10002/share/file.txt";)
+            .body(Buffer::new())
+            .unwrap();
+        let signed = backend
+            .core
+            .sign(&OperationContext::new(), req)
+            .await
+            .unwrap();
+
+        assert_eq!(signed.headers()["x-ms-version"], "2022-11-02");
+        assert!(signed.headers().get(http::header::AUTHORIZATION).is_none());
+        assert_eq!(
+            signed.uri().to_string(),
+            "http://127.0.0.1:10002/share/file.txt";
+        );
+    }
+
+    #[tokio::test]
+    async fn 
credential_provider_chain_replaces_default_and_static_credentials() {
+        let chain = 
ProvideCredentialChain::new().push(StaticCredentialProvider::new_sas_token(
+            "sv=custom&sig=chain",
+        ));
+        let backend = AzfileBuilder::default()
+            .endpoint("http://127.0.0.1:10002";)
+            .share_name("share")
+            .sas_token("sv=ignored&sig=ignored")
+            .credential_provider_chain(chain)
+            .build_backend()
+            .unwrap();
+
+        assert_eq!(backend.core.sas_token, None);
+
+        let signer = backend
+            .core
+            .signer
+            .clone()
+            
.with_context(Context::new().with_env(reqsign_core::StaticEnv::default()));
+        let (mut parts, _) = 
http::Request::get("http://127.0.0.1:10002/share/file.txt";)
+            .body(())
+            .unwrap()
+            .into_parts();
+        signer.sign(&mut parts, None).await.unwrap();
+
+        assert_eq!(
+            parts.uri.to_string(),
+            "http://127.0.0.1:10002/share/file.txt?sv=custom&sig=chain";
+        );
+    }
+
+    #[tokio::test]
+    async fn client_secret_credentials_use_configured_authority_and_tenant() {
+        let backend = AzfileBuilder::default()
+            .endpoint("http://127.0.0.1:10002";)
+            .share_name("share")
+            .client_id("client-123")
+            .client_secret("secret-123")
+            .tenant_id("tenant-123")
+            .authority_host("https://custom.authority.example";)
+            .build_backend()
+            .unwrap();
+
+        let http = MockTokenHttpSend::default();
+        let ctx = Context::new()
+            .with_env(reqsign_core::StaticEnv::default())
+            .with_http_send(http.clone());
+        let signer = backend.core.signer.clone().with_context(ctx);
+
+        let (mut parts, _) = 
http::Request::get("http://127.0.0.1:10002/share/file.txt";)
+            .body(())
+            .unwrap()
+            .into_parts();
+        signer.sign(&mut parts, None).await.unwrap();
+
+        assert_eq!(
+            parts.headers[http::header::AUTHORIZATION],
+            "Bearer azfile-bearer-token"
+        );
+        let captured = http.captured.lock().unwrap();
+        assert_eq!(captured.len(), 1);
+        assert_eq!(
+            captured[0].0,
+            "https://custom.authority.example/tenant-123/oauth2/v2.0/token";
+        );
+        assert!(captured[0].1.contains("client_id=client-123"));
+        assert!(captured[0].1.contains("client_secret=secret-123"));
+        assert!(captured[0].1.contains("grant_type=client_credentials"));
+    }
+}
diff --git a/core/services/azfile/src/config.rs 
b/core/services/azfile/src/config.rs
index 29bcc1af1c..d77ff63d3b 100644
--- a/core/services/azfile/src/config.rs
+++ b/core/services/azfile/src/config.rs
@@ -38,6 +38,19 @@ pub struct AzfileConfig {
     pub account_key: Option<String>,
     /// The sas token for azfile.
     pub sas_token: Option<String>,
+    /// The client id of the service principal for Microsoft Entra ID 
authentication.
+    pub client_id: Option<String>,
+    /// The client secret of the service principal for Microsoft Entra ID 
authentication.
+    pub client_secret: Option<String>,
+    /// The tenant id of the service principal for Microsoft Entra ID 
authentication.
+    pub tenant_id: Option<String>,
+    /// The authority host of the service principal for Microsoft Entra ID 
authentication.
+    ///
+    /// Defaults to `https://login.microsoftonline.com`.
+    pub authority_host: Option<String>,
+    /// Skip signature will skip loading credentials and signing requests.
+    #[serde(default)]
+    pub skip_signature: bool,
 }
 
 impl Debug for AzfileConfig {
@@ -99,7 +112,10 @@ impl opendal_core::Configurator for AzfileConfig {
 
     #[allow(deprecated)]
     fn into_builder(self) -> Self::Builder {
-        AzfileBuilder { config: self }
+        AzfileBuilder {
+            config: self,
+            credential_providers: None,
+        }
     }
 }
 
diff --git a/core/services/azfile/src/core.rs b/core/services/azfile/src/core.rs
index 2fb6d45b6d..65ed66c077 100644
--- a/core/services/azfile/src/core.rs
+++ b/core/services/azfile/src/core.rs
@@ -55,6 +55,7 @@ pub struct AzfileCore {
     pub endpoint: String,
     pub share_name: String,
     pub sas_token: Option<String>,
+    pub skip_signature: bool,
     pub signer: Signer<Credential>,
     pub sign_ctx: Context,
 }
@@ -88,6 +89,11 @@ impl AzfileCore {
             HeaderValue::from_static("2022-11-02"),
         );
 
+        // x-ms-version must be set even when signing is skipped.
+        if self.skip_signature {
+            return Ok(Request::from_parts(parts, body));
+        }
+
         self.signer(ctx)
             .sign(&mut parts, None)
             .await
@@ -680,6 +686,7 @@ mod tests {
                 endpoint: "https://acc.file.core.windows.net".to_string(),
                 share_name: "share".to_string(),
                 sas_token: normalize_sas_token(sas_token).map(str::to_string),
+                skip_signature: false,
                 signer: Signer::new(
                     Context::new(),
                     StaticCredentialProvider::new_shared_key("acc", "a2V5"),
diff --git a/core/services/azfile/src/lib.rs b/core/services/azfile/src/lib.rs
index f8790aa754..d4b64e9028 100644
--- a/core/services/azfile/src/lib.rs
+++ b/core/services/azfile/src/lib.rs
@@ -43,3 +43,13 @@ mod writer;
 
 pub use backend::AzfileBuilder as Azfile;
 pub use config::AzfileConfig;
+
+/// Re-export of the [`reqsign_azure_storage`] crate that this service signs
+/// requests with.
+///
+/// [`Azfile::credential_provider_chain`] takes a chain of providers for
+/// [`reqsign_azure_storage::Credential`]. Implement providers against this
+/// re-export and [`opendal_core::reqsign_core`] rather than depending on the
+/// `reqsign` crates directly, so that the types always match the ones this
+/// service is built with.
+pub use reqsign_azure_storage;
diff --git a/dev/src/generate/capabilities_docs.rs 
b/dev/src/generate/capabilities_docs.rs
index a319901688..67e9950447 100644
--- a/dev/src/generate/capabilities_docs.rs
+++ b/dev/src/generate/capabilities_docs.rs
@@ -691,10 +691,16 @@ fn describe_bool_condition(expr: &Expr, rel_path: &str) 
-> Result<String> {
             }
         }
         Expr::Path(ExprPath { path, .. }) => {
-            if let Some(ident) = path.get_ident().map(ToString::to_string)
-                && let Some(rest) = ident.strip_prefix("has_")
-            {
-                return Ok(format!("Requires `{rest}`"));
+            if let Some(ident) = path.get_ident().map(ToString::to_string) {
+                if ident == "azblob_can_presign" {
+                    return Ok(
+                        "Requires `sas_token` or a host-style endpoint with 
`account_key` (and `account_name`), with `skip_signature` disabled"
+                            .to_string(),
+                    );
+                }
+                if let Some(rest) = ident.strip_prefix("has_") {
+                    return Ok(format!("Requires `{rest}`"));
+                }
             }
             bail!(
                 "{}: unsupported capability boolean expression; add an 
explicit mapping in dev/src/generate/capabilities_docs.rs",
@@ -1198,6 +1204,15 @@ mod tests {
                 .map(|l| l.display.as_str()),
             Some("1 MB")
         );
+
+        let azblob = out.services.iter().find(|s| s.scheme == 
"azblob").unwrap();
+        assert_eq!(
+            azblob.native.get("presign"),
+            Some(&NativeBoolDoc::Conditional(
+                "Requires `sas_token` or a host-style endpoint with 
`account_key` (and `account_name`), with `skip_signature` disabled"
+                    .to_string()
+            ))
+        );
     }
 
     #[test]
diff --git a/website/data/capabilities.json b/website/data/capabilities.json
index c249702423..b5438a8827 100644
--- a/website/data/capabilities.json
+++ b/website/data/capabilities.json
@@ -792,10 +792,10 @@
         "delete_with_if_none_match": true,
         "list": true,
         "list_with_recursive": true,
-        "presign": "Requires `sas_token`",
-        "presign_read": "Requires `sas_token`",
-        "presign_stat": "Requires `sas_token`",
-        "presign_write": "Requires `sas_token`",
+        "presign": "Requires `sas_token` or a host-style endpoint with 
`account_key` (and `account_name`), with `skip_signature` disabled",
+        "presign_read": "Requires `sas_token` or a host-style endpoint with 
`account_key` (and `account_name`), with `skip_signature` disabled",
+        "presign_stat": "Requires `sas_token` or a host-style endpoint with 
`account_key` (and `account_name`), with `skip_signature` disabled",
+        "presign_write": "Requires `sas_token` or a host-style endpoint with 
`account_key` (and `account_name`), with `skip_signature` disabled",
         "read": true,
         "read_with_if_match": true,
         "read_with_if_modified_since": true,
diff --git a/website/data/services.json b/website/data/services.json
index f5be1d2b86..ec21c51214 100644
--- a/website/data/services.json
+++ b/website/data/services.json
@@ -250,6 +250,34 @@
           "group": "General",
           "comments": "The sas token of Azblob service backend."
         },
+        {
+          "name": "client_id",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The client id of the service principal for Microsoft 
Entra ID authentication."
+        },
+        {
+          "name": "client_secret",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The client secret of the service principal for 
Microsoft Entra ID authentication."
+        },
+        {
+          "name": "tenant_id",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The tenant id of the service principal for Microsoft 
Entra ID authentication."
+        },
+        {
+          "name": "authority_host",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The authority host of the service principal for 
Microsoft Entra ID authentication.\n\nDefaults to 
`https://login.microsoftonline.com`.";
+        },
         {
           "name": "batch_max_operations",
           "type": "integer",
@@ -274,37 +302,37 @@
           "binding": "rust",
           "language": "rust",
           "minimal": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"azblob\", [\n    (\"container\".to_string(), 
\"...\".to_string()),\n])?;",
-          "full": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"azblob\", [\n    // The root of Azblob service backend.\n  
  //\n    // All operations will happen under this root.\n    // 
(\"root\".to_string(), \"...\".to_string()),\n\n    // The container name of 
Azblob service backend.\n    (\"container\".to_string(), 
\"...\".to_string()),\n\n    // The endpoint of Azblob service backend.\n    
//\n    // Endpoint must be full uri, e.g.\n    //\n    // - Azblob: `https: 
[...]
+          "full": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"azblob\", [\n    // The root of Azblob service backend.\n  
  //\n    // All operations will happen under this root.\n    // 
(\"root\".to_string(), \"...\".to_string()),\n\n    // The container name of 
Azblob service backend.\n    (\"container\".to_string(), 
\"...\".to_string()),\n\n    // The endpoint of Azblob service backend.\n    
//\n    // Endpoint must be full uri, e.g.\n    //\n    // - Azblob: `https: 
[...]
         },
         {
           "binding": "java",
           "language": "java",
           "minimal": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\nconfig.put(\"container\", \"...\");\nOperator operator = 
Operator.of(\"azblob\", config);",
-          "full": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\n// The root of Azblob service backend.\n//\n// All operations 
will happen under this root.\n// config.put(\"root\", \"...\");\n\n// The 
container name of Azblob service backend.\nconfig.put(\"container\", 
\"...\");\n\n// The endpoint of Azblob service backend.\n//\n// Endpoint must 
be full uri, e.g.\n//\n// - Azblob: `https://accountna [...]
+          "full": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\n// The root of Azblob service backend.\n//\n// All operations 
will happen under this root.\n// config.put(\"root\", \"...\");\n\n// The 
container name of Azblob service backend.\nconfig.put(\"container\", 
\"...\");\n\n// The endpoint of Azblob service backend.\n//\n// Endpoint must 
be full uri, e.g.\n//\n// - Azblob: `https://accountna [...]
         },
         {
           "binding": "python",
           "language": "python",
           "minimal": "import opendal\n\noperator = opendal.Operator(\n    
\"azblob\",\n    container=\"...\",\n)",
-          "full": "import opendal\n\noperator = opendal.Operator(\n    
\"azblob\",\n    # The root of Azblob service backend.\n    #\n    # All 
operations will happen under this root.\n    # root=\"...\",\n\n    # The 
container name of Azblob service backend.\n    container=\"...\",\n\n    # The 
endpoint of Azblob service backend.\n    #\n    # Endpoint must be full uri, 
e.g.\n    #\n    # - Azblob: `https://accountname.blob.core.windows.net`\n    # 
- Azurite: `http://127.0.0.1:10000/dev [...]
+          "full": "import opendal\n\noperator = opendal.Operator(\n    
\"azblob\",\n    # The root of Azblob service backend.\n    #\n    # All 
operations will happen under this root.\n    # root=\"...\",\n\n    # The 
container name of Azblob service backend.\n    container=\"...\",\n\n    # The 
endpoint of Azblob service backend.\n    #\n    # Endpoint must be full uri, 
e.g.\n    #\n    # - Azblob: `https://accountname.blob.core.windows.net`\n    # 
- Azurite: `http://127.0.0.1:10000/dev [...]
         },
         {
           "binding": "nodejs",
           "language": "javascript",
           "minimal": "import { Operator } from \"opendal\";\n\nconst operator 
= new Operator(\"azblob\", {\n  container: \"...\",\n});",
-          "full": "import { Operator } from \"opendal\";\n\nconst operator = 
new Operator(\"azblob\", {\n  // The root of Azblob service backend.\n  //\n  
// All operations will happen under this root.\n  // root: \"...\",\n\n  // The 
container name of Azblob service backend.\n  container: \"...\",\n\n  // The 
endpoint of Azblob service backend.\n  //\n  // Endpoint must be full uri, 
e.g.\n  //\n  // - Azblob: `https://accountname.blob.core.windows.net`\n  // - 
Azurite: `http://127.0.0.1 [...]
+          "full": "import { Operator } from \"opendal\";\n\nconst operator = 
new Operator(\"azblob\", {\n  // The root of Azblob service backend.\n  //\n  
// All operations will happen under this root.\n  // root: \"...\",\n\n  // The 
container name of Azblob service backend.\n  container: \"...\",\n\n  // The 
endpoint of Azblob service backend.\n  //\n  // Endpoint must be full uri, 
e.g.\n  //\n  // - Azblob: `https://accountname.blob.core.windows.net`\n  // - 
Azurite: `http://127.0.0.1 [...]
         },
         {
           "binding": "ruby",
           "language": "ruby",
           "minimal": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"azblob\", {\n  \"container\" => \"...\",\n})",
-          "full": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"azblob\", {\n  # The root of Azblob service backend.\n  
#\n  # All operations will happen under this root.\n  # \"root\" => 
\"...\",\n\n  # The container name of Azblob service backend.\n  \"container\" 
=> \"...\",\n\n  # The endpoint of Azblob service backend.\n  #\n  # Endpoint 
must be full uri, e.g.\n  #\n  # - Azblob: 
`https://accountname.blob.core.windows.net`\n  # - Azurite: 
`http://127.0.0.1:10000/devstor [...]
+          "full": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"azblob\", {\n  # The root of Azblob service backend.\n  
#\n  # All operations will happen under this root.\n  # \"root\" => 
\"...\",\n\n  # The container name of Azblob service backend.\n  \"container\" 
=> \"...\",\n\n  # The endpoint of Azblob service backend.\n  #\n  # Endpoint 
must be full uri, e.g.\n  #\n  # - Azblob: 
`https://accountname.blob.core.windows.net`\n  # - Azurite: 
`http://127.0.0.1:10000/devstor [...]
         },
         {
           "binding": "go",
           "language": "go",
           "minimal": "import 
(\n\t\"github.com/apache/opendal-go-services/azblob\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(azblob.Scheme, opendal.OperatorOptions{\n\t\"container\": 
\"...\",\n})",
-          "full": "import 
(\n\t\"github.com/apache/opendal-go-services/azblob\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(azblob.Scheme, opendal.OperatorOptions{\n\t// The root of 
Azblob service backend.\n\t//\n\t// All operations will happen under this 
root.\n\t// \"root\": \"...\",\n\n\t// The container name of Azblob service 
backend.\n\t\"container\": \"...\",\n\n\t// The endpoint of Azblob service 
backend.\n\t//\n\t// Endpoint mus [...]
+          "full": "import 
(\n\t\"github.com/apache/opendal-go-services/azblob\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(azblob.Scheme, opendal.OperatorOptions{\n\t// The root of 
Azblob service backend.\n\t//\n\t// All operations will happen under this 
root.\n\t// \"root\": \"...\",\n\n\t// The container name of Azblob service 
backend.\n\t\"container\": \"...\",\n\n\t// The endpoint of Azblob service 
backend.\n\t//\n\t// Endpoint mus [...]
         }
       ]
     },
@@ -480,6 +508,41 @@
           "required": false,
           "group": "General",
           "comments": "The sas token for azfile."
+        },
+        {
+          "name": "client_id",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The client id of the service principal for Microsoft 
Entra ID authentication."
+        },
+        {
+          "name": "client_secret",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The client secret of the service principal for 
Microsoft Entra ID authentication."
+        },
+        {
+          "name": "tenant_id",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The tenant id of the service principal for Microsoft 
Entra ID authentication."
+        },
+        {
+          "name": "authority_host",
+          "type": "string",
+          "required": false,
+          "group": "General",
+          "comments": "The authority host of the service principal for 
Microsoft Entra ID authentication.\n\nDefaults to 
`https://login.microsoftonline.com`.";
+        },
+        {
+          "name": "skip_signature",
+          "type": "bool",
+          "required": false,
+          "group": "General",
+          "comments": "Skip signature will skip loading credentials and 
signing requests."
         }
       ],
       "examples": [
@@ -487,37 +550,37 @@
           "binding": "rust",
           "language": "rust",
           "minimal": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"azfile\", [\n    (\"share_name\".to_string(), 
\"...\".to_string()),\n])?;",
-          "full": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"azfile\", [\n    // The root path for azfile.\n    // 
(\"root\".to_string(), \"...\".to_string()),\n\n    // The endpoint for 
azfile.\n    // (\"endpoint\".to_string(), \"...\".to_string()),\n\n    // The 
share name for azfile.\n    (\"share_name\".to_string(), 
\"...\".to_string()),\n\n    // The account name for azfile.\n    // 
(\"account_name\".to_string(), \"...\".to_string()),\n\n    // The account key 
f [...]
+          "full": "use opendal::Operator;\n\nlet operator = 
Operator::via_iter(\"azfile\", [\n    // The root path for azfile.\n    // 
(\"root\".to_string(), \"...\".to_string()),\n\n    // The endpoint for 
azfile.\n    // (\"endpoint\".to_string(), \"...\".to_string()),\n\n    // The 
share name for azfile.\n    (\"share_name\".to_string(), 
\"...\".to_string()),\n\n    // The account name for azfile.\n    // 
(\"account_name\".to_string(), \"...\".to_string()),\n\n    // The account key 
f [...]
         },
         {
           "binding": "java",
           "language": "java",
           "minimal": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\nconfig.put(\"share_name\", \"...\");\nOperator operator = 
Operator.of(\"azfile\", config);",
-          "full": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\n// The root path for azfile.\n// config.put(\"root\", 
\"...\");\n\n// The endpoint for azfile.\n// config.put(\"endpoint\", 
\"...\");\n\n// The share name for azfile.\nconfig.put(\"share_name\", 
\"...\");\n\n// The account name for azfile.\n// config.put(\"account_name\", 
\"...\");\n\n// The account key for azfile.\n// config.put(\"acc [...]
+          "full": "import java.util.HashMap;\nimport java.util.Map;\nimport 
org.apache.opendal.Operator;\n\nMap<String, String> config = new 
HashMap<>();\n// The root path for azfile.\n// config.put(\"root\", 
\"...\");\n\n// The endpoint for azfile.\n// config.put(\"endpoint\", 
\"...\");\n\n// The share name for azfile.\nconfig.put(\"share_name\", 
\"...\");\n\n// The account name for azfile.\n// config.put(\"account_name\", 
\"...\");\n\n// The account key for azfile.\n// config.put(\"acc [...]
         },
         {
           "binding": "python",
           "language": "python",
           "minimal": "import opendal\n\noperator = opendal.Operator(\n    
\"azfile\",\n    share_name=\"...\",\n)",
-          "full": "import opendal\n\noperator = opendal.Operator(\n    
\"azfile\",\n    # The root path for azfile.\n    # root=\"...\",\n\n    # The 
endpoint for azfile.\n    # endpoint=\"...\",\n\n    # The share name for 
azfile.\n    share_name=\"...\",\n\n    # The account name for azfile.\n    # 
account_name=\"...\",\n\n    # The account key for azfile.\n    # 
account_key=\"...\",\n\n    # The sas token for azfile.\n    # 
sas_token=\"...\",\n)"
+          "full": "import opendal\n\noperator = opendal.Operator(\n    
\"azfile\",\n    # The root path for azfile.\n    # root=\"...\",\n\n    # The 
endpoint for azfile.\n    # endpoint=\"...\",\n\n    # The share name for 
azfile.\n    share_name=\"...\",\n\n    # The account name for azfile.\n    # 
account_name=\"...\",\n\n    # The account key for azfile.\n    # 
account_key=\"...\",\n\n    # The sas token for azfile.\n    # 
sas_token=\"...\",\n\n    # The client id of the service prin [...]
         },
         {
           "binding": "nodejs",
           "language": "javascript",
           "minimal": "import { Operator } from \"opendal\";\n\nconst operator 
= new Operator(\"azfile\", {\n  share_name: \"...\",\n});",
-          "full": "import { Operator } from \"opendal\";\n\nconst operator = 
new Operator(\"azfile\", {\n  // The root path for azfile.\n  // root: 
\"...\",\n\n  // The endpoint for azfile.\n  // endpoint: \"...\",\n\n  // The 
share name for azfile.\n  share_name: \"...\",\n\n  // The account name for 
azfile.\n  // account_name: \"...\",\n\n  // The account key for azfile.\n  // 
account_key: \"...\",\n\n  // The sas token for azfile.\n  // sas_token: 
\"...\",\n});"
+          "full": "import { Operator } from \"opendal\";\n\nconst operator = 
new Operator(\"azfile\", {\n  // The root path for azfile.\n  // root: 
\"...\",\n\n  // The endpoint for azfile.\n  // endpoint: \"...\",\n\n  // The 
share name for azfile.\n  share_name: \"...\",\n\n  // The account name for 
azfile.\n  // account_name: \"...\",\n\n  // The account key for azfile.\n  // 
account_key: \"...\",\n\n  // The sas token for azfile.\n  // sas_token: 
\"...\",\n\n  // The client id of the [...]
         },
         {
           "binding": "ruby",
           "language": "ruby",
           "minimal": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"azfile\", {\n  \"share_name\" => \"...\",\n})",
-          "full": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"azfile\", {\n  # The root path for azfile.\n  # 
\"root\" => \"...\",\n\n  # The endpoint for azfile.\n  # \"endpoint\" => 
\"...\",\n\n  # The share name for azfile.\n  \"share_name\" => \"...\",\n\n  # 
The account name for azfile.\n  # \"account_name\" => \"...\",\n\n  # The 
account key for azfile.\n  # \"account_key\" => \"...\",\n\n  # The sas token 
for azfile.\n  # \"sas_token\" => \"...\",\n})"
+          "full": "require \"opendal\"\n\noperator = 
OpenDal::Operator.new(\"azfile\", {\n  # The root path for azfile.\n  # 
\"root\" => \"...\",\n\n  # The endpoint for azfile.\n  # \"endpoint\" => 
\"...\",\n\n  # The share name for azfile.\n  \"share_name\" => \"...\",\n\n  # 
The account name for azfile.\n  # \"account_name\" => \"...\",\n\n  # The 
account key for azfile.\n  # \"account_key\" => \"...\",\n\n  # The sas token 
for azfile.\n  # \"sas_token\" => \"...\",\n\n  # The client  [...]
         },
         {
           "binding": "go",
           "language": "go",
           "minimal": "import 
(\n\t\"github.com/apache/opendal-go-services/azfile\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(azfile.Scheme, opendal.OperatorOptions{\n\t\"share_name\": 
\"...\",\n})",
-          "full": "import 
(\n\t\"github.com/apache/opendal-go-services/azfile\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(azfile.Scheme, opendal.OperatorOptions{\n\t// The root path 
for azfile.\n\t// \"root\": \"...\",\n\n\t// The endpoint for azfile.\n\t// 
\"endpoint\": \"...\",\n\n\t// The share name for azfile.\n\t\"share_name\": 
\"...\",\n\n\t// The account name for azfile.\n\t// \"account_name\": 
\"...\",\n\n\t// The account key  [...]
+          "full": "import 
(\n\t\"github.com/apache/opendal-go-services/azfile\"\n\topendal 
\"github.com/apache/opendal/bindings/go\"\n)\n\noperator, err := 
opendal.NewOperator(azfile.Scheme, opendal.OperatorOptions{\n\t// The root path 
for azfile.\n\t// \"root\": \"...\",\n\n\t// The endpoint for azfile.\n\t// 
\"endpoint\": \"...\",\n\n\t// The share name for azfile.\n\t\"share_name\": 
\"...\",\n\n\t// The account name for azfile.\n\t// \"account_name\": 
\"...\",\n\n\t// The account key  [...]
         }
       ]
     },

Reply via email to