pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-azure-identity: new package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Thu Sep 15 23:59:59 2022 +0200
Changeset: b1430f64e029102d234e8a15a5189a728abd88f1
Added Files:
py-azure-identity/DESCR
py-azure-identity/Makefile
py-azure-identity/PLIST
py-azure-identity/distinfo
py-azure-identity/patches/patch-azure_identity___credentials_silent.py
py-azure-identity/patches/patch-azure_identity___internal_shared__token__cache.py
py-azure-identity/patches/patch-azure_identity___persistent__cache.py
Log Message:
py-azure-identity: new package
The Azure Identity library provides Azure Active Directory (AAD)
token authentication through a set of convenient TokenCredential
implementations. It enables Azure SDK clients to authenticate with
AAD, while also allowing other Python apps to authenticate with
AAD work and school accounts, Microsoft personal accounts (MSA),
and other Identity providers like AAD B2C service.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b1430f64e029102d234e8a15a5189a728abd88f1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-azure-identity/DESCR | 6 +
py-azure-identity/Makefile | 25 ++
py-azure-identity/PLIST | 251 +++++++++++++++++++++
py-azure-identity/distinfo | 8 +
.../patch-azure_identity___credentials_silent.py | 15 ++
...ure_identity___internal_shared__token__cache.py | 12 +
.../patch-azure_identity___persistent__cache.py | 15 ++
7 files changed, 332 insertions(+)
diffs:
diff --git a/py-azure-identity/DESCR b/py-azure-identity/DESCR
new file mode 100644
index 0000000000..cbd849c7aa
--- /dev/null
+++ b/py-azure-identity/DESCR
@@ -0,0 +1,6 @@
+The Azure Identity library provides Azure Active Directory (AAD)
+token authentication through a set of convenient TokenCredential
+implementations. It enables Azure SDK clients to authenticate with
+AAD, while also allowing other Python apps to authenticate with
+AAD work and school accounts, Microsoft personal accounts (MSA),
+and other Identity providers like AAD B2C service.
diff --git a/py-azure-identity/Makefile b/py-azure-identity/Makefile
new file mode 100644
index 0000000000..5368eba103
--- /dev/null
+++ b/py-azure-identity/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME= azure-identity-1.10.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= net python
+MASTER_SITES= ${MASTER_SITE_PYPI:=a/azure-identity/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity
+COMMENT= Microsoft Azure Identity Library for Python
+LICENSE= mit
+
+DEPENDS+= ${PYPKGPREFIX}-azure-core>=1.11.0:../../wip/py-azure-core
+DEPENDS+= ${PYPKGPREFIX}-cryptography>=2.5:../../security/py-cryptography
+DEPENDS+= ${PYPKGPREFIX}-msal>=1.12:../../wip/py-msal
+DEPENDS+= ${PYPKGPREFIX}-msal-extensions>=0.3:../../wip/py-msal-extensions
+DEPENDS+= ${PYPKGPREFIX}-six>=1.12.0:../../lang/py-six
+
+USE_LANGUAGES= # none
+
+# tests fail
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-azure-identity/PLIST b/py-azure-identity/PLIST
new file mode 100644
index 0000000000..9dc26e9e77
--- /dev/null
+++ b/py-azure-identity/PLIST
@@ -0,0 +1,251 @@
+@comment $NetBSD$
+${PYSITELIB}/azure/identity/__init__.py
+${PYSITELIB}/azure/identity/__init__.pyc
+${PYSITELIB}/azure/identity/__init__.pyo
+${PYSITELIB}/azure/identity/_auth_record.py
+${PYSITELIB}/azure/identity/_auth_record.pyc
+${PYSITELIB}/azure/identity/_auth_record.pyo
+${PYSITELIB}/azure/identity/_constants.py
+${PYSITELIB}/azure/identity/_constants.pyc
+${PYSITELIB}/azure/identity/_constants.pyo
+${PYSITELIB}/azure/identity/_credentials/__init__.py
+${PYSITELIB}/azure/identity/_credentials/__init__.pyc
+${PYSITELIB}/azure/identity/_credentials/__init__.pyo
+${PYSITELIB}/azure/identity/_credentials/app_service.py
+${PYSITELIB}/azure/identity/_credentials/app_service.pyc
+${PYSITELIB}/azure/identity/_credentials/app_service.pyo
+${PYSITELIB}/azure/identity/_credentials/application.py
+${PYSITELIB}/azure/identity/_credentials/application.pyc
+${PYSITELIB}/azure/identity/_credentials/application.pyo
+${PYSITELIB}/azure/identity/_credentials/authorization_code.py
+${PYSITELIB}/azure/identity/_credentials/authorization_code.pyc
+${PYSITELIB}/azure/identity/_credentials/authorization_code.pyo
+${PYSITELIB}/azure/identity/_credentials/azure_arc.py
+${PYSITELIB}/azure/identity/_credentials/azure_arc.pyc
+${PYSITELIB}/azure/identity/_credentials/azure_arc.pyo
+${PYSITELIB}/azure/identity/_credentials/azure_cli.py
+${PYSITELIB}/azure/identity/_credentials/azure_cli.pyc
+${PYSITELIB}/azure/identity/_credentials/azure_cli.pyo
+${PYSITELIB}/azure/identity/_credentials/azure_ml.py
+${PYSITELIB}/azure/identity/_credentials/azure_ml.pyc
+${PYSITELIB}/azure/identity/_credentials/azure_ml.pyo
+${PYSITELIB}/azure/identity/_credentials/azure_powershell.py
+${PYSITELIB}/azure/identity/_credentials/azure_powershell.pyc
+${PYSITELIB}/azure/identity/_credentials/azure_powershell.pyo
+${PYSITELIB}/azure/identity/_credentials/browser.py
+${PYSITELIB}/azure/identity/_credentials/browser.pyc
+${PYSITELIB}/azure/identity/_credentials/browser.pyo
+${PYSITELIB}/azure/identity/_credentials/certificate.py
+${PYSITELIB}/azure/identity/_credentials/certificate.pyc
+${PYSITELIB}/azure/identity/_credentials/certificate.pyo
+${PYSITELIB}/azure/identity/_credentials/chained.py
+${PYSITELIB}/azure/identity/_credentials/chained.pyc
+${PYSITELIB}/azure/identity/_credentials/chained.pyo
+${PYSITELIB}/azure/identity/_credentials/client_assertion.py
+${PYSITELIB}/azure/identity/_credentials/client_assertion.pyc
+${PYSITELIB}/azure/identity/_credentials/client_assertion.pyo
+${PYSITELIB}/azure/identity/_credentials/client_secret.py
+${PYSITELIB}/azure/identity/_credentials/client_secret.pyc
+${PYSITELIB}/azure/identity/_credentials/client_secret.pyo
+${PYSITELIB}/azure/identity/_credentials/cloud_shell.py
+${PYSITELIB}/azure/identity/_credentials/cloud_shell.pyc
+${PYSITELIB}/azure/identity/_credentials/cloud_shell.pyo
+${PYSITELIB}/azure/identity/_credentials/default.py
+${PYSITELIB}/azure/identity/_credentials/default.pyc
+${PYSITELIB}/azure/identity/_credentials/default.pyo
+${PYSITELIB}/azure/identity/_credentials/device_code.py
+${PYSITELIB}/azure/identity/_credentials/device_code.pyc
+${PYSITELIB}/azure/identity/_credentials/device_code.pyo
+${PYSITELIB}/azure/identity/_credentials/environment.py
+${PYSITELIB}/azure/identity/_credentials/environment.pyc
+${PYSITELIB}/azure/identity/_credentials/environment.pyo
+${PYSITELIB}/azure/identity/_credentials/imds.py
+${PYSITELIB}/azure/identity/_credentials/imds.pyc
+${PYSITELIB}/azure/identity/_credentials/imds.pyo
+${PYSITELIB}/azure/identity/_credentials/managed_identity.py
+${PYSITELIB}/azure/identity/_credentials/managed_identity.pyc
+${PYSITELIB}/azure/identity/_credentials/managed_identity.pyo
+${PYSITELIB}/azure/identity/_credentials/on_behalf_of.py
+${PYSITELIB}/azure/identity/_credentials/on_behalf_of.pyc
+${PYSITELIB}/azure/identity/_credentials/on_behalf_of.pyo
+${PYSITELIB}/azure/identity/_credentials/service_fabric.py
+${PYSITELIB}/azure/identity/_credentials/service_fabric.pyc
+${PYSITELIB}/azure/identity/_credentials/service_fabric.pyo
+${PYSITELIB}/azure/identity/_credentials/shared_cache.py
+${PYSITELIB}/azure/identity/_credentials/shared_cache.pyc
+${PYSITELIB}/azure/identity/_credentials/shared_cache.pyo
+${PYSITELIB}/azure/identity/_credentials/silent.py
+${PYSITELIB}/azure/identity/_credentials/silent.pyc
+${PYSITELIB}/azure/identity/_credentials/silent.pyo
+${PYSITELIB}/azure/identity/_credentials/token_exchange.py
+${PYSITELIB}/azure/identity/_credentials/token_exchange.pyc
+${PYSITELIB}/azure/identity/_credentials/token_exchange.pyo
+${PYSITELIB}/azure/identity/_credentials/user_password.py
+${PYSITELIB}/azure/identity/_credentials/user_password.pyc
+${PYSITELIB}/azure/identity/_credentials/user_password.pyo
+${PYSITELIB}/azure/identity/_credentials/vscode.py
+${PYSITELIB}/azure/identity/_credentials/vscode.pyc
+${PYSITELIB}/azure/identity/_credentials/vscode.pyo
+${PYSITELIB}/azure/identity/_enums.py
+${PYSITELIB}/azure/identity/_enums.pyc
+${PYSITELIB}/azure/identity/_enums.pyo
+${PYSITELIB}/azure/identity/_exceptions.py
+${PYSITELIB}/azure/identity/_exceptions.pyc
+${PYSITELIB}/azure/identity/_exceptions.pyo
+${PYSITELIB}/azure/identity/_internal/__init__.py
+${PYSITELIB}/azure/identity/_internal/__init__.pyc
+${PYSITELIB}/azure/identity/_internal/__init__.pyo
+${PYSITELIB}/azure/identity/_internal/aad_client.py
+${PYSITELIB}/azure/identity/_internal/aad_client.pyc
+${PYSITELIB}/azure/identity/_internal/aad_client.pyo
+${PYSITELIB}/azure/identity/_internal/aad_client_base.py
+${PYSITELIB}/azure/identity/_internal/aad_client_base.pyc
+${PYSITELIB}/azure/identity/_internal/aad_client_base.pyo
+${PYSITELIB}/azure/identity/_internal/aadclient_certificate.py
+${PYSITELIB}/azure/identity/_internal/aadclient_certificate.pyc
+${PYSITELIB}/azure/identity/_internal/aadclient_certificate.pyo
+${PYSITELIB}/azure/identity/_internal/auth_code_redirect_handler.py
+${PYSITELIB}/azure/identity/_internal/auth_code_redirect_handler.pyc
+${PYSITELIB}/azure/identity/_internal/auth_code_redirect_handler.pyo
+${PYSITELIB}/azure/identity/_internal/client_credential_base.py
+${PYSITELIB}/azure/identity/_internal/client_credential_base.pyc
+${PYSITELIB}/azure/identity/_internal/client_credential_base.pyo
+${PYSITELIB}/azure/identity/_internal/decorators.py
+${PYSITELIB}/azure/identity/_internal/decorators.pyc
+${PYSITELIB}/azure/identity/_internal/decorators.pyo
+${PYSITELIB}/azure/identity/_internal/get_token_mixin.py
+${PYSITELIB}/azure/identity/_internal/get_token_mixin.pyc
+${PYSITELIB}/azure/identity/_internal/get_token_mixin.pyo
+${PYSITELIB}/azure/identity/_internal/interactive.py
+${PYSITELIB}/azure/identity/_internal/interactive.pyc
+${PYSITELIB}/azure/identity/_internal/interactive.pyo
+${PYSITELIB}/azure/identity/_internal/linux_vscode_adapter.py
+${PYSITELIB}/azure/identity/_internal/linux_vscode_adapter.pyc
+${PYSITELIB}/azure/identity/_internal/linux_vscode_adapter.pyo
+${PYSITELIB}/azure/identity/_internal/macos_vscode_adapter.py
+${PYSITELIB}/azure/identity/_internal/macos_vscode_adapter.pyc
+${PYSITELIB}/azure/identity/_internal/macos_vscode_adapter.pyo
+${PYSITELIB}/azure/identity/_internal/managed_identity_base.py
+${PYSITELIB}/azure/identity/_internal/managed_identity_base.pyc
+${PYSITELIB}/azure/identity/_internal/managed_identity_base.pyo
+${PYSITELIB}/azure/identity/_internal/managed_identity_client.py
+${PYSITELIB}/azure/identity/_internal/managed_identity_client.pyc
+${PYSITELIB}/azure/identity/_internal/managed_identity_client.pyo
+${PYSITELIB}/azure/identity/_internal/msal_client.py
+${PYSITELIB}/azure/identity/_internal/msal_client.pyc
+${PYSITELIB}/azure/identity/_internal/msal_client.pyo
+${PYSITELIB}/azure/identity/_internal/msal_credentials.py
+${PYSITELIB}/azure/identity/_internal/msal_credentials.pyc
+${PYSITELIB}/azure/identity/_internal/msal_credentials.pyo
+${PYSITELIB}/azure/identity/_internal/pipeline.py
+${PYSITELIB}/azure/identity/_internal/pipeline.pyc
+${PYSITELIB}/azure/identity/_internal/pipeline.pyo
+${PYSITELIB}/azure/identity/_internal/shared_token_cache.py
+${PYSITELIB}/azure/identity/_internal/shared_token_cache.pyc
+${PYSITELIB}/azure/identity/_internal/shared_token_cache.pyo
+${PYSITELIB}/azure/identity/_internal/user_agent.py
+${PYSITELIB}/azure/identity/_internal/user_agent.pyc
+${PYSITELIB}/azure/identity/_internal/user_agent.pyo
+${PYSITELIB}/azure/identity/_internal/win_vscode_adapter.py
+${PYSITELIB}/azure/identity/_internal/win_vscode_adapter.pyc
+${PYSITELIB}/azure/identity/_internal/win_vscode_adapter.pyo
+${PYSITELIB}/azure/identity/_persistent_cache.py
+${PYSITELIB}/azure/identity/_persistent_cache.pyc
+${PYSITELIB}/azure/identity/_persistent_cache.pyo
+${PYSITELIB}/azure/identity/_version.py
+${PYSITELIB}/azure/identity/_version.pyc
+${PYSITELIB}/azure/identity/_version.pyo
+${PYSITELIB}/azure/identity/aio/__init__.py
+${PYSITELIB}/azure/identity/aio/__init__.pyc
+${PYSITELIB}/azure/identity/aio/__init__.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/__init__.py
+${PYSITELIB}/azure/identity/aio/_credentials/__init__.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/__init__.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/app_service.py
+${PYSITELIB}/azure/identity/aio/_credentials/app_service.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/app_service.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/application.py
+${PYSITELIB}/azure/identity/aio/_credentials/application.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/application.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/authorization_code.py
+${PYSITELIB}/azure/identity/aio/_credentials/authorization_code.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/authorization_code.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/azure_arc.py
+${PYSITELIB}/azure/identity/aio/_credentials/azure_arc.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/azure_arc.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/azure_cli.py
+${PYSITELIB}/azure/identity/aio/_credentials/azure_cli.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/azure_cli.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/azure_ml.py
+${PYSITELIB}/azure/identity/aio/_credentials/azure_ml.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/azure_ml.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/azure_powershell.py
+${PYSITELIB}/azure/identity/aio/_credentials/azure_powershell.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/azure_powershell.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/certificate.py
+${PYSITELIB}/azure/identity/aio/_credentials/certificate.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/certificate.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/chained.py
+${PYSITELIB}/azure/identity/aio/_credentials/chained.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/chained.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/client_assertion.py
+${PYSITELIB}/azure/identity/aio/_credentials/client_assertion.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/client_assertion.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/client_secret.py
+${PYSITELIB}/azure/identity/aio/_credentials/client_secret.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/client_secret.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/cloud_shell.py
+${PYSITELIB}/azure/identity/aio/_credentials/cloud_shell.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/cloud_shell.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/default.py
+${PYSITELIB}/azure/identity/aio/_credentials/default.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/default.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/environment.py
+${PYSITELIB}/azure/identity/aio/_credentials/environment.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/environment.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/imds.py
+${PYSITELIB}/azure/identity/aio/_credentials/imds.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/imds.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/managed_identity.py
+${PYSITELIB}/azure/identity/aio/_credentials/managed_identity.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/managed_identity.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/on_behalf_of.py
+${PYSITELIB}/azure/identity/aio/_credentials/on_behalf_of.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/on_behalf_of.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/service_fabric.py
+${PYSITELIB}/azure/identity/aio/_credentials/service_fabric.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/service_fabric.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/shared_cache.py
+${PYSITELIB}/azure/identity/aio/_credentials/shared_cache.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/shared_cache.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/token_exchange.py
+${PYSITELIB}/azure/identity/aio/_credentials/token_exchange.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/token_exchange.pyo
+${PYSITELIB}/azure/identity/aio/_credentials/vscode.py
+${PYSITELIB}/azure/identity/aio/_credentials/vscode.pyc
+${PYSITELIB}/azure/identity/aio/_credentials/vscode.pyo
+${PYSITELIB}/azure/identity/aio/_internal/__init__.py
+${PYSITELIB}/azure/identity/aio/_internal/__init__.pyc
+${PYSITELIB}/azure/identity/aio/_internal/__init__.pyo
+${PYSITELIB}/azure/identity/aio/_internal/aad_client.py
+${PYSITELIB}/azure/identity/aio/_internal/aad_client.pyc
+${PYSITELIB}/azure/identity/aio/_internal/aad_client.pyo
+${PYSITELIB}/azure/identity/aio/_internal/decorators.py
+${PYSITELIB}/azure/identity/aio/_internal/decorators.pyc
+${PYSITELIB}/azure/identity/aio/_internal/decorators.pyo
+${PYSITELIB}/azure/identity/aio/_internal/get_token_mixin.py
+${PYSITELIB}/azure/identity/aio/_internal/get_token_mixin.pyc
+${PYSITELIB}/azure/identity/aio/_internal/get_token_mixin.pyo
+${PYSITELIB}/azure/identity/aio/_internal/managed_identity_base.py
+${PYSITELIB}/azure/identity/aio/_internal/managed_identity_base.pyc
+${PYSITELIB}/azure/identity/aio/_internal/managed_identity_base.pyo
+${PYSITELIB}/azure/identity/aio/_internal/managed_identity_client.py
+${PYSITELIB}/azure/identity/aio/_internal/managed_identity_client.pyc
+${PYSITELIB}/azure/identity/aio/_internal/managed_identity_client.pyo
+${PYSITELIB}/azure/identity/py.typed
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
diff --git a/py-azure-identity/distinfo b/py-azure-identity/distinfo
new file mode 100644
index 0000000000..0a98b72f04
--- /dev/null
+++ b/py-azure-identity/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (azure-identity-1.10.0.zip) = e024193813fbb7150788ce64d78af7f40a4b5d20fe355a71b53bd72c0145c477
+SHA512 (azure-identity-1.10.0.zip) = 66551765ac0a4d43dc95cb755be3bfc31e2e7afa7eebf72c061c6c7d1dd0cf88988d88a39c2c1463fe27caced7ccd72da6520a9e977bfed0ee5f495fe00fab6a
+Size (azure-identity-1.10.0.zip) = 312469 bytes
+SHA1 (patch-azure_identity___credentials_silent.py) = 45a9c93bad70ffd128d394328cd7f1ecf3d83c7d
+SHA1 (patch-azure_identity___internal_shared__token__cache.py) = b2571144a37899aaa95df4d0d5445cce4dfa8bb1
+SHA1 (patch-azure_identity___persistent__cache.py) = 964793e6b7faf9e50b85d3c71b836b75a2534078
diff --git a/py-azure-identity/patches/patch-azure_identity___credentials_silent.py b/py-azure-identity/patches/patch-azure_identity___credentials_silent.py
new file mode 100644
index 0000000000..14a31e0310
--- /dev/null
+++ b/py-azure-identity/patches/patch-azure_identity___credentials_silent.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Portability.
+
+--- azure/identity/_credentials/silent.py.orig 2022-04-27 23:35:26.000000000 +0000
++++ azure/identity/_credentials/silent.py
+@@ -61,7 +61,7 @@ class SilentAuthenticationCredential(obj
+ return self._acquire_token_silent(*scopes, **kwargs)
+
+ def _initialize(self):
+- if not self._cache and platform.system() in {"Darwin", "Linux", "Windows"}:
++ if not self._cache and platform.system() in {"Darwin", "Linux", "NetBSD", "Windows"}:
+ try:
+ # This credential accepts the user's default cache regardless of whether it's encrypted. It doesn't
+ # create a new cache. If the default cache exists, the user must have created it earlier. If it's
diff --git a/py-azure-identity/patches/patch-azure_identity___internal_shared__token__cache.py b/py-azure-identity/patches/patch-azure_identity___internal_shared__token__cache.py
new file mode 100644
index 0000000000..74e53aedc2
--- /dev/null
+++ b/py-azure-identity/patches/patch-azure_identity___internal_shared__token__cache.py
@@ -0,0 +1,12 @@
+$NetBSD$
+
+Portability.
+
+--- azure/identity/_internal/shared_token_cache.py.orig 2022-04-27 23:35:26.000000000 +0000
++++ azure/identity/_internal/shared_token_cache.py
+@@ -229,4 +229,4 @@ class SharedTokenCacheBase(ABC):
+
+ :rtype: bool
+ """
+- return platform.system() in {"Darwin", "Linux", "Windows"}
++ return platform.system() in {"Darwin", "Linux", "NetBSD", "Windows"}
diff --git a/py-azure-identity/patches/patch-azure_identity___persistent__cache.py b/py-azure-identity/patches/patch-azure_identity___persistent__cache.py
new file mode 100644
index 0000000000..30ed7a6039
--- /dev/null
+++ b/py-azure-identity/patches/patch-azure_identity___persistent__cache.py
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Portability.
+
+--- azure/identity/_persistent_cache.py.orig 2022-04-27 23:35:26.000000000 +0000
++++ azure/identity/_persistent_cache.py
+@@ -83,7 +83,7 @@ def _get_persistence(allow_unencrypted,
+ file_path = os.path.expanduser(os.path.join("~", ".IdentityService", cache_name))
+ return msal_extensions.KeychainPersistence(file_path, "Microsoft.Developer.IdentityService", account_name)
+
+- if sys.platform.startswith("linux"):
++ if true:
+ # The cache uses this file's modified timestamp to decide whether to reload. Note this path is the same
+ # as that of the plaintext fallback: a new encrypted cache will stomp an unencrypted cache.
+ file_path = os.path.expanduser(os.path.join("~", ".IdentityService", cache_name))
Home |
Main Index |
Thread Index |
Old Index