Skip to content

ahmadrezaei/yii2-adaccount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

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
        ],
    ],
    // ...
 ]