question

PritiShah-4855 avatar image
0 Votes"
PritiShah-4855 asked PritiShah-4855 edited

Custom credential ptovider is not showing when trying to connect using remote desktop/ RDP

I have developed custom credential provider to work with Windows 10 platform. This provider is working fine with normal windows login, but custom credential provider option is not shown when I am trying to connect using remote desktop.
I have tried implementing ICredentialProviderFilter to filter out all other options except custom provider. I have also tried different remote desktop policies also but nothing worked. I am trying to implement this solution in c#.
Please let me know if anyone has any solution for getting custom credential provider option in RDP session.

windows-10-application-compatibility
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hi @PritiShah-4855,

When you have your own custom credential provider (CP) for multifactor authentication (such as Biometric, password, Smartcard).

You do remote desktop connection (RDC) to connect to a client Vista machine where the client machine has installed this custom CP. The issue is that you have to login twice for a Remote session.

You can get to know more about this from here
RDC and Custom Credential Providers
https://docs.microsoft.com/en-us/archive/blogs/winsdk/rdc-and-custom-credential-providers

I have also found a Similar thread that might be helpful for you https://docs.microsoft.com/en-us/answers/questions/383802/windows-custom-credential-provider-unable-to-displ.html


--If the reply is helpful, please Upvote and Accept it as an answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PritiShah-4855 avatar image
0 Votes"
PritiShah-4855 answered PritiShah-4855 edited

@LimitlessTechnology-2700
Thank you for your reply. With lots of try outs, I am able to get custom CP tile in second time during login via RDP.
When I initiate login via RDP, first login needs to be done via default login and for second login custom CP is available.
I am able to login successfully with first step but with second step which I am trying to login with custom CP, login is failing with below error code:

0xC000006D STATUS_LOGON_FAILURE The attempted logon is invalid. This is either due to a bad username or authentication information

Same code works fine when I am login directly on windows using custom CP.

Can you please help me identifying or solving this issue? I am suspecting some windows policies are causing issue when I am trying to create user session via custom CP during RDP login.

Looking forward for your suggestions.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.