kotchuprik / yii2-odnoklassniki-authclient
Installs: 88 945
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 4
Forks: 11
Open Issues: 3
Requires
- yiisoft/yii2-authclient: ~2.0@dev
This package is not auto-updated.
Last update: 2024-11-14 15:57:33 UTC
README
This extension adds Odnoklassniki OAuth2 supporting for yii2-authclient.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist kotchuprik/yii2-odnoklassniki-authclient "*"
or add
"kotchuprik/yii2-odnoklassniki-authclient": "*"
to the require
section of your composer.json.
Usage
You must read the yii2-authclient docs
Register your application in Odnoklassniki
and add the Odnoklassniki client to your auth clients.
'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'odnoklassniki' => [ 'class' => 'kotchuprik\authclient\Odnoklassniki', 'applicationKey' => 'odnoklassniki_app_public_key', 'clientId' => 'odnoklassniki_app_id', 'clientSecret' => 'odnoklassniki_client_secret', ], ], // other clients ], ], // ... ]