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.")]
    [TypeForwardedFrom("Azure.Identity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8")]
    [UnsupportedOSPlatform("browser")]
    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
.NET Framework
4.6.24.74.7.14.7.24.84.8.1
Information specific to net11.0
Assembly

Azure.Core , Version=1.53.0.0, PublicKeyToken=92742159e12e44c8

Referencing

Your project needs a package reference to Azure.Core.

Package Azure.Core (1.53.0) net10.0
Platform Restrictions

This API is supported on any platform except for these:

  • Browser
  • Built-in API
  • Package-provided API