C
C#2w ago
Strax

2FA? Is it hard to implement?

How hard is it to implement 2FA into a log in. Using something like google Authenticator?
28 Replies
Marvin
Marvin2w ago
its not hard, just a bit of effort doing all the required endpoints and updating the logic of your already existing ones, but espeically if you only focus on one type of 2FA like google authenticator, its definitely not hard.
Strax
Strax2w ago
Only one is fine not sure if Microsoft has one
Angius
Angius2w ago
2FA is actually built into Identity
Strax
Strax2w ago
:sadge:
Angius
Angius2w ago
So if you use that for user accounts, then no need to implement anything
Strax
Strax2w ago
I'm making a web password manager It only has a master password And it's for 1 user Like for a local network
Angius
Angius2w ago
If you're not using Identity, then it's still stupid easy to do I implemented 2FA easily even back in my PHP days lol
Strax
Strax2w ago
That's what I like to hear :email: but like how to do it Any docs?
Marvin
Marvin2w ago
i mean i dont know if there is something new better for it, but one library that does all the heavy lifting of actually doing the generating and validating is: https://github.com/BrandonPotter/GoogleAuthenticator
GitHub
GitHub - BrandonPotter/GoogleAuthenticator: Simple, easy to use ser...
Simple, easy to use server-side two-factor authentication library for .NET that works with Google Authenticator and Authy. - BrandonPotter/GoogleAuthenticator
Marvin
Marvin2w ago
you just have to implement the logic around that in your specific app structure
Strax
Strax2w ago
Thanks! Is there anything for Microsoft Authenticator maybe? Id assume it has better support
Marvin
Marvin2w ago
havent done microsoft before
Casianm8
Casianm82w ago
Hei. U can 2fa auth using OTP. Like to send 6 digits code on email or on phone
Strax
Strax2w ago
6 digits On an app sounds easier
Casianm8
Casianm82w ago
And this is not so hard to make
Want results from more Discord servers?
Add your server