Can MSAL support username password flow? #351
-
app = msal.ClientApplication( app.acquire_token_by_username_password throws error: requests.exceptions.HTTPError: 400 Client Error: AADSTS90014: The required field 'api-version' is missing from the credential. Ensure that you have all the necessary parameters for the login request. Is it because external guest account like "user_outlook.com#EXT#@company.onmicrosoft.com" is not supported? Is there a workaround? Internal AD account has no issues. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
That error message is unfortunately vague, but, indeed, the username password authentication is not recommended, and it also has many constraints. Go use interactive auth instead. Its documentation is available here, which mentions how you configure its redirect_uri (a.k.a. reply-url). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
That error message is unfortunately vague, but, indeed, the username password authentication is not recommended, and it also has many constraints.
Go use interactive auth instead. Its documentation is available here, which mentions how you configure its redirect_uri (a.k.a. reply-url).