New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

gocrew/laravel-reauth

Reauth users for sensitive parts of your app
359 4
Install
composer require gocrew/laravel-reauth
Latest Version:v1.0.6
PHP:>=5.5.0
Laravel:5
License:MIT
Last Updated:Apr 29, 2016
Links: GitHub  ·  Packagist
Maintainer: pascalschwientek

Laravel ReAuth

Build Status Latest Stable Version Latest Unstable Version License

Re-Auth users for sensitive parts of your app.

Installation

Step 1: Composer

From the command line, run:

composer require gocrew/laravel-reauth

Step 2: Service Provider

For your Laravel app, open config/app.php and, within the providers array, append:

gocrew\LaravelReAuth\ServiceProvider::class

This will bootstrap the package into Laravel.

Step 3: The Middleware

In your app\Http\Kernel.php file, add the reauth middleware to the $routeMiddleware array.

protected $routeMiddleware = [
    // ...
    'reauth'         => \gocrew\LaravelReAuth\Http\Middleware\Reauthenticate::class,
    // ...
];

Usage

Basic

Apply the middleware on a route you want to protect:

Route::get('settings', ['uses' => 'Controller@getSettings', 'middleware' => 'reauth']);

Done!

Advanced

If you need a more advanced setup, no problem. Everything is overwritable and everything is as modular as possible.

TODO

  • advanced docs
  • tests

License

The contents of this repository is released under the MIT license.

Related Packages

mpociot/reauthenticate

Reauthenticate users by letting them re-enter their passwords for specific parts...

35,959 301
comes/simpleauthenticator

A PHP library for implementing Google Authenticator's two-factor authentication...

10,194 0
milenmk/laravel-rate-limiting

Advanced rate limiting package for Laravel with exponential backoff, custom mess...

3,011 10
harryes/laravel-sentinellog

A vigilant authentication logging and security package for Laravel 10-13 (PHP 8....

1,191 8

Version History

Version Released PHP Laravel License
v1.0.6 >=5.5.0 ~5 MIT
v1.0.5 >=5.5.0 ~5 MIT
v1.0.4 >=5.5.0 ~5 MIT
v1.0.3 >=5.5.0 ~5 MIT
v1.0.2 >=5.5.0 ~5 MIT