2

How can I prompt a user for credentials and obtain its WindowsIdentity (or something like it)?

I assume I need to use CredUIPromptForWindowsCredentials from Credui.dll but I found this wrapper in C#: CredentialUI that only uses username and password while I need to support any method available (username/password, smart card, bio-metric and etc.)

I'm pretty sure that it can be done, because of the following:

The CredUIPromptForWindowsCredentials function creates and displays a configurable dialog box that allows users to supply credential information by using any credential provider installed on the local computer.

From CredUIPromptForWindowsCredentials.

So should I use CredUIPromptForWindowsCredentials or not? If not, then what else? if I should, How?

EDIT:

This is not a duplicate of Impersonate with username and password?, because my question regards to any method of authentication, especially not username/password based authentication, whereas the other question explicitly refers to username/password authentication only.

Community
  • 1
  • 1
Hadar Grubman
  • 314
  • 3
  • 14

0 Answers0