Skip to content

kerstvo/yii2-odnoklassniki-authclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-odnoklassiniki-authclient

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',
                    //'scope' => 'VALUABLE_ACCESS;LONG_ACCESS_TOKEN;GET_EMAIL', /* https://apiok.ru/en/ext/oauth/permissions */
                    //'fields' => 'name,email'
                ],
            ],
            // other clients
        ],
    ],
    // ...
 ]

About

Instagram extenion for using via yii2-authclient

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%