This extension adds MailRu OAuth2 supporting for yii2-authclient.
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.
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
],
],
// ...
]