Skip to content

Commit

Permalink
Merge pull request #161 from doododo/master
Browse files Browse the repository at this point in the history
add feishu to initial drivers
  • Loading branch information
overtrue committed May 3, 2020
2 parents f9d9050 + d8fa317 commit 0011645
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -82,7 +82,7 @@ $user->getProviderName(); // GitHub

Now we support the following sites:

`facebook`, `github`, `google`, `linkedin`, `outlook`, `weibo`, `taobao`, `qq`, `wechat`, `douyin`, and `douban`.
`facebook`, `github`, `google`, `linkedin`, `outlook`, `weibo`, `taobao`, `qq`, `wechat`, `douyin`, `baidu`, `feishu`, and `douban`.

Each driver uses the same configuration keys: `client_id`, `client_secret`, `redirect`.

Expand Down Expand Up @@ -254,6 +254,7 @@ Enjoy it! :heart:
- [微信开放平台 - 代公众号发起网页授权](https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419318590&token=&lang=zh_CN)
- [豆瓣 - OAuth 2.0 授权机制说明](http://developers.douban.com/wiki/?title=oauth2)
- [抖音 - 网站应用开发指南](http://open.douyin.com/platform/doc)
- [飞书 - 授权说明](https://open.feishu.cn/document/ukTMukTMukTM/uMTNz4yM1MjLzUzM)

## PHP 扩展包开发

Expand Down
2 changes: 1 addition & 1 deletion src/Providers/FeiShuProvider.php
Expand Up @@ -172,7 +172,7 @@ protected function getUserByToken(AccessTokenInterface $token)

$result = json_decode($response->getBody(), true);

return $result['data'] ?? '';
return $result['data'];
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/SocialiteManager.php
Expand Up @@ -60,6 +60,7 @@ class SocialiteManager implements FactoryInterface
'outlook' => 'Outlook',
'douyin' => 'DouYin',
'taobao' => 'Taobao',
'feishu' => 'FeiShu',
];

/**
Expand Down

0 comments on commit 0011645

Please sign in to comment.