You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove `ApplicationCredential` from the Identity codebase. This has
been released in `2.0.0-beta.5` and removed in `2.0.0-beta.6`. It is
never GA and there is no plan for this.
- Remove test suites under `manual-integration` that have been automated
under `integration`
- Remove mentions of `UsernamePasswordCredential` and related
information in the Troubleshooting guide
| AADSTS50126 | The provided username or password is invalid | Ensure the `username` and `password` provided when constructing the credential are valid. |
228
-
229
-
### Two-factor authentication required error
230
-
231
-
The `UsernamePasswordCredential` works only for users whose two-factor authentication has been disabled in Microsoft Entra ID. You can change the multi-factor authentication in the Azure portal with the steps [here](https://learn.microsoft.com/entra/identity/authentication/howto-mfa-userstates#change-the-status-for-a-user).
232
-
233
-
### Request body must contain the following parameter: 'client_assertion' or 'client_secret'
234
-
235
-
The error `The request body must contain the following parameter: 'client_assertion' or 'client_secret'`, occurs because of how the Microsoft Entra app is configured. The Microsoft Entra app registration seems to be configured as a confidential app. The `UsernamePasswordCredential` works only with public clients and doesn't support confidential apps. To support confidential apps, use either `ClientSecretCredential` or `ClientCertificateCredential` instead.
236
-
237
-
To allow public client authentication on your Microsoft Entra tenant:
238
-
239
-
1. In the Azure portal, navigate to the **Authentication** page.
240
-
2. Scroll to the bottom of the page. You'll see something that says **Allow public client flows**. Near that, you'll see a **yes** / **no** toggle. Set this toggle to **yes**.
241
-
242
-
After that, you shouldn't need to specify a client secret to authenticate with this credential.
Copy file name to clipboardExpand all lines: sdk/identity/identity/test/manual-integration/AzureFunctions/IdentityTest/KeyvaultAuthentication/function.json
0 commit comments