isudakoff/yii2-mailru-authclient

MailRu extension for using via yii2-authclient

1.0.1 2017-08-25 08:44 UTC

This package is auto-updated.

Last update: 2024-04-29 03:53:29 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
        ],
    ],
    // ...
 ]