GithubHelp home page GithubHelp logo

antaresproject / two_factor_auth Goto Github PK

View Code? Open in Web Editor NEW
1.0 7.0 1.0 202 KB

:key: 2FA Implementation Antares Component with Google and Yubikey authenticators

Home Page: http://antaresproject.io

License: BSD 3-Clause "New" or "Revised" License

JavaScript 0.68% PHP 95.76% HTML 3.56%
2fa qrcode laravel php google-authenticator yubikey antares antares-project yubikey-authenticators factor

two_factor_auth's Introduction

Antares Two Factor Auth Module

Laravel 5.4 Coverage Status Build Status Code Climate GitHub issues GitHub forks GitHub stars GitHub license

Antares Two Factor Auth is a package which provides method of confirming a user's identity by utilizing two different authentication components. Implemented with Google and Yubikey authenticators.

two_factor_auth

Documentation

Antares Two Factor Auth Module documentation is not finished yet.

Full Antares documentation can be found at docs.antaresproject.io/php-framework.

Changelog

Antares Two Factor Auth changelog can be found in release notes docs.antaresproject.io/php-framework/getting-started/changelog/#two-factor-auth.

You can find full Antares changelog in Antares Documentation docs.antaresproject.io/php-framework/getting-started/changelog.

Issues

The issue list of this repo is exclusively for bug reports and feature requests.

Please follow Issue Reporting Guide before opening an issue. Issues not following the guide will be closed without further investigation.

Contribution

Please follow Contribution Guide before making a pull request.

Community

  • Twitter: @antaresproject
  • Forum: (coming soon)
  • Blog: (coming soon)
  • Email: contact (at) antaresproject.io

License

This software is released under the BSD 3-Clause License.

© 2017 INBS.Software.

two_factor_auth's People

Contributors

german-bortoli avatar marcinkozak avatar mountstone avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tlsnaui

two_factor_auth's Issues

Several errors after module installation

  1. I could not even install extension because of error. Please fix the configuration file: https://github.com/antaresproject/two_factor_auth/blob/master/resources/config/config.php. Valid contract for Google is PragmaRX\Google2FA\Google2FA::class not PragmaRX\Google2FA\Contracts\Google2FA::class.
  2. ACL rules have not been added. There was blank page on configuration page. I had to populate database manually and grant permissions.
  3. I could not configure any Authentication method because of many errors came out:

Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to Antares\Modules\TwoFactorAuth\Processor\UserConfigurationProcessor::isConfigured() must implement interface Antares\Area\Contracts\AreaContract, null given, called in /var/www/antares/src/modules/two_factor_auth/src/Http/Controllers/Admin/AuthController.php on line 80 in /var/www/antares/src/modules/two_factor_auth/src/Processor/UserConfigurationProcessor.php:95

Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 2 passed to Antares\Modules\TwoFactorAuth\Processor\AuthProcessor::verifyCredentials() must implement interface Antares\Area\Contracts\AreaContract, null given, called in /var/www/antares/src/modules/two_factor_auth/src/Http/Controllers/Admin/AuthController.php on line 103 in /var/www/antares/src/modules/two_factor_auth/src/Processor/AuthProcessor.php:90

Illuminate\Contracts\Container\BindingResolutionException: Target [Antares\Area\Contracts\AreaContract] is not instantiable. in /var/www/antares/vendor/laravel/framework/src/Illuminate/Container/Container.php:895

Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to Antares\Modules\TwoFactorAuth\Http\Controllers\Admin\ConfigurationController::showProviderConfiguration() must implement interface Antares\Contracts\Html\Builder, instance of Antares\Area\Model\Area given, called in /var/www/antares/src/modules/two_factor_auth/src/Processor/ConfigurationProcessor.php on line 108 in /var/www/antares/src/modules/two_factor_auth/src/Http/Controllers/Admin/ConfigurationController.php:104

Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 3 passed to Antares\Modules\TwoFactorAuth\Processor\ConfigurationProcessor::edit() must be an instance of Antares\Modules\TwoFactorAuth\Model\Provider, instance of Illuminate\Database\Eloquent\Collection given, called in /var/www/antares/src/modules/two_factor_auth/src/Http/Controllers/Admin/ConfigurationController.php on line 86

Possibility of blocking login because of Two Factor

  1. Enable Two Factor for Admin Account
  2. Log out from app
  3. Log in - There will be displayed two factor authentication configuration page (code to scan)
  4. Click "Cancel"
  5. Try to log in one more time

Results:

There is displayed "Please confirm the code below", and there is no possibility to log in, because I clicked "Cancel" on configuration step, and I don't have a verification code.

No possible to enable 2factor from CA level

  1. Go to admin/settings/security and enabled Google auth for User Provider
  2. Log to CA as random user, and then go to My Account
  3. Click "Enable 2FA"

Results:
The page was refreshed, but 2factor is still disabled for this user

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.