All Projects → born05 → Craft Twofactorauthentication

born05 / Craft Twofactorauthentication

Licence: mit
Craft plugin for two-factor or two-step login using Time Based OTP.

Projects that are alternatives of or similar to Craft Twofactorauthentication

Oauth
🔗 OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (+983.87%)
Mutual labels:  authentication, login
Yosai
A Security Framework for Python applications featuring Authorization (rbac permissions and roles), Authentication (2fa totp), Session Management and an extensive Audit Trail
Stars: ✭ 582 (+1777.42%)
Mutual labels:  authentication, two-factor
Play Pac4j
Security library for Play framework 2 in Java and Scala: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 375 (+1109.68%)
Mutual labels:  authentication, login
Twofactorauth
List of sites with two factor auth support which includes SMS, email, phone calls, hardware, and software.
Stars: ✭ 2,865 (+9141.94%)
Mutual labels:  authentication, two-factor
Fastify Esso
The easiest authentication plugin for Fastify, with built-in support for Single sign-on
Stars: ✭ 20 (-35.48%)
Mutual labels:  authentication, login
Accownt
🐮 Dead simple user account system so easy a cow could do it.
Stars: ✭ 255 (+722.58%)
Mutual labels:  authentication, login
Cloudfront Auth
An AWS CloudFront [email protected] function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
Stars: ✭ 471 (+1419.35%)
Mutual labels:  authentication, login
Supertokens Core
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
Stars: ✭ 2,907 (+9277.42%)
Mutual labels:  authentication, login
Auth0.js
Auth0 headless browser sdk
Stars: ✭ 755 (+2335.48%)
Mutual labels:  authentication, login
Php Auth
Authentication for PHP. Simple, lightweight and secure.
Stars: ✭ 713 (+2200%)
Mutual labels:  authentication, login
Django Rest Registration
User-related REST API based on the awesome Django REST Framework
Stars: ✭ 240 (+674.19%)
Mutual labels:  authentication, login
Mean Angular5 Passport Authentication
Securing MEAN Stack (Angular 5) Web Application using Passport Authentication
Stars: ✭ 24 (-22.58%)
Mutual labels:  authentication, login
Spring Security Pac4j
pac4j security library for Spring Security: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 231 (+645.16%)
Mutual labels:  authentication, login
Express Stormpath
Build simple, secure web applications with Stormpath and Express!
Stars: ✭ 327 (+954.84%)
Mutual labels:  authentication, login
Laravel Adminless Ldap Auth
Authenticate users in Laravel against an adminless LDAP server
Stars: ✭ 199 (+541.94%)
Mutual labels:  authentication, login
Buji Pac4j
pac4j security library for Shiro: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 444 (+1332.26%)
Mutual labels:  authentication, login
Spark Pac4j
Security library for Sparkjava: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 154 (+396.77%)
Mutual labels:  authentication, login
Turnstile
An authentication framework for Swift.
Stars: ✭ 163 (+425.81%)
Mutual labels:  authentication, login
Authelia
The Single Sign-On Multi-Factor portal for web apps
Stars: ✭ 11,094 (+35687.1%)
Mutual labels:  authentication, two-factor
Kratos Selfservice Ui React Native
A reference implementation of an app using ORY Kratos for auth (login), sign up (registration), profile settings (update password), MFA/2FA, account recovery (password reset), and more for React Native. This repository is available as an expo template!
Stars: ✭ 24 (-22.58%)
Mutual labels:  authentication, login

Two-Factor Authentication

Two-Factor Authentication

Craft 3 plugin for two-factor or two-step login using Time Based OTP (TOTP, like Google Authenticator). Every user can setup TOTP themselves, the plugin does not force users. Admins can list usage in user tables.

Inner working

Login works as usual for users without 2-factor auth.

When enabled, the user is redirected to the 2-factor verification page after login. This means the user is already logged in. When the user tries to visit an other Control Panel page than the public ones before verification, the logout is triggered. This blocks the user from visiting the CP unverified.

Requirements

  • Craft 3.0.0
  • PHP 7.x at least

Setting up back end 2FA

  • Set verifyBackEnd to true in the config file (this is the default).
  • Set forceBackEnd to true if you want to prevent users from accessing the control panel without first enabling 2FA.

Setting up front end 2FA

When using a login for front end users, the following steps add 2FA support.

  • Copy the two-factor-authentication.php file to your config/ folder.
  • Set verifyFrontEnd to true in the config file.
  • Define what urls should be protected with 2FA verification. Choose between using the frontEndPathAllow or frontEndPathExclude! Using both will block everything! See config for additional info.
  • Build a 2FA login-verify form accessible by url like the example twig.
  • Set the verifyPath. For our login-verify.twig example the path would be login-verify.
  • Allow users setting up 2FA in front end by building a template like the example twig.
  • Set the settingsPath. For our two-factor-settings.twig example the path would be two-factor-settings.

Setting up config

Copy the two-factor-authentication.php file to your config/ folder.

Resetting a user's 2FA

Simply remove the user's twofactorauthentication_user record. This disables 2FA for that user.

Screens

Setting screen when turning 2FA on

Setting screen when turning 2FA on

Setting screen when turning 2FA off

Setting screen when turning 2FA off

Login verification screen

Login verification screen

License

Copyright © Born05

See license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].