2017 © Pedro Peláez
 

library basic-auth-enforcement

Laravel 5 Middleware to enforce basic auth on your application code.

image

owenmelbz/basic-auth-enforcement

Laravel 5 Middleware to enforce basic auth on your application code.

  • Friday, June 2, 2017
  • by OwenMelbz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,058 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Laravel 5+ Basic Auth Enforcement

An automatic piece of middleware for Laravel 5+, will prompt users accessing your code base (static assets are excempt) to enter a username/password before seeing your application. Very useful for things like staging environments., (*1)

Usage

  1. Install via composer composer require owenmelbz/basic-auth-enforcement, (*2)

  2. Register the service provider - typically done inside the app.php providers array e.g OwenMelbz\BasicAuthEnforcement\BasicAuthEnforcementServiceProvider::class, (*3)

  3. Add ENFORCE_BASIC_AUTH=true to your application environment config e.g .env, (*4)

  4. Add your username BASIC_AUTH_USER=username, (*5)

  5. Add your password BASIC_AUTH_PASSWORD=password, (*6)

  6. Enjoy your stress free environment agnostic basic auth., (*7)

Configuration

You can public the config using php artisan vendor:publish --provider="OwenMelbz\BasicAuthEnforcement\BasicAuthEnforcementServiceProvider" which will allow you to exclude IPs from the checks as well as custom endpoints, which is useful for payment gateway ping backs etc., (*8)

Why?

Too often we've wasted time configuring password protection, with proxy systems like CloudFlare, with apache development machines and nginx production, this removes all the headache and can simply be turned off and on at a whim., (*9)

The Versions

02/06 2017

dev-master

9999999-dev

Laravel 5 Middleware to enforce basic auth on your application code.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel basic-authentication

02/06 2017

0.0.5

0.0.5.0

Laravel 5 Middleware to enforce basic auth on your application code.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel basic-authentication

27/05 2017

0.0.4

0.0.4.0

Laravel 5 Middleware to enforce basic auth on your application code.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel basic-authentication

27/05 2017

0.0.3

0.0.3.0

Laravel 5 Middleware to enforce basic auth on your application code.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel basic-authentication

26/05 2017

0.0.2

0.0.2.0

Laravel 5 Middleware to enforce basic auth on your application code.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel basic-authentication

26/05 2017

0.0.1

0.0.1.0

Laravel 5 Middleware to enforce basic auth on your application code.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Owen Melbourne

laravel basic-authentication