This repository contains an additional clients for Yii2 Auth Client.
For license information check the LICENSE-file.
List of additional clients:
- Odnoklassniki
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist esp4ik/yii2-authclient-extended
or add
"esp4ik/yii2-authclient-extended": "~1.1.0"
to the require section of your composer.json.
Full documentation see at Yii2 Auth Client
After extension is installed you need to setup auth client collection application component:
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',
],
// ...
],
]
// ...
],
// ...
];