c# - How to prompt a user for credentials and obtain its WindowsIdentity? -


how can prompt user credentials , obtain windowsidentity (or it)?

i assume need use creduipromptforwindowscredentials credui.dll found wrapper in c#: credentialui uses username , password while need support method available (username/password, smart card, bio-metric , etc.)

i'm pretty sure can done, because of following:

the creduipromptforwindowscredentials function creates , displays configurable dialog box allows users supply credential information using credential provider installed on local computer.

from creduipromptforwindowscredentials.

so should use creduipromptforwindowscredentials or not? if not, else? if should, how?

edit:

this not duplicate of impersonate username , password?, because question regards method of authentication, not username/password based authentication, whereas other question explicitly refers username/password authentication only.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -