dnshouse/yii2-authclient-extended

v1.0 2016-09-05 16:16 UTC

README

This is an extended collection of classes for yii2-authclient.

Latest Stable Version Total Downloads Monthly Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist dnshouse/yii2-authclient-extended "*"

or add

"dnshouse/yii2-authclient-extended": "*"

to the require section of your composer.json.

Usage

You must read the yii2-authclient docs

'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'google' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\GoogleOAuth',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'yahoo' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Yahoo',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'live' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Live',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'facebook' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Facebook',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'linkedin' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\LinkedIn',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'twitter' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Twitter',
                'consumerKey' => '',
                'consumerSecret' => '',
            ],
        ],
    ],
 ]