yujiandong/yii2-authclient

Yii Authclient for Weibo, QQ, Wechat and etc

1.0 2015-11-03 01:40 UTC

This package is not auto-updated.

Last update: 2024-12-11 19:56:57 UTC


README

Yii Authclient for Weibo,QQ,Wechat,Gitee

Config Setting

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