Reputation: 141
As far as I could understand, when the user presses the Submit button eventually, the GetSerialization
method will be called to get login details.
I am programming a Credential Provider that waits for some external signal to log in, and I do not want the user to press the Submit button.
Is it possible to trigger the submit event from the Credential Provider?
Upvotes: 3
Views: 2293
Reputation: 11444
The more appropriate way would be to implement the IConnectableCredentialProviderCredential interface, which is designed specifically for this purpose.
Upvotes: 2
Reputation: 141
I found a way to do it. The trick is not to call the submit
button, but use the ICredentialProviderEvents::CredentialsChanged
method. I have a thread running, that will eventually trigger the CredentialsChanged
. This will then enable a new Credential that logs the user in.
This is shown in the Microsoft Sample SampleHardwareEventCredentialProvider
.
It is worth notice that the Windows LogonUI automatically selects this new Credential. I do not know if this is in the documentation, but it is the behaviour I experienced.
Upvotes: 7