rocket-firm/yii2-rocketauth-authclient

RocketAuth extension for using via yii2-authclient

v0.1 2018-12-21 04:49 UTC

This package is auto-updated.

Last update: 2024-11-10 21:06:53 UTC


README

This extension adds RocketAuth OAuth2 supporting for yii2-authclient.

Installation

The preferred way to install this extension is through composer.

Either run

composer require rocket-firm/yii2-rocketauth-authclient

or add

"rocket-firm/yii2-rocketauth-authclient": "^0.1"

to the require section of your composer.json.

Usage

You must read the yii2-authclient docs

Register your application in RocketAuth

and add the RocketAuth client to your auth clients.

'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'rocketauth' => [
                'class' => 'rocketfirm\authclient\RocketAuth',
                'clientId' => 'rocketauth_client_id',
                'clientSecret' => 'rocketauth_client_secret',
            ],
            // other clients
        ],
    ],
    // ...
 ]