-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
- Package Name: azure-identity
- Package Version:
- Operating System:
- Python Version:
Describe the bug
Per
- https://cryptography.io/en/latest/changelog/#v36-0-0
- https://cryptography.io/en/latest/faq/#faq-missing-backend
cryptographystopped requiring the use ofbackendarguments in version 3.1 and deprecated their use in version 36.0. If you are on an older version that requires these arguments please view the appropriate documentation version or upgrade to the latest release.Note that for forward compatibility
backendis still silently accepted by functions that previously required it, but it is ignored and no longer documented.
Expected behavior
Azure Identity currently requires
| "cryptography>=2.5", |
and passes backend arguments:
azure-sdk-for-python/sdk/identity/azure-identity/azure/identity/_credentials/certificate.py
Lines 95 to 96 in 07d1063
| private_key = serialization.load_pem_private_key(certificate_data, password, backend=default_backend()) | |
| cert = x509.load_pem_x509_certificate(certificate_data, default_backend()) |
but the best practice is to bump cryptography to newer version and stop using deprecated backend argument.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status