Closed jiasli closed 8 months ago
I tried downgrade PyMsalRuntime and MSAL Python to older proven versions, but still ran into error. I'm stuck. Can you share some insight, @ashok672 ?
[MSAL:0002] ERROR ErrorInternalImpl:134 Created an error: 7rhai, StatusInternal::InteractionRequired, InternalEvent::None, Error Code 3399614467, Context 'SubError: device_authentication_failed V2Error: invalid_grant AADSTS50155: Device authentication failed. Trace ID: e1f2eacb-c30d-405c-80d3-841620975600 Correlation ID: 3eaf835b-a1fc-4568-9996-ccf56bfbd15d Timestamp: 2023-11-01 01:19:03Z'
The device authentication failed.
Reason:
Resolution :
Follow steps listed here to re-register the device based on the device join type.
As part of #569, username password name flow bypasses broker, for now.
Describe the bug Username password flow (also called Resource Owner Password Credentials flow) fails with WAM.
To Reproduce Steps to reproduce the behavior:
PublicClientApplication
instance withenable_broker_on_windows=True
acquire_token_by_username_password
Expected behavior The login should be successful.
What you see instead
The MSAL Python version you are using 1.24.1 from https://github.com/AzureAD/microsoft-authentication-library-for-python/pull/613
Additional context Using the same user account,
acquire_token_by_username_password
succeeds ifenable_broker_on_windows
is set toFalse
.