定制 owenmelbz/basic-auth-enforcement 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

owenmelbz/basic-auth-enforcement

Composer 安装命令:

composer require owenmelbz/basic-auth-enforcement

包简介

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

README 文档

README

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.

Usage

  1. Install via composer composer require owenmelbz/basic-auth-enforcement

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

  3. Add ENFORCE_BASIC_AUTH=true to your application environment config e.g .env

  4. Add your username BASIC_AUTH_USER=username

  5. Add your password BASIC_AUTH_PASSWORD=password

  6. Enjoy your stress free environment agnostic basic auth.

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.

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.

统计信息

  • 总下载量: 4.99k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固