yagas/yii2-actionfilter-rsa

RSA Verify Filter

1.0.0 2021-10-22 20:19 UTC

This package is auto-updated.

Last update: 2024-03-23 12:11:04 UTC


README

RSA Verify Filter

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yagas/yii2-actionfilter-rsa "*"

or add

"yagas/yii2-actionfilter-rsa": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

SiteController extends Controller {
    public function behaviors()
    {
      return [
        'rsa_filter' => [
            'class' => ActionFilterRsa::class,
            'publicKey' => '@app/runtime/resource/publicKey.pem',
            'funHandle' => new MyHandle()
        ]
      ];
    }
}