Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate check enrollment possible bug #46

Open
bcredeur97 opened this issue Mar 13, 2024 · 2 comments
Open

validate check enrollment possible bug #46

bcredeur97 opened this issue Mar 13, 2024 · 2 comments

Comments

@bcredeur97
Copy link

Hello @nilsbehlen !

In the configuration section of the docs, it states that the enable enrollment registry key essentially should not be used if you want to use the new enrollment method introduced in PrivacyIdea 3.8

I am trying to get this new enrollment method working with TOTP.

There seems to be no docs on how exactly to do this, but I went ahead and setup a Authentication Policy in PrivacyIDEA that adds the "enroll_via_multichallenge" option to the authentication policy and selected TOTP as described here in section 7.3.15https://privacyidea.readthedocs.io/en/latest/policies/authentication.html#otppin

Currently when a brand new user logs in, they are prompted in ADFS for a TOTP code, which they do not have, and they are not given the option to generate a new one, so they cannot login.

What am I missing here? How do we "trigger" the new enrollment method for the users?

@bcredeur97
Copy link
Author

We did get this to work!! Figured out that for the new authentication method to work:

  1. You must enable "enroll_via_multichallenge" authentication policy in PrivacyIDEA
  2. You also must enable "passOnNoToken" in the same authentication policy
  3. In the PrivacyIDEA ADFS-Provider Plugin, you must set the "send_empty_pass" registry key to "1"

This will have new users enroll, and existing users will get prompted for their codes like normal.

Also -- I may have discovered a bug, if a new user clicks the "Submit" Button without entering a code(or entering the wrong code) on the Enrollment screen, it enrolls the token as the user and the user will be stuck without a way to login (until the token is deleted)

@nilsbehlen
Copy link
Member

Hey, good that you figured it out by yourself!
I will check if i can confirm the bug when i have time

@nilsbehlen nilsbehlen changed the title Automatic TOTP Enrollment Question validate check enrollment possible bug Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants