Conversation
|
This is exciting! looking forward to reviewing it in the next day or two! |
|
pushing this to test now - is it possible to test locally? getting domain errors trying it on my setup |
|
Test build will likely fail due to migration conflict. Fixed it just now in this branch. More migration conflicts will come, the translation PR have a lot migrations e.g. If we push this to test and then do not merge this in before translate PR we will have to reset the test db a bit. |
Yes, if you set base_url to "localhost". Then it will not require TLS either. IP 127.0.0.1, hypha.test etc. will not work due to how browsers handle this for security. This should work:
|
|
left a super minor comment but otherwise this is totally ready to go! |
|
@wes-otf Good change. Looking at it I came up with some more ways to polish it. The green check is there but when you start typing in the name field the check turns blu with a border so it looks like a button. Clicking it saves and makes it green without a border again. |
|
Added some new stuff:
|
32368fd to
e764e6d
Compare
4cff425 to
fda3ef7
Compare
|
@frjo I think I accidentally force pushed earlier when I intended to force push to the test branch - sorry about that!
it looks like the original issue is still there where you can still make the request (by clicking the button) even if the name hasn't been changed. I think it makes things a little less intuitive and could result in an unnecessary request but probably isn't big in the scheme of things. Everything else looks good to me! Happy to get this merged whenever you feel it's good. |
|
@wes-otf Easy to restore the branch so no worry. I think I managed to make the green check not behave like a button now. When you change the name the check turns blue and behave like a button. |
| {% heroicon_micro "key" class="inline size-4" aria_hidden=true %} | ||
| {% trans "Sign in with passkey" %} |
There was a problem hiding this comment.
Wondering if we should make this a little more similar to the "Login with password" button in both verbiage and icon.
Like choosing to user either "Sign in" vs "Log in" and the password button uses the heroicon_mini: {% heroicon_mini "key" size=18 class="opacity-80" aria_hidden=true %}
Co-authored-by: Wes Appler <145372368+wes-otf@users.noreply.github.com>
…button and turn green on save.
…idden inputs to data attributes. Handle os errors nicer, like when trying to add a second icloud key.
…ttons can be on one row.
|
button layout is nice! |
Fixes #4563
This implementation uses duo-labs/py_webauthn: Pythonic WebAuthn directly implementing its own Django wrapper. This is so passkeys are used as a stand alone login method and not as a 2FA option.
The interesting parts are in
passkey_views.pyandpasskeys.js.Test Steps