2017 © Pedro Peláez
 

yii2-extension yii2-http-authorization

Yii2 HTTP authorization filter.

image

kolyunya/yii2-http-authorization

Yii2 HTTP authorization filter.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Yii2 HTTP authorization filter.

Usage example

Users credentials are represented as an associative array which may be defined in two different ways. You may either specify the users property of the filter or the application parameter Yii::$app->params['users']., (*1)

public function behaviors()
{
    return
    [
        [
            'class' => 'kolyunya\yii2\filters\HttpAuthorization',
            'users' =>
            [
                'user-1' => 'password-1',
                'user-2' => 'password-2'
            ]
        ]
    ];
}

The Versions

14/11 2014

dev-master

9999999-dev https://github.com/Kolyunya/yii2-http-authorization

Yii2 HTTP authorization filter.

  Sources   Download

GNU GPL v3.0

authorization extension filter yii2 http basic-authorization