kolyunya / yii2-http-authorization
Yii2 HTTP authorization filter.
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
This package is auto-updated.
Last update: 2024-12-11 00:53:38 UTC
README
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' ] ] ]; }