esp4ik / yii2-authclient-extended
Additional clients for Yii2 authclient: Instagram and etc
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2-authclient: 2.1.*
This package is not auto-updated.
Last update: 2024-11-10 05:51:32 UTC
README
Additional clients for Yii2 authclient: Instagram, Odnoklassniki and etc
This repository contains an additional clients for Yii2 Auth Client.
For license information check the LICENSE-file.
List of additional clients:
- Odnoklassniki
Installation
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.
Configuring application
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', ], // ... ], ] // ... ], // ... ];