TeskaLabs / seacat-auth

SeaCat Auth provides authentication, authorization, identity management, session management and other access control features.
GNU General Public License v3.0
11 stars 7 forks source link

Webauthn user_name can be either email address or phone number #229

Closed byewokko closed 1 year ago

byewokko commented 1 year ago

ISSUE: The GET /public/webauthn/register-options fails with error for users without email address because the webauthn user_name attribute (commonly the email address) cannot be None.

FIX: When no email is available, the user_name falls back to phone number. If still none, a comprehensive error is raised.