puter icon indicating copy to clipboard operation
puter copied to clipboard

Feature request: WebAuthN support for accounts (Passkey and Security key)

Open Zac0511 opened this issue 7 months ago • 15 comments

It would be nice to add WebAuthN support for an account's security, which would support for :

  • Passkeys (saved on mobile devices, Windows Hello, or password managers)
    • Work both as 2FA and also a way to login ("Login with Passkey" button without even typing an email), and could also allow the user to delete their password to use Passkey only sign in
  • Physical Security Keys (Yubikey, Google Titan key, etc)
    • Work as 2FA only

This could make Puter accounts more secure (at least for people who set it up), and also, with Passkeys, make logging in quicker and easier.

Note: yes i do know i already made an issue about passkeys (#379) but this new issue is better and includes physical security keys.

Zac0511 avatar Apr 14 '26 12:04 Zac0511

I would like to work on it please assign it to me. I am new to open source contributions please assign me any new issue if you feel I should work on this. Thanks I would really like to try and contribute. I have setup puter on my local.

mohnishbaker avatar Apr 19 '26 14:04 mohnishbaker

@mohnishbaker Assigned! Let us know if you need help

jelveh avatar Apr 20 '26 04:04 jelveh

Hi @Zac0511 , @jelveh ! I have completed the webAuthN implementation using 2FA, Passkey and singIn using passkey I was working on implementing the password-less signIn and remove the password implementation for that I had a few questions regarding that : 1). After removing the password should we give the option to add password instead of change password ? 2). If someone has 2FA enabled and has removed the password and tries to deactivate the 2FA what should be the case for that because 2FA requires password to be disabled ?

Thank you.

mohnishbaker avatar Apr 23 '26 11:04 mohnishbaker

Hi @Zac0511 , @jelveh ! I have completed the webAuthN implementation using 2FA, Passkey and singIn using passkey I was working on implementing the password-less signIn and remove the password implementation for that I had a few questions regarding that : 1). After removing the password should we give the option to add password instead of change password ? 2). If someone has 2FA enabled and has removed the password and tries to deactivate the 2FA what should be the case for that ?

Thank you.

For 1, yes the change password button could become and add password button, for 2, 2FA could be disabled (since logging in via passkey most of the time also bypasses 2FA), as long as the passkey CANNOT be deleted if there is no password, or else the user would get locked out of their account.

Zac0511 avatar Apr 23 '26 11:04 Zac0511

Hi @Zac0511 @jelveh, I have completed the feature implementation and raise a PR. Please review it. Thank you.

PR: https://github.com/HeyPuter/puter/pull/2846

mohnishbaker avatar Apr 27 '26 06:04 mohnishbaker

Signed the CLA. Thank you.

mohnishbaker avatar May 02 '26 07:05 mohnishbaker

Hi @mohnishbaker thanks for the contribution, unfortunately we were in the middle of a big rewrite to our backend so your changes got caught in the middle.

could you port them over to new structure?

Salazareo avatar May 06 '26 22:05 Salazareo

@Salazareo , Sure on it.

mohnishbaker avatar May 08 '26 19:05 mohnishbaker

gonna open this back up to community to add

Salazareo avatar Aug 26 '26 21:08 Salazareo

Hi @Salazareo could I pick up this ticket?

Michelle-Ekw avatar Sep 07 '26 19:09 Michelle-Ekw

Hi @Michelle-Ekw yes please, I'll assign it to you, let me know if you need any help

Salazareo avatar Sep 09 '26 05:09 Salazareo

any updates? any difference between admin/common account?

o0oke avatar Sep 26 '26 14:09 o0oke

Could I pick this up ?

rowin-C avatar Sep 28 '26 17:09 rowin-C

Hey @rowin-C I just saw this was assigned to me. Let me take a look and if I decided to pass it on I'll let you know

Michelle-Ekw avatar Sep 28 '26 20:09 Michelle-Ekw

Working on this now! I'm getting my environment fixed together

Michelle-Ekw avatar Oct 11 '26 20:10 Michelle-Ekw