OAuth20:一个简单的OAuth 2.0授权服务器和客户端实现

上传者: 42125770 | 上传时间: 2023-03-28 19:21:37 | 文件大小: 1008KB | 文件类型: ZIP
C#
目录 它是什么? 这个项目的想法是编写一个简单的 OAuth 2.0 授权服务器。 不要期望太多。 它正在逐步发展。 代码看起来不太好。 很多东西都是硬编码的。 它更像是一个简单的概念证明应用程序。 规格 本项目使用以下 RFC 文档作为其实现的规范。 这个想法是尽可能地遵守规范,很少或没有转移。 - OAuth 2.0 授权框架 -JSON Web令牌(JWT) - OAuth 2.0 授权框架:不记名令牌使用 邮递员脚本示例 邮递员脚本将随着代码的进展而更新。 验证访问令牌 该项目使用的访问令牌格式是 JWT 不记名令牌。 因此,您可以在此处验证令牌: https : //www.jsonwebtoken.io/ HMAC 签名摘要中使用的秘密是client_id 。 愚蠢,但这是目前的工作方式。 贡献 我总是欢迎来自社区的 PR。 您可能知道,这个项目是在我的频道h

文件下载

资源详情

[{"title":"( 56 个子文件 1008KB ) OAuth20:一个简单的OAuth 2.0授权服务器和客户端实现","children":[{"title":"OAuth20-master","children":[{"title":"AuthorizationServer","children":[{"title":"Models","children":[{"title":"LoginModel.cs <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"ErrorResponse.cs <span style='color:#111;'> 455B </span>","children":null,"spread":false},{"title":"AccessTokenResponse.cs <span style='color:#111;'> 365B </span>","children":null,"spread":false},{"title":"ErrorTypeEnum.cs <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"GrantType.cs <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true},{"title":"TokenManagement","children":[{"title":"HmacAlgorithm.cs <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"IAuthorizationCodeGenerator.cs <span style='color:#111;'> 152B </span>","children":null,"spread":false},{"title":"IJwtGenerator.cs <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"JwtTokenGenerator.cs <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"JwtToken.cs <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"MockAuthorizationCodeGenerator.cs <span style='color:#111;'> 319B </span>","children":null,"spread":false}],"spread":true},{"title":"AuthorizationServer.csproj <span style='color:#111;'> 534B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"Controllers","children":[{"title":"OAuthController.cs <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"Startup.cs <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"Flows","children":[{"title":"TokenFlows","children":[{"title":"PasswordFlow.cs <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"ClientCredentialsFlow.cs <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"ITokenFlow.cs <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"AuthorizationCodeFlow.cs <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"IGrantFlow.cs <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"FlowResponses","children":[{"title":"FlowResponses.cs <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"IFlowResponses.cs <span style='color:#111;'> 391B </span>","children":null,"spread":false}],"spread":true},{"title":"AuthorizationFlowType.cs <span style='color:#111;'> 133B </span>","children":null,"spread":false},{"title":"IAuthorizationCodeValidator.cs <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"AuthorizationCodeFlow.cs <span style='color:#111;'> 848B </span>","children":null,"spread":false}],"spread":true},{"title":"UserManagement","children":[{"title":"IUserCredentialValidator.cs <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"MockUserCredentialValidator.cs <span style='color:#111;'> 288B </span>","children":null,"spread":false}],"spread":true},{"title":"appsettings.Development.json <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"appsettings.json <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":"IdentityManagement","children":[{"title":"IClientGrantManager.cs <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"IClientManager.cs <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"MockClientManager.cs <span style='color:#111;'> 401B </span>","children":null,"spread":false},{"title":"MockClientGrantManager.cs <span style='color:#111;'> 300B </span>","children":null,"spread":false}],"spread":true},{"title":"Views","children":[{"title":"OAuth","children":[{"title":"AuthorizationLogin.cshtml <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 791B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"assets","children":[{"title":"banner.png <span style='color:#111;'> 976.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"OAuth20.sln <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":".idea","children":[{"title":".idea.OAuth20","children":[{"title":".idea","children":[{"title":"indexLayout.xml <span style='color:#111;'> 203B </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"contentModel.xml <span style='color:#111;'> 4.62KB </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"projectSettingsUpdater.xml <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 38B </span>","children":null,"spread":false}],"spread":true},{"title":"riderModule.iml <span style='color:#111;'> 250B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"ResourceServer","children":[{"title":"Program.cs <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"Controllers","children":[{"title":"ValuesController.cs <span style='color:#111;'> 977B </span>","children":null,"spread":false}],"spread":true},{"title":"Startup.cs <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"appsettings.Development.json <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"ResourceServer.csproj <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"appsettings.json <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 785B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"OAuthClient","children":[{"title":"Program.cs <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"OAuthClient.csproj <span style='color:#111;'> 228B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明