Authentication libraries: Two factor auth support |
(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) |
Messages In This Thread |
Authentication libraries: Two factor auth support - by bartMommens - 01-03-2019, 06:32 AM
RE: Authentication libraries: Two factor auth support - by jhob - 07-08-2019, 08:44 AM
RE: Authentication libraries: Two factor auth support - by website - 07-08-2019, 09:01 AM
RE: Authentication libraries: Two factor auth support - by bartMommens - 07-08-2019, 09:06 AM
RE: Authentication libraries: Two factor auth support - by jhob - 07-09-2019, 04:26 AM
RE: Authentication libraries: Two factor auth support - by bartMommens - 07-09-2019, 01:09 PM
|