How to implement 2FA in an application?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1020144
    womoc ratouzo
    Participant

      I’ve been wanting to add two-factor security to my small web application for a long time, but never got around to it. Now I have more users, and I’m starting to think about security seriously. The application itself is on Node.js, simple authorization via email and password. I would like to add 2FA without much difficulty, but to make everything work stably – with codes, generation, backup keys. Who has already gone through this – where is the best place to start?

      #1020149
      weswin nefred
      Participant

        When I made 2FA support for one service, I also started with a simple one – first TOTP, then I added HOTP for more flexibility. In my opinion, it is important to think about where and how the secret key will be stored, and don’t forget about the code lifetime. The hotp generator helped me a lot in my tests – you could quickly check how the server and client synchronize, especially in the case of HOTP, where the counter plays a key role. In general, there are more useful utilities on this site, which help to set everything up without spending hours on debugging. And another tip is to run everything on test accounts first, and then give it to users.

        #1020150
        vice crufoli
        Participant

          Just reading the topic, but I noticed that more and more developers are starting to care about the security of their applications. A couple years ago almost no one talked about 2FA on small projects, but now even small admin areas have this feature. It’s nice to see that the approach is changing towards more security consciousness.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.
        Back to top button