In ADAL.Net 3.x, the UserPasswordCredential is introduced on top of the UserCredential of 2.x. But the same UserPasswordCredential is not displayed in .Net Core under the same nuget package?
The UserCredential class has only one UserName property.
namespace Microsoft.IdentityModel.Clients.ActiveDirectory
{
public class UserCredential
{
public UserCredential();
public UserCredential(string userName);
public string UserName { get; }
}
}
Since UserPasswordCredential is not available at. NetCore and UserCredential accepts only one parameter username, how to enter user password and implement below code in .Net Core?
authContext.AcquireTokenAsync(WebAPIResourceId, ClientId, userPasswordCredential);
I am using ADAL version 3.13.4 specifically in .Net Core 1.0
source
share