dkorzhenkov/yii2-token-auth-filter

There is no license information available for the latest version (v1.1.0) of this package.

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dkorzhenkov/yii2-token-auth-filter

v1.1.0 2025-05-12 10:34 UTC

This package is auto-updated.

Last update: 2025-12-12 11:59:03 UTC


README

composer require dkorzhenkov/yii2-token-auth-filter
class AbcController extends Controller
{
    public function behaviors()
    {
        return array_merge(parent::behaviors(), [
            'authorizationByToken' => [
                'class' => TokenAuthorization::class,
                'allowedTokens' => [
                    'xxx'
                ]
            ],
        ]);
    }
}