dkorzhenkov/yii2-token-auth-filter

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

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

This package is auto-updated.

Last update: 2025-06-12 10:48:58 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'
                ]
            ],
        ]);
    }
}