<p align="center">
<a href="#"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/logo.png" width="400"></a>
</p>
<p align="center">
<strong>Login-OAuth2, so easy.</strong>
</p>
<p align="center">
<a target="_blank" href="https://gitee.com/rthinking/CollectiveOAuth/blob/master/LICENSE">
<img src="https://img.shields.io/apm/l/vim-mode.svg?color=yellow" ></img>
</a>
<a>
<img src="https://img.shields.io/badge/Api Docs-1.13.2-orange.svg" ></img>
</a>
<a>
<img src="https://img.shields.io/badge/Docs-latest-blueviolet.svg" ></img>
</a>
<a href='https://gitee.com/rthinking/CollectiveOAuth/stargazers'>
<img src='https://gitee.com/rthinking/CollectiveOAuth/badge/star.svg?theme=white' alt='star'></img>
</a>
</p>
<center>
<table>
<tr>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/gitee.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/github.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/weibo.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/dingtalk.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/baidu.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/coding.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/tencentCloud.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/oschina.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/alipay.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/qq.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/wechat.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/taobao.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/google.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/facebook.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/douyin.png" width="20"></td>
</tr>
</table>
<table>
<tr>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/linkedin.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/microsoft.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/mi.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/toutiao.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/teambition.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/renren.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/pinterest.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/stackoverflow.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/huawei.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/wechat.png" width="20" title="微信企业版"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/csdn.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/kujiale.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/gitlab.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/meituan.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/eleme.png" width="20"></td>
<td align="center" width="200"><img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/twitter.png" width="20"></td>
</tr>
</table>
<center><a href="#" target="_blank">查看更多</a></center>
</center>
-------------------------------------------------------------------------------
## 版本更新
- 2020-02-01 重新构建类库 => 现支持 **.NET Framework 4.5 ~ 4.6.2** 和 **.NetCore 3.1**
## 开发计划
- 添加 推特、淘宝 三方授权
- 重构.NetCore 3.1环境下缓存使用方式
- ...
## 特别感谢
**JustAuth**:这里特别感谢JustAuth开源项目作者提供架构思路
.Net平台下 **CollectiveOAuth**,它仅仅是一个 **第三方授权登录**的**工具类库**,它可以让我们脱离繁琐的第三方登录SDK,让登录变得**So easy!**
- 项目开源地址:[Gitee(https://gitee.com/rthinking/CollectiveOAuth)](https://gitee.com/rthinking/CollectiveOAuth)
- 项目开源地址:[Github(https://github.com/fuwei54321/CollectiveOAuth)](https://github.com/fuwei54321/CollectiveOAuth)
- 项目文档:[参考文档(https://codoc.rthinkingsoft.cn)](https://codoc.rthinkingsoft.cn)
## 特点
废话不多说,就俩字:
1. **全**:已集成二十多家第三方平台(国内外常用的基本都已包含),仍然还在持续扩展中!
2. **简**:API就是奔着最简单去设计的(见后面`快速开始`),尽量让您用起来没有障碍感!
## 快速开始
- 引入依赖
<img src="https://gitee.com/rthinking/auth_files/raw/master/CollectiveOAuth/depend-on.jpg" width="600"></img>
- 配置授权信息(默认配置在webconfig中, 可以改造存储数据库或者其它任意地方)
```C#
<!--Demo: 微信服务号授权配置-->
<add key="CollectiveOAuth_WECHAT_MP_ClientId" value="wxer6785660834656" />
<add key="CollectiveOAuth_WECHAT_MP_ClientSecret" value="98967867678678678546434345344" />
<add key="CollectiveOAuth_WECHAT_MP_Scope" value="snsapi_userinfo" />
<add key="CollectiveOAuth_WECHAT_MP_RedirectUri" value="https://yours.domain.com/oauth2/callback?authSource=WECHAT_MP" />
```
- 调用api
```C#
// 创建授权request
var clientConfig = new ClientConfig();
clientConfig.clientId = AppSettingUtils.GetStrValue($"CollectiveOAuth_XXXXXX_ClientId");
clientConfig.clientSecret = AppSettingUtils.GetStrValue($"CollectiveOAuth_XXXXXX_ClientSecret");
clientConfig.redirectUri = AppSettingUtils.GetStrValue($"CollectiveOAuth_XXXXXX_RedirectUri");
clientConfig.scope = AppSettingUtils.GetStrValue($"CollectiveOAuth_XXXX
没有合适的资源?快使用搜索试试~ 我知道了~
CollectiveOAuth第三方授权框架 v2.0.1.zip
共204个文件
cs:104个
js:26个
map:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 162 浏览量
2024-03-18
21:27:39
上传
评论
收藏 2.44MB ZIP 举报
温馨提示
CollectiveOAuth第三方授权框架 v2.0.1.zip
资源推荐
资源详情
资源评论
收起资源包目录
CollectiveOAuth第三方授权框架 v2.0.1.zip (204个子文件)
Global.asax 106B
Web.config 14KB
Web.config 2KB
packages.config 2KB
Web.Release.config 1KB
Web.Debug.config 1KB
GlobalAuthUtil.cs 17KB
TwitterBase.cs 16KB
ElemeAuthRequest.cs 11KB
HttpUtils.cs 10KB
TwitterOAuthClient.cs 9KB
LinkedinAuthRequest.cs 9KB
DefaultAuthRequest.cs 8KB
ArrayExtensions.cs 8KB
StringExtensions.cs 8KB
EnumExtensions.cs 8KB
AuthRequestFactory.cs 7KB
AuthRequestFactory.cs 7KB
TwitteAuthRequest.cs 7KB
ConfigurationManager.cs 7KB
HuaweiAuthRequest.cs 7KB
MicrosoftAuthRequest.cs 7KB
WeChatMpAuthRequest.cs 6KB
WeChatOpenAuthRequest.cs 6KB
DouYinAuthRequest.cs 6KB
XiaoMiAuthRequest.cs 6KB
WeChatEnterpriseAuthRequest.cs 6KB
WeChatEnterpriseScanAuthRequest.cs 5KB
QQAuthRequest.cs 5KB
BaiduAuthRequest.cs 5KB
ToutiaoAuthRequest.cs 5KB
KujialeAuthRequest.cs 5KB
AlipayMpAuthRequest.cs 4KB
RenrenAuthRequest.cs 4KB
AuthChecker.cs 4KB
MeituanAuthRequest.cs 4KB
TeambitionAuthRequest.cs 4KB
PinterestAuthRequest.cs 4KB
WeiboAuthRequest.cs 4KB
GoogleAuthRequest.cs 4KB
CodingAuthRequest.cs 4KB
HttpRuntimeCache.cs 4KB
StackOverflowAuthRequest.cs 4KB
OschinaAuthRequest.cs 4KB
GitlabAuthRequest.cs 4KB
GithubAuthRequest.cs 4KB
FackbookAuthRequest.cs 3KB
DingTalkScanAuthRequest.cs 3KB
GiteeAuthRequest.cs 3KB
UrlBuilder.cs 3KB
OAuth2Controller.cs 2KB
OAuth2Controller.cs 2KB
IAuthRequest.cs 2KB
IAuthSource.cs 2KB
DefaultAuthSourceEnum.cs 2KB
ClientConfig.cs 2KB
AuthUser.cs 2KB
AuthToutiaoErrorCode.cs 2KB
Startup.cs 1KB
AssemblyInfo.cs 1KB
AuthToken.cs 1KB
BundleConfig.cs 1KB
DefaultAuthStateCache.cs 1KB
AuthResponseStatus.cs 1KB
AuthCallback.cs 1KB
WechatEnterpriseAuthSource.cs 993B
IAuthStateCache.cs 973B
HomeController.cs 945B
WechatEnterpriseScanAuthSource.cs 932B
BaiduAuthSource.cs 929B
MicrosoftAuthSource.cs 919B
DingTalkScanAuthSource.cs 918B
MeituanAuthSource.cs 908B
WechatMPAuthSource.cs 905B
WechatOpenAuthSource.cs 902B
EnumObject.cs 898B
TeambitionAuthSource.cs 895B
HuaweiAuthSource.cs 890B
OschinaAuthSource.cs 882B
KujialeAuthSource.cs 882B
AlipayMPAuthSource.cs 881B
LinkedInAuthSource.cs 877B
XiaoMiAuthSource.cs 877B
DouYinAuthSource.cs 872B
GoogleAuthSource.cs 872B
StackOverflowAuthSource.cs 872B
FackbookAuthSource.cs 865B
TwitterAuthSource.cs 863B
CodingAuthSource.cs 862B
WeiboAuthSource.cs 857B
AuthResponse.cs 856B
ToutiaoAuthSource.cs 854B
RenrenAuthSource.cs 849B
PinterestAuthSource.cs 844B
ElemeAuthSource.cs 843B
GithubAuthSource.cs 843B
QQAuthSource.cs 842B
RouteConfig.cs 831B
TaobaoAuthSource.cs 830B
GitlabAuthSource.cs 827B
共 204 条
- 1
- 2
- 3
资源评论
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功