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

"Blank" 1Password passkey dialog

Open offbyone opened this issue 5 months ago • 6 comments

When creating a passkey with this library I am able to invoke the 1Password passkey popover, but it comes up blank:

Image

This is coming from a view in the Admin site -- I'm only allowing passkey association for admin/staff users -- so I'm not using the existing templates/PassKeys.html template, but one of my own. You can see it here

I've run out of ideas here; how do I make the passkey UI for 1Password work?

offbyone avatar Jul 27 '25 00:07 offbyone

Oh, because I realized this might be an obvious one: other sites that create passkeys work fully; the 1Password UI shows fully.

offbyone avatar Jul 27 '25 03:07 offbyone

Hello,

Can you try 1Password with example app, and let us know.

mkalioby avatar Jul 27 '25 04:07 mkalioby

Out of the box, I can't get SSL to work with the example, as it runs into https://github.com/teddziuba/django-sslserver/issues/111

After applying that fix, the SSL server starts, but passkeys error out with an invalid domain:

Registration Failed as SecurityError: This is an invalid domain., [try again](javascript:void(0))

I'm guessing they don't allow https://localhost:8000.

I switched to https://localhost:8000/ which allowed enrollment to work but in that case it never even showed me the 1Password dialog at all, just the macOS keychain followed by the browser sheet for yubikeys.

offbyone avatar Jul 27 '25 15:07 offbyone

May be 1Password doesn't intercept localhost domains or http:// domains. Try to run the demo as you run your system and check if this will invoke 1Password.

mkalioby avatar Jul 27 '25 15:07 mkalioby

I had to give the superuser a name -- 1Password does not work at all if the user has no name (an aside: I'm gonna send you a PR with updates to the example :D)

Once I did that, I can see the 1Password dialog appear, and like in my app above, it's blank.

offbyone avatar Jul 27 '25 15:07 offbyone

Hello, @offbyone ,

Can you check if PR #51, can solve the issue?

mkalioby avatar Aug 11 '25 04:08 mkalioby