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
Post a Comment