UsernamePasswordCredential
UsernamePasswordCredential()
UsernamePasswordCredential(String, String, String, String)
UsernamePasswordCredential(String, String, String, String, TokenCredentialOptions)
UsernamePasswordCredential(String, String, String, String, UsernamePasswordCredentialOptions)
Authenticate(CancellationToken)
Authenticate(TokenRequestContext, CancellationToken)
AuthenticateAsync(CancellationToken)
AuthenticateAsync(TokenRequestContext, CancellationToken)
GetToken(TokenRequestContext, CancellationToken)
GetTokenAsync(TokenRequestContext, CancellationToken)
net11.0
namespace Azure.Identity
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This credential is deprecated because it doesn't support multifactor authentication (MFA). See https://aka.ms/azsdk/identity/mfa for details about MFA enforcement for Microsoft Entra ID and migration guidance.")]
public class UsernamePasswordCredential : TokenCredential
{
[AsyncStateMachine(typeof(<AuthenticateAsync>d__28))]
public virtual Task<AuthenticationRecord> AuthenticateAsync(TokenRequestContext requestContext, CancellationToken cancellationToken = default);
}
}
| .NET | 8.09.010.011.0 |
|---|---|
Information specific to net11.0 | |
| Assembly | Azure.Identity , Version=1.19.0.0, PublicKeyToken=92742159e12e44c8 |
| Referencing | Your project needs a package reference to |
| Package | Azure.Identity (1.19.0) net10.0 |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API