Download the PHP package sicaboy/laravel-mfa without Composer
On this page you can find all versions of the php package sicaboy/laravel-mfa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sicaboy/laravel-mfa
More information about sicaboy/laravel-mfa
Files in sicaboy/laravel-mfa
Package laravel-mfa
Short Description A Laravel package of Multi-factor Authentication (MFA/2FA) with a middleware.
License MIT
Homepage https://github.com/sicaboy/laravel-mfa
Informations about the package laravel-mfa
Laravel Multi-factor Authentication (MFA) / Two-factor Authentication (2FA)
Introduction
This package was a part of sicaboy/laravel-security. Later moved to this separated repository.
This package provides a Middleware to protect pages with MFA in your Laravel projects.
Installation
Requirements:
To get the latest version of Laravel MFA, simply run:
Then do vendor publish:
After publishing, you can modify templates and config in:
If you're on Laravel < 5.5, you'll need to register the service provider. Open up config/app.php
and add the following to the providers
array:
Usage
General Usage
Attach the middleware to your routes to protect your pages.
If Using Different Auth Objects
If you use different Auth
objects, for example user auth and admin auth, you can apply following to enable MFA for admin pages.
-
Attach the middleware to your routes.
- Add a group in your config file
config/laravel-mfa.php
Queue
If your application has a artisan queue:work
daemon running, you can send auth code in a queue by changing the config.
TODO
- Switch on MFA on specific users (DB field-based)
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
License
The MIT License (MIT). Please see License File for more information.