asp.net 跨域单点登录源码

上传者: slimboy123 | 上传时间: 2026-04-03 16:13:33 | 文件大小: 43KB | 文件类型: RAR
asp.net 跨域单点登录实现原理: 当用户第一次访问web应用系统1的时候,因为还没有登录,会被引导到认证中心进行登录;根据用户提供的登录信息,认证系统进行身份效验,如果 通过效验,返回给用户一个认证的凭据;用户再访问别的web应用的时候就会将这个Token带上,作为自己认证的凭据,应用系统接受到请求之后会把 Token送到认证中心进行效验,检查Token的合法性。如果通过效验,用户就可以在不用再次登录的情况下访问应用系统2和应用系统3了。所有应用系 统共享一个身份认证系统。认证系统的主要功能是将用户的登录信息和用户信息库相比较,对用户进行登录认证;认证成功后,认证系统应该生成统 一的认证标志,返还给用户。另外,认证系统还应该对Token进行效验,判断其有效性。 所有应用系统能够识别和提取Token信息要实现SSO的功能, 让用户只登录一次,就必须让应用系统能够识别已经登录过的用户。应用系统应该能对Token进行识别和提取,通过与认证系统的通讯,能自动判断当 前用户是否登录过,从而完成单点登录的功能。 asp.net 跨域单点登录实现。源码分为3个站点:一个总站,即认证中心,用来登录。http://localhost/MasterSite/Default.aspx 2个分站http://localhost/Site1/Default.aspx http://localhost/Site2/Default.aspx (当然你也可以新建站点,修改hosts表,配置成 http://www.MasterSite.com http://www.Site1.com http://www.Site2.com 的形式)

文件下载

资源详情

[{"title":"( 37 个子文件 43KB ) asp.net 跨域单点登录源码","children":[{"title":"SSO","children":[{"title":"MasterSite","children":[{"title":"App_Code","children":[{"title":"PostService.cs <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"CryptoHelper.cs <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"Authentication.cs <span style='color:#111;'> 7.70KB </span>","children":null,"spread":false},{"title":"CryptoService.cs <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"SSORequest.cs <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"Web.config <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"App_Data","children":null,"spread":false},{"title":"Default.aspx <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"Default.aspx.cs <span style='color:#111;'> 5.57KB </span>","children":null,"spread":false},{"title":"SiteList.aspx.cs <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"SiteList.aspx <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"Bin","children":null,"spread":false}],"spread":true},{"title":"SSO.suo <span style='color:#111;'> 24.50KB </span>","children":null,"spread":false},{"title":"SSO.sln <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"PrecompiledWeb","children":[{"title":"MasterSite","children":[{"title":"bin","children":[{"title":"App_Code.dll <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"App_Web_yvga5pul.dll <span style='color:#111;'> 8.50KB </span>","children":null,"spread":false},{"title":"App_Code.compiled <span style='color:#111;'> 168B </span>","children":null,"spread":false}],"spread":true},{"title":"Web.config <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"Default.aspx <span style='color:#111;'> 577B </span>","children":null,"spread":false},{"title":"SiteList.aspx <span style='color:#111;'> 676B </span>","children":null,"spread":false},{"title":"PrecompiledApp.config <span style='color:#111;'> 49B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Site1","children":[{"title":"App_Code","children":[{"title":"PostService.cs <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"CryptoHelper.cs <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"Authentication.cs <span style='color:#111;'> 7.78KB </span>","children":null,"spread":false},{"title":"CryptoService.cs <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"SSORequest.cs <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"Web.config <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"Default2.aspx <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"App_Data","children":null,"spread":false},{"title":"Default.aspx <span style='color:#111;'> 715B </span>","children":null,"spread":false},{"title":"Default.aspx.cs <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"Default2.aspx.cs <span style='color:#111;'> 409B </span>","children":null,"spread":false}],"spread":true},{"title":"Site2","children":[{"title":"App_Code","children":[{"title":"PostService.cs <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"CryptoHelper.cs <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"Authentication.cs <span style='color:#111;'> 7.78KB </span>","children":null,"spread":false},{"title":"CryptoService.cs <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"SSORequest.cs <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"Web.config <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"App_Data","children":null,"spread":false},{"title":"Default.aspx <span style='color:#111;'> 712B </span>","children":null,"spread":false},{"title":"Default.aspx.cs <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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