azure: add allow_anonymous_login option to the schema (#6190)

This commit is contained in:
Batuhan Taskaya
2021-06-17 14:24:07 +03:00
committed by GitHub
parent adeb9ef63e
commit 1a5fa228ab
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -189,6 +189,7 @@ SCHEMA = {
"tenant_id": str,
"client_id": str,
"client_secret": str,
"allow_anonymous_login": bool,
**REMOTE_COMMON,
},
"oss": {
+1 -1
View File
@@ -147,7 +147,7 @@ class AzureFileSystem(ObjectFSWrapper):
if (
login_info["account_name"]
and not any_secondary
and not config.get("allow_anonymous_login")
and not config.get("allow_anonymous_login", False)
):
login_info["credential"] = DefaultAzureCredential(
exclude_interactive_browser_credential=False