Skip to content

Kolyunya/yii2-http-authorization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'].

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

About

Yii2 HTTP authorization filter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages