Skip to content

[azure-identity] azure-identity should stop using deprecated backend argument in cryptography #36579

@jiasli

Description

@jiasli
  • Package Name: azure-identity
  • Package Version:
  • Operating System:
  • Python Version:

Describe the bug
Per

cryptography stopped requiring the use of backend arguments 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 backend is still silently accepted by functions that previously required it, but it is ignored and no longer documented.

Expected behavior
Azure Identity currently requires

and passes backend arguments:

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

Azure.IdentityClientThis issue points to a problem in the data-plane of the library.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

Status

Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions