Welcome Guest, Not a member yet? Register   Sign In
Authentication libraries: Two factor auth support
#4

(07-08-2019, 08:44 AM)jhob Wrote: I was coming on here to ask the exact same question.  Did you ever find a solution that worked for you?

Hey jhob,

I had to custom build it, but started from ION Auth library. https://github.com/benedmunds/CodeIgniter-Ion-Auth. I used ION Auth as authentication library. And used https://github.com/PHPGangsta/GoogleAuthenticator
To implement Google authenticator validation.

General flow: log user in with ion Auth. When successfully logged in check TOTP via Google authenticator. If it's a match set a specific cookie. If both the ion Auth and custom cookie are present user can continue. You can store some hashed user info in the custom cookie like IP, User-agent to validate the cookie against current user in the session. If Google authenticator validation failed destroy session, log user out. ( Posting from mobile)
Reply


Messages In This Thread
RE: Authentication libraries: Two factor auth support - by bartMommens - 07-08-2019, 09:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB