Skip to content

isudakoff/yii2-mailru-authclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-mailru-authclient

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
        ],
    ],
    // ...
 ]

About

MailRu OAuth2 supporting for yii2

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages