privacyidea-credential-provider icon indicating copy to clipboard operation
privacyidea-credential-provider copied to clipboard

SetStatusMessage not working on CPUS_CREDUI

Open YiShan8787 opened this issue 11 months ago • 3 comments

Hi,

I need to use the second-factor function, and it works perfectly in the case of cpus_logon, but in the case of cpus_credui, after entering the password, the system does not pop up a prompt, but I can log in successfully.

I traced the source code and found that it is pqcws->SetStatusMethod has problems in the case of cpus_credui, I would like to know if there is a way to make the SetStatusMethod work fine.

YiShan8787 avatar Mar 28 '24 07:03 YiShan8787

I dont think i really understand you. You do not get a prompt for the second factor in case of credui? And that is because of pqcws->SetStatusMessage? How does the rest of your config look?

nilsbehlen avatar Mar 28 '24 09:03 nilsbehlen

My current config is as follows,

[HKEY_LOCAL_MACHINE\SOFTWARE\NetKnights GmbH\PrivacyIDEA-CP] "offline_file"="c:\tmp\data.json" "two_step_hide_otp"="1" "webauthn_preferred"="1" "two_step_send_password"="0" "otp_text"="Please enter your second factor!" "otp_hint_text"="Please enter your second factor!" "prefill_username"="1" "show_domain_hint"="1" "v1_bitmap_path"="c:\tmp\test.bmp" "login_text"="test Login"

Let me briefly explain my problem, I want the following prompt to appear in RDP, but the system will not pop up the following prompt:

"Insert your security key!" "Touch your Security Key!"

,but it still can run.

YiShan8787 avatar Mar 29 '24 07:03 YiShan8787

yeah, webauthn does not work for credui because it is running in user context. The things that are required to do webauthn only work in system context, which is only for logon/unlock

nilsbehlen avatar Apr 02 '24 07:04 nilsbehlen