NET标准1.4中的ADAL用户名/密码流 [英] ADAL username/password flow in .net standard 1.4

查看:131
本文介绍了NET标准1.4中的ADAL用户名/密码流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Powershell模块移植到.Net标准。我注意到的一件事是.Net标准库中不存在UserPasswordCredential类。

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?

推荐答案

是的,<$>在.Net Standard / Core中使用adal无法执行用户名/密码流登录吗? c $ c> UserPasswordCredential 不是适用于.Net Core 。但是,作为解决方法,您可以直接构造HTTP请求。更多详细信息,您可以在此处引用该线程。

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.

这篇关于NET标准1.4中的ADAL用户名/密码流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆