esp4ik/yii2-authclient-extended

Additional clients for Yii2 authclient: Instagram and etc

1.1.1 2018-02-19 13:39 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:51:32 UTC


README

Additional clients for Yii2 authclient: Instagram, Odnoklassniki and etc


This repository contains an additional clients for Yii2 Auth Client.

For license information check the LICENSE-file.

List of additional clients:

  • Instagram
  • Odnoklassniki

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist esp4ik/yii2-authclient-extended

or add

"esp4ik/yii2-authclient-extended": "~1.1.0"

to the require section of your composer.json.

Configuring application

Full documentation see at Yii2 Auth Client

After extension is installed you need to setup auth client collection application component:

return [
    'components' => [
        'authClientCollection' => [
            'class' => 'yii\authclient\Collection',
            'clients' => [
                'instagram' => [
                    'class' => 'esp4ik\authclient\clients\Instagram',
                    'clientId' => 'instagram_client_id',
                    'clientSecret' => 'instagram_client_secret',
                ],
                'odnoklassniki' => [
                    'class' => 'esp4ik\authclient\clients\Odnoklassniki',
                    'clientId' => 'odnoklassniki_application_id',
                    'clientSecret' => 'odnoklassniki_secret_key',
                    'applicationId' => 'odnoklassniki_public_key',
                ],
                // ...
            ],
        ]
        // ...
    ],
    // ...
];