lonelythinker/yii2-authclient

Yii2 authclient extension

Installs: 28

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Open Issues: 0

Type:yii2-extension

pkg:composer/lonelythinker/yii2-authclient

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

This package is not auto-updated.

Last update: 2025-10-20 12:21:41 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
]