Collectiveshouquan
Others 

所属分类:其他
开发工具:ASP
文件大小:2497KB
下载次数:0
上传日期:2021-04-14 19:08:44
上 传 者羞羞诸
说明:  An open source library integrating third-party login, it can let us get rid of the tedious third-party login SDK, and make login so easy!

文件列表:
CollectiveOAuth (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\appsettings.Development.json (159, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\appsettings.json (602, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\AuthRequestFactory.cs (7651, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Come.AspNetCore.Sample.csproj (263, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Controllers (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Controllers\HomeController.cs (945, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Controllers\OAuth2Controller.cs (2328, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Models (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Models\ErrorViewModel.cs (221, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Program.cs (704, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Properties (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Properties\launchSettings.json (636, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Startup.cs (1530, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\Home (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\Home\Index.cshtml (5886, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\Home\Privacy.cshtml (138, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\Shared (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\Shared\Error.cshtml (859, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\Shared\_Layout.cshtml (1303, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\Shared\_ValidationScriptsPartial.cshtml (174, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\_ViewImports.cshtml (123, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\Views\_ViewStart.cshtml (32, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\74859ed3c048d2f62d27ffb52db3badc.html (137, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\css (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\css\site.css (1346, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\favicon.ico (32038, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\js (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\js\site.js (226, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\lib (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\lib\bootstrap (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\lib\bootstrap\dist (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\lib\bootstrap\dist\css (0, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\lib\bootstrap\dist\css\bootstrap-grid.css (64548, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\lib\bootstrap\dist\css\bootstrap-grid.css.map (151749, 2020-02-03)
CollectiveOAuth\Come.AspNetCore.Sample\wwwroot\lib\bootstrap\dist\css\bootstrap-grid.min.css (48488, 2020-02-03)
... ...

Login-OAuth2, so easy.

star

查看更多
------------------------------------------------------------------------------- ## 版本更新 - 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就是奔着最简单去设计的(见后面`快速开始`),尽量让您用起来没有障碍感! ## 快速开始 - 引入依赖 - 配置授权信息(默认配置在webconfig中, 可以改造存储数据库或者其它任意地方) ```C# ``` - 调用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_XXXXXX_Scope"); AuthRequest authRequest = new GiteeAuthRequest(clientConfig); // 生成授权页面 authRequest.authorize("state"); // 授权登录后会返回code(auth_code(仅限支付宝))、state,可以用AuthCallback类作为回调接口的参数 // 注:CollectiveOAuth默认保存state的时效为5分钟,5分钟内未使用则会自动清除过期的state authRequest.login(callback); ``` #### API列表 | :computer: 平台 | :coffee: API类 | :page_facing_up: SDK | |:------:|:-------:|:-------:| | | [GiteeAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/GiteeAuthRequest.cs) | 参考文档 | | | [GithubAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/GithubAuthRequest.cs) | 参考文档 | | | [WeiboAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/WeiboAuthRequest.cs) | 参考文档 | | | [DingTalkScanAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/DingTalkScanAuthRequest.cs) | 参考文档 | | | [BaiduAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/BaiduAuthRequest.cs) | 参考文档 | | | [CodingAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/CodingAuthRequest.cs) | 参考文档 | | | [OschinaAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/OschinaAuthRequest.cs) | 参考文档 | | | [AlipayMPAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/AlipayMpAuthRequest.cs) | 参考文档 | | | [QQAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/QQAuthRequest.cs) | 参考文档 | | | [WeChatOpenAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/WeChatOpenAuthRequest.cs) | 参考文档 | | | [WeChatMPAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/WeChatMpAuthRequest.cs) | 参考文档 | | | [WeChatEnterpriseAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/WeChatEnterpriseAuthRequest.cs) | 参考文档 | | | [WeChatEnterpriseScanAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/WeChatEnterpriseScanAuthRequest.cs) | 参考文档 | | | [TaobaoAuthRequest] | 参考文档 | | | [GoogleAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/GoogleAuthRequest.cs) | 参考文档 | | | [FacebookAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/FackbookAuthRequest.cs) | 参考文档 | | | [DouYinAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/DouYinAuthRequest.cs) | 参考文档 | | | [LinkedInAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/LinkedinAuthRequest.cs) | 参考文档 | | | [MicrosoftAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/MicrosoftAuthRequest.cs) | 参考文档 | | | [XiaoMiAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/XiaoMiAuthRequest.cs) | 参考文档 | | | [ToutiaoAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/ToutiaoAuthRequest.cs) | 参考文档 | | | [TeambitionAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/TeambitionAuthRequest.cs) | 参考文档 | | | [RenrenAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/RenrenAuthRequest.cs) | 参考文档 | | | [PinterestAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/PinterestAuthRequest.cs) | 参考文档 | | | [StackOverflowAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/StackOverflowAuthRequest.cs) | 参考文档 | | | [HuaweiAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/HuaweiAuthRequest.cs) | 参考文档 | | | [KujialeAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/KujialeAuthRequest.cs) | 参考文档 | | | [GitlabAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/GitlabAuthRequest.cs) | 参考文档 | | | [MeituanAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/MeituanAuthRequest.cs) | 参考文档 | | | [ElemeAuthRequest](https://gitee.com/rthinking/CollectiveOAuth/blob/master/Come.CollectiveOAuth/Request/AuthRequests/ElemeAuthRequest.cs) | 参考文档 | | | [TwitterAuthRequest] | 参考文档 | _请知悉:经咨询CSDN官方客服得知,CSDN的授权开放平台已经下线。如果以前申请过的应用,可以继续使用,但是不再支持申请新的应用。 ## 后续开发计划 正在筹备中 另外,期待有兴趣的你和我一起完善和优化这个项目! ## 贡献代码 1. fork本项目到自己的repo 2. 把fork过去的项目也就是你仓库中的项目clone到你的本地 3. 修改代码 4. commit后push到自己的库 5. 发起PR(pull request) 请求,提交到`dev`分支 6. 等待作者合并 ## 致谢 在项目立项初期,也对当前开源圈的一些相同类型的项目作过调研,同时本项目也参考过这些项目,再次感谢开源圈内的朋友。 - [JustAuth](https://gitee.com/yadong.z ... ...

近期下载者

相关文件


收藏者