Skip to content

Deprecate UsernamePasswordCredential#44381

Merged
billwert merged 15 commits into
Azure:mainfrom
billwert:identity-deprecate-username-password
Mar 8, 2025
Merged

Deprecate UsernamePasswordCredential#44381
billwert merged 15 commits into
Azure:mainfrom
billwert:identity-deprecate-username-password

Conversation

@billwert
Copy link
Copy Markdown
Contributor

@billwert billwert commented Feb 25, 2025

Closes https://github.com/Azure/azure-sdk-for-java-pr/issues/1432

Due to changes around how MFA is required in Azure tenants, UsernamePasswordCredential is no longer recommended.

Due to changes around how MFA is required in Azure tenants, UsernamePasswordCredential is no longer recommended.
@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Feb 25, 2025

API change check

API changes are not detected in this pull request.

Copy link
Copy Markdown
Member

@pvaneck pvaneck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, some additional changes that were made in Python could also be made here:

  • Update README.md to mark the credential Deprecated in the credential list and a note in the Environment variables section regarding username + password authentication.
  • A note in the EnvironmentCredential docstring under the username + password portion about this mode of authentication being deprecated.

billwert and others added 3 commits February 25, 2025 13:13
…sernamePasswordCredential.java

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
…sernamePasswordCredentialBuilder.java

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Copy link
Copy Markdown
Member

@pvaneck pvaneck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just missing one more deprecated disclaimer in the Environment variables ### Username and password section of the readme, but otherwise LGTM.

@billwert
Copy link
Copy Markdown
Contributor Author

@saragluna ptal for the changes to spring files.

Copy link
Copy Markdown
Member

@saragluna saragluna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the Spring changes.

Comment thread sdk/identity/azure-identity/README.md Outdated
Comment thread sdk/identity/azure-identity/README.md Outdated
@billwert billwert merged commit 7355472 into Azure:main Mar 8, 2025
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure Identity SDK Improvements Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

5 participants