django-mfa2 icon indicating copy to clipboard operation
django-mfa2 copied to clipboard

Can not register Biometric Authentication in Firefox

Open hatamiarash7 opened this issue 1 year ago • 5 comments

Hi!

I can't register a new Biometric Authentication in Firefox. Google Chrome and Safari are OK... Just Firefox. I have this error:

image

This problem exists for registration only, the login process is working.

MacOS 14.2.1 Firefox 121.0.1

hatamiarash7 avatar Jan 25 '24 06:01 hatamiarash7

Hello, What is your authentication backend? the userid is the username ascii encoded, you can check the value received from backend in the console, so please share it

mkalioby avatar Jan 25 '24 06:01 mkalioby

@mkalioby I think the response and user.id value is correct:

image

I checked the response value in different browsers and it was the same

I forgot to mention... I am running the example project

hatamiarash7 avatar Jan 25 '24 07:01 hatamiarash7

I'll try here and let you know

mkalioby avatar Jan 25 '24 07:01 mkalioby

Ok ... I find the problem. The example project is good. I think there is a little problem with the Bitwarden extension in Firefox. This plugin supports FIDO2.

I'll log the output of navigator.credentials.create(options) and see that there are some @moz-extension errors in the stack:

image

Of course, I tested the use of this extension for login and there was no problem. It also worked correctly on the django-passkeys project.

Now I don't know if the problem is with your code or this extension.

hatamiarash7 avatar Jan 25 '24 07:01 hatamiarash7

Try a longer/shorter username and see if it will work

mkalioby avatar Jan 25 '24 09:01 mkalioby

No, it's now work. There is a problem with Passkey extensions like Bitwarden.

hatamiarash7 avatar Mar 07 '24 09:03 hatamiarash7