2FA? Is it hard to implement?
How hard is it to implement 2FA into a log in. Using something like google Authenticator?
28 Replies
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.
Only one is fine not sure if Microsoft has one
2FA is actually built into Identity
:sadge:
So if you use that for user accounts, then no need to implement anything
I'm making a web password manager
It only has a master password
And it's for 1 user
Like for a local network
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
That's what I like to hear
:email: but like how to do it
Any docs?
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
you just have to implement the logic around that in your specific app structure
Thanks!
Is there anything for Microsoft Authenticator maybe?
Id assume it has better support
havent done microsoft before
Hei. U can 2fa auth using OTP. Like to send 6 digits code on email or on phone
6 digits
On an app sounds easier
And this is not so hard to make