, (*1)
Additional clients for Yii2 authclient: Instagram, Odnoklassniki and etc
This repository contains an additional clients for Yii2 Auth Client., (*2)
For license information check the LICENSE-file., (*3)
List of additional clients:
- Instagram
- Odnoklassniki, (*4)
Installation
The preferred way to install this extension is through composer., (*5)
Either run, (*6)
php composer.phar require --prefer-dist esp4ik/yii2-authclient-extended
or add, (*7)
"esp4ik/yii2-authclient-extended": "~1.1.0"
to the require section of your composer.json., (*8)
Configuring application
Full documentation see at Yii2 Auth Client, (*9)
After extension is installed you need to setup auth client collection application component:, (*10)
return [
'components' => [
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => [
'instagram' => [
'class' => 'esp4ik\authclient\clients\Instagram',
'clientId' => 'instagram_client_id',
'clientSecret' => 'instagram_client_secret',
],
'odnoklassniki' => [
'class' => 'esp4ik\authclient\clients\Odnoklassniki',
'clientId' => 'odnoklassniki_application_id',
'clientSecret' => 'odnoklassniki_secret_key',
'applicationId' => 'odnoklassniki_public_key',
],
// ...
],
]
// ...
],
// ...
];