Skip to content

Commit

Permalink
customer
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ys committed Apr 9, 2019
1 parent 939cf51 commit 0b3a44d
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 60 deletions.
6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/yii2-authclient.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Qq.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yujiandong\authclient;
namespace c4ys\authclient;

use yii\authclient\OAuth2;
use yii\web\HttpException;
Expand All @@ -19,7 +19,7 @@
* 'class' => 'yii\authclient\Collection',
* 'clients' => [
* 'qq' => [
* 'class' => 'yujiandong\authclient\Qq',
* 'class' => 'c4ys\authclient\Qq',
* 'clientId' => 'qq_appid',
* 'clientSecret' => 'qq_appkey',
* ],
Expand Down
70 changes: 38 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
Yii Authclient for Weibo,QQ,Wechat

**Demo**
http://simpleforum.org/site/login

**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',
],
],
]
// other components
]
```
Yii Authclient for Weibo,QQ,Wechat

**Demo**
http://simpleforum.org/site/login

**Config Setting**

```
'components' => [
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => [
'weibo' => [
'class' => 'c4ys\authclient\Weibo',
'clientId' => 'wb_key',
'clientSecret' => 'wb_secret',
],
'qq' => [
'class' => 'c4ys\authclient\Qq',
'clientId' => 'qq_appid',
'clientSecret' => 'qq_appkey',
],
'weixin' => [
'class' => 'c4ys\authclient\Weixin',
'clientId' => 'weixin_appid',
'clientSecret' => 'weixin_appkey',
],
'weixinmp' => [ // for account of https://mp.weixin.qq.com/
'class' => 'c4ys\authclient\Weixin',
'type' => 'mp',
'clientId' => 'weixin_appid',
'clientSecret' => 'weixin_appkey',
],
],
]
// other components
]
```
4 changes: 2 additions & 2 deletions Weibo.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yujiandong\authclient;
namespace c4ys\authclient;

use yii\authclient\OAuth2;

Expand All @@ -17,7 +17,7 @@
* 'class' => 'yii\authclient\Collection',
* 'clients' => [
* 'weibo' => [
* 'class' => 'yujiandong\authclient\Weibo',
* 'class' => 'c4ys\authclient\Weibo',
* 'clientId' => 'wb_key',
* 'clientSecret' => 'wb_secret',
* ],
Expand Down
6 changes: 3 additions & 3 deletions Weixin.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace yujiandong\authclient;
namespace c4ys\authclient;

use yii\authclient\OAuth2;
use yii\web\HttpException;
Expand All @@ -18,12 +18,12 @@
* 'class' => 'yii\authclient\Collection',
* 'clients' => [
* 'weixin' => [ // for account of https://open.weixin.qq.com/
* 'class' => 'yujiandong\authclient\Weixin',
* 'class' => 'c4ys\authclient\Weixin',
* 'clientId' => 'weixin_appid',
* 'clientSecret' => 'weixin_appkey',
* ],
* 'weixinmp' => [ // for account of https://mp.weixin.qq.com/
* 'class' => 'yujiandong\authclient\Weixin',
* 'class' => 'c4ys\authclient\Weixin',
* 'type' => 'mp',
* 'clientId' => 'weixin_appid',
* 'clientSecret' => 'weixin_appkey',
Expand Down
42 changes: 21 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "yujiandong/yii2-authclient",
"description": "Yii Authclient for Weibo, QQ, Wechat and etc",
"keywords": ["yii authclient","Weibo Auth","QQ Auth","Wechat Auth"],
"homepage": "https://github.com/yujiandong/yii2-authclient",
"license": "MIT",
"authors": [
{
"name": "Yu Jiandong",
"email": "[email protected]",
"homepage": "http://simpleforum.org/",
"role": "Developer"
}
],
"require": {
"yiisoft/yii2-authclient": "~2.0@dev"
},
"autoload": {
"psr-4": {"yujiandong\\authclient\\": ""}
}
}
{
"name": "c4ys/yii2-authclient",
"description": "Yii Authclient for Weibo, QQ, Wechat and etc",
"keywords": ["yii authclient","Weibo Auth","QQ Auth","Wechat Auth"],
"homepage": "https://github.com/c4ys/yii2-authclient",
"license": "MIT",
"authors": [
{
"name": "Yu Jiandong",
"email": "[email protected]",
"homepage": "http://simpleforum.org/",
"role": "Developer"
}
],
"require": {
"yiisoft/yii2-authclient": "~2.0@dev"
},
"autoload": {
"psr-4": {"c4ys\\authclient\\": ""}
}
}

0 comments on commit 0b3a44d

Please sign in to comment.