Microsoft.Identity.Client.IByUsernameAndPassword
Provides an explicit interface for using Resource Owner Password Grant on Confidential Client.
AcquireTokenByUsernameAndPasswordConfidentialParameterBuilder AcquireTokenByUsernamePassword(IEnumerable<string> scopes, string username, string password)
Acquires a token without user interaction using username and password authentication.
This method does not look in the token cache, but stores the result in it. Before calling this method, use other methods
such as AcquireTokenSilent to check the token cache.