Tiempo de publicación: domingo, 17 de abril de 2016 (hace 3 años)

Creado por: Семенов Александр Сергеевич

Categoría: Otros

Versión actual: 1.0.0.1
25/1/2019 0:18:31 (hace 10 meses)

Packagist: skeeks/yii2-http-basic-auth

: https://github.com/skeeks-semenov/yii2-http-basic-auth

: 2154 (Por mes: 75)

Tipo: Компонент

Http basic auth for Yii2 project

Latest Stable Version Total Downloads

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"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

CHANGELOG

1.0.0

  • Stable release

todos los comentarios (0)
Sin comentarios

dev-master — 25/1/2019 0:18:31 (hace 10 meses)

dev-add-license-1 — 23/1/2019 20:34:36 (hace 10 meses)

1.0.0.1 — 25/1/2019 0:18:31 (hace 10 meses)

1.0.0 — 17/4/2016 21:52:18 (hace 3 años)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

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

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS