isudakoff / yii2-mailru-authclient
MailRu extension for using via yii2-authclient
Installs: 8 883
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 3
Open Issues: 1
Requires
- yiisoft/yii2-authclient: ~2.0@dev
This package is auto-updated.
Last update: 2024-10-29 05:16:21 UTC
README
This extension adds MailRu OAuth2 supporting for yii2-authclient.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist isudakoff/yii2-mailru-authclient "*"
or add
"isudakoff/yii2-mailru-authclient": "*"
to the require
section of your composer.json.
Usage
You must read the yii2-authclient docs
Register your application in MailRu
and add the MailRu client to your auth clients.
'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'mailru' => [ 'class' => 'isudakoff\authclient\MailRu', 'clientId' => 'mailru_app_id', 'clientSecret' => 'mailru_app_secret', ], // other clients ], ], // ... ]