lonelythinker/yii2-authclient

Yii2 authclient extension

dev-master 2018-06-08 14:38 UTC

This package is not auto-updated.

Last update: 2024-10-21 07:17:03 UTC


README

"yii authclient","QQ Auth","Wechat Auth","Weibo Auth"

Config Setting

'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'qq' => [
                'class' => 'lonelythinker\yii2\authclient\Qq',
                'clientId' => 'qq_appid',
                'clientSecret' => 'qq_appkey',
            ],
            'weixin' => [
                'class' => 'lonelythinker\yii2\authclient\Weixin',
                'clientId' => 'weixin_appid',
                'clientSecret' => 'weixin_appkey',
            ],
            'weibo' => [
                'class' => 'lonelythinker\yii2\authclient\Weibo',
                'clientId' => 'wb_key',
                'clientSecret' => 'wb_secret',
            ],
        ],
    ]
    // other components
]