Skip to content

laravel-matrix/laravel-u2f

Repository files navigation

laravel-u2f

Scrutinizer Code Quality SensioLabsInsight

This PSR4 package provide u2f protocol integration in laravel 5 framework.

Install

Via Composer

$ composer require lahaxearnaud/laravel-u2f

Provider

In the config/app.php file:

[
    //...
    "Lahaxeanaud\U2f\LaravelU2fServiceProvider"
]

Alias

In the config/app.php file:

[
    //...
    'U2f' => 'Lahaxeanaud\U2f\LaravelU2fServiceFacade'
]

Configs

$ php artisan vendor:publish --provider="Lahaxeanaud\U2f\LaravelU2fServiceProvider" --tag=config
$ php artisan migrate

Migrations

$ php artisan vendor:publish --provider="Lahaxeanaud\U2f\LaravelU2fServiceProvider" --tag=migrations
$ php artisan migrate

Middleware

In the app/Http/Kernel.php file

protected $routeMiddleware = [
    // ...
    'u2f' => 'Lahaxeanaud\U2f\Http\Middleware\U2f',
];

Usage

Middleware

In the route.php file add the u2f middleware on your routes or groups:

    Route::get('admin/profile', ['middleware' => ['auth', 'u2f'], function () {
        //
    }]);

Configuration

Events

// to do

Change log

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email lahaxe[dot]arnaud[at]gmail[dot]com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Laravel U2F support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 50.9%
  • PHP 37.1%
  • HTML 12.0%