ahmadrezaei/yii-adaccount

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.1 2018-01-15 10:18 UTC

This package is auto-updated.

Last update: 2024-04-08 21:57:11 UTC


README

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ahmadrezaei/yii-adaccount "*"

or add

"ahmadrezaei/yii-adaccount": "*"

to the require section of your composer.json.

Usage

You must read the yii2-authclient docs

and add the adaccount client to your auth clients.

'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'adaccount' => [
                'class' => 'ahmadrezaei\yii\authclient\Adaccount',
                    'clientId' => 'adaccount_client_id',
                    'clientSecret' => 'adaccount_client_secret',
                ],
            ],
            // other clients
        ],
    ],
    // ...
 ]