问题
I'm trying to port a powershell module to .Net standard. One thing I notice is that the UserPasswordCredential class is not present in the .Net standard library. Is it not possible to perform a username/password flow login using adal in .Net Standard/Core?
回答1:
Yes, UserPasswordCredential
is not available for .Net Core. However, as a workaround you can construct the HTTP request directly. More detail, you can refer the thread here.
来源:https://stackoverflow.com/questions/40497937/adal-username-password-flow-in-net-standard-1-4