2017 © Pedro Peláez
 

yii2-extension yii2-http-basic-auth

Http basic auth for Yii2 project

image

skeeks/yii2-http-basic-auth

Http basic auth for Yii2 project

  • Saturday, September 16, 2017
  • by skeeks-semenov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,213 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 34 % Grown

The README.md

Http basic auth for Yii2 project

Latest Stable Version Total Downloads, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist skeeks/yii2-http-basic-auth "*"

or add, (*4)

"skeeks/yii2-http-basic-auth": "*"

Configuration app

Exemple 1


'on beforeRequest' => function ($event) { \Yii::$app->httpBasicAuth->verify(); }, 'components' => [ 'httpBasicAuth' => [ 'class' => 'skeeks\yii2\httpBasicAuth\HttpBasicAuthComponent', 'login' => 'login', 'password' => 'password', 'usePasswordHash' => false, //optionality 'viewFail' => '@app/views/http-basic-auth-fail' //optionality ], ]

Exemple 2


'on beforeRequest' => function ($event) { //For example in addition to close the admin panel http authorization if (\Yii::$app->admin->requestIsAdmin) { \Yii::$app->httpBasicAuth->verify(); } }, 'components' => [ 'httpBasicAuth' => [ 'class' => 'skeeks\yii2\httpBasicAuth\HttpBasicAuthComponent', 'login' => 'login', 'password' => 'password', ], ]

skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com, (*5)

The Versions

16/09 2017

dev-master

9999999-dev http://cms.skeeks.com/

Http basic auth for Yii2 project

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework component yii skeeks http-basic-auth

17/04 2016

1.0.0

1.0.0.0 http://cms.skeeks.com/

Http basic auth for Yii2 project

  Sources   Download

GPL-3.0+

The Requires

 

by Semenov Alexander

framework component yii skeeks http-basic-auth