Windows凭据提供用C# [英] Windows Credential Provider with C#

查看:125
本文介绍了Windows凭据提供用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人成功创建了C#中的自定义Windows凭据提供?是在Windows SDK的样品都在C ++。一些初步的搜索我已经做了表示有可能,但似乎无法找到任何人谁已经证实了它。

Has anyone successfully created a custom Windows Credential Provider in C#? The samples that are in the Windows SDK are all in C++. Some initial searching I have done indicates it may be possible but cannot seem to find anyone who has confirmed it.

推荐答案

+1 pgina 。由于科迪说,没有托管API,你可以用它来作凭据提供,如果你想要去的PInvoke的路线,它可能会采取更多的时间进行故障排除的PInvoke问题比计算出的凭证提供。

+1 for pgina. As Cody says, there is no managed API you can use to make a Credential Provider, and if you want to go the pInvoke route it will probably take more of your time troubleshooting pInvoke issues than figuring out the Credential Provider.

在哪里pGina可以帮助你的是,它有一个很好的插件体系结构和插件都写在托管代码。这里见图表。 pGina处理与LogonUI(本机代码)的通信,但依赖于(管理)的插件来进行实际验证,这可能是你想控制(否则你可能不会需要你自己的凭证提供者)。

Where pGina can help you is that it has a nice Plugin architecture and the Plugins are written in managed code. See the chart here. pGina handles the communication with LogonUI (native code) but relies on the plugins (managed) to do the actual authentication, which is probably what you want to control (otherwise you probably wouldn't need your own credential provider).

这篇关于Windows凭据提供用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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