如何使用Windows内置登录屏幕进行.Net应用程序身份验证

问题描述:

AOA



我想使用Windows内置登录屏幕为我的应用程序Winform和WPF。



问候

AOA

I want to use windows built-in Login Screen for my applications both Winform and WPF.

Regards

你不能。



你得到的是用户安全令牌。当用户启动您的应用程序时,它将作为用户启动,继承用户安全令牌。



令牌将传递给接受它的各种内容,例如当使用指定集成安全性的连接字符串并且服务器设置为使用Windows身份验证时,SQL Server登录。



也许如果您确切地指定了您要尝试的内容有人这样可以提出建议。
You can't.

What you get is the users security token. When the user launches your application, it is launched AS THE USER, inheriting the users security token.

The token is passed to various things that will accept it, such as a SQL Server login when using a connection string that specifies Integrated Security and the server is setup to use Windows Authentication.

Perhaps if you specified exactly what you're trying to do with this someone can suggest something.


感谢您的快速回复。



我不想使用自定义登录我创建的屏幕,我想通过使用操作系统登录屏幕从Active Directory验证我的应用程序。
Thanks for quick reply.

I don't want to use custom log on screen as i created, i want to authenticate my application from Active Directory by using the Operating System Log in Screen.