sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.14k stars 207 forks source link

support our own 2-factor auth #7559

Closed williamstein closed 1 month ago

williamstein commented 2 months ago

I just ran through the quickstart for on prem netbird, and it installs open source free on prem Zitadel as part of the process. Interestingly, this fully configures and sets up 2-factor authentication... which is pretty cool! Since this can clearly easily be done for free with open source, we should also do it with cocalc. Currently the only 2-factor option for our users is via a third party login provider such as Google.

CON TO THIS: people lose their codes and we have to deal with it...

And this is longterm. I'm mainly just recording some links here, since I was really impressed. Another thing that surprised me is that netbird's on prem open source install somehow has a non-self-signed https cert. That's impressive that it is also automated.

williamstein commented 2 months ago

I looked deeper.

haraldschilly commented 2 months ago

probably dup of #1401

I would argue for just storing the shared secret in the DB and use a generate/validate lib like https://github.com/hectorm/otpauth

williamstein commented 1 month ago

Closing as dup of #1401 ...