-2

Cheers,

We started implementing biometrics authentication in our web system and came to a doubt. We're going to use a third-party solution for performing it which is going to be called via a web service.

There are going to be four kinds of authentication:

  1. Regular one: username/password
  2. Challenge
  3. Fingerprint
  4. Cellphone

All users will be authenticated using 1. Optionally, some of them may also require 2, 3 or 4. What would be a good way of verifying which authentication type is required for a specific user?

This is something new for me. Initially, I thought about passing the username from the login page to a web service, which would query the database to check which authentication type is required for this user. Then, depending on the result, the second authentication form would be shown on the screen. Obviously, some extra check would be performed after the user hit the Submit button.

Am I on the right path, or there are better solutions for this?

Thanks,

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
born to hula
  • 1,274
  • 5
  • 18
  • 36

1 Answers1

0

I guess that would work. Maybe it is an option to do some sort of query in the background (AJAX?) when the username is filled in, so you can dynamically add extra inputs to your login form.

However, this has one potential issue: everybody that knows someone 's username can find out what authentication is required. If that is not wat you want, maybe just ask for a username + password to login to a reduced privelege mode. Then, as you suggested in your question, this reduced privelege mode may require extra credentials to continue to the more secure environment.

You could even make it so the reduced privelege mode will grant access to some of the features, while others require extra authentication (for example: posting a mesage would require basic auth, changing passwords might require all four).

zjorzzzey
  • 94
  • 3
  • I don't know why you got a downvote for this answer other than the legacy users#### showing up to get credit for voting in general. Yes, this isn't the final answer, but it is the only one, and the question is marked as vague, so you helping shouldn't be a -1 .. so returning a +1 to you. – easleyfixed Jan 05 '22 at 17:17