Skip to content

Username password flow fails with WAM #617

Description

@jiasli

Describe the bug
Username password flow (also called Resource Owner Password Credentials flow) fails with WAM.

To Reproduce
Steps to reproduce the behavior:

  1. Create a PublicClientApplication instance with enable_broker_on_windows=True
  2. Login with acquire_token_by_username_password

Expected behavior
The login should be successful.

What you see instead

> az login --username xxx@xxx.onmicrosoft.com --password xxx
(pii). Status: Response_Status.Status_InteractionRequired, Error code: 3399614467, Tag: 508609292
Please explicitly log in with:
az login

The MSAL Python version you are using
1.24.1 from #613

Additional context
Using the same user account, acquire_token_by_username_password succeeds if enable_broker_on_windows is set to False.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions