Installation
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require --prefer-dist ahmadrezaei/yii-adaccount "*"
or add, (*3)
"ahmadrezaei/yii-adaccount": "*"
to the require
section of your composer.json., (*4)
Usage
You must read the yii2-authclient docs, (*5)
and add the adaccount client to your auth clients., (*6)
php
'components' => [
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => [
'adaccount' => [
'class' => 'ahmadrezaei\yii\authclient\Adaccount',
'clientId' => 'adaccount_client_id',
'clientSecret' => 'adaccount_client_secret',
],
],
// other clients
],
],
// ...
]
, (*7)