SlideShare uma empresa Scribd logo
1 de 49
新一代身份驗證機制   - Windows Card Space 曹祖聖 台灣微軟資深講師 [email_address] http://teacher.allok.com.tw MCP, MCP+I, MCSA, MCSE,MCDBA, MCAD, MCSD, MCT, MVP
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
身份識別上面臨的問題 ,[object Object],[object Object],[object Object],[object Object],www.antiphishing.org 22%  不購買 25%  不瀏覽
我們需要什麼  ? ,[object Object],[object Object],[object Object],簡單、一致、安全的身份識別系統
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
IIS 7.0  存取控制 ,[object Object],[object Object],[object Object],[object Object],[object Object]
身份驗證介紹 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],匿名 基本 摘要 Kerberos NTLM Server Core
IIS 7.0  身份驗證流程 NTLM Basic Anonymous IIS Server Core Kerberos Digest Request received by IIS Authentication Providers Passport
Client IIS  伺服器 default.htm Web  瀏覽器 匿名驗證流程
匿名驗證帳號 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
基本驗證流程 IIS  伺服器 default.htm Web  瀏覽器 Base64  編碼的 使用者名稱和密碼 401 Error
基本驗證 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
整合式  Windows  驗證 Negotiate Kerberos NTLM  ,[object Object],[object Object],要求 首先試試 接下來再試
整合式  Windows  驗證 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NTLM  的行為 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NTLM  的安全性 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NTLM  的驗證過程 Get /Default.HTM Get /Default.HTM w/ AuthNTLM Get /Default.HTM w/ AuthNTLM Hashed 401 – WWW Auth:  NTLM 200 - OK 401 – Access Denied Client Client IIS Server IIS Server
Kerberos ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Kerberos ,[object Object],[object Object],[object Object],[object Object],[object Object]
Kerberos  運作機制 IIS  啓動後,當伺服器跟  KDC  做驗證成功後,會取得  ticket Ticket Granting Services Domain Controller  (KDC) IIS Server
Kerberos  運作機制 用戶端向  KDC  要求 存取  IIS  的的  ticket 如果  IIS  是  AD  成員,  KDC  會發出  shared key 用戶端使用匿名身份連線至  IIS IIS  回傳  401  錯誤,加上  WWWAuth  標頭,要求進行協調 用戶端使用這支  shared key  來建立雜湊碼,並且傳送到  IIS IIS  使用  shared key  來檢查密碼是否正確 Shared Domain Controller (KDC) IIS Server
摘要式驗證流程 IIS  伺服器 網域控制站 Active Directory  資料庫 Web  瀏覽器
摘要式驗證 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
進階式摘要式驗證 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
憑證驗證 ,[object Object],[object Object],Web Server Domain Controller Client Request: Welcome.aspx Response: Certificate request Response: Welcome.aspx Request: Login.aspx + Certificate Certificate  Validation
IIS 7.0  驗證比較表
IIS  與  ASP.NET  身份驗證流程 IIS Web  瀏覽器 允許該  IP address  和  domain? 使用者身份驗證通過  ? 否 是 是 否 有 有設定  ASP.NET impersonation ? 沒有 ACL  檢查通過  ? 否 是 ASP.NET 執行  ASP.NET  程式 拒絕存取 使用指定帳號 允許存取 使用應用 程式集區帳號
ASP.NET Authentication Providers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],<!-- web.config file --> <authentication  mode = &quot;[Windows|Forms|Passport|None]&quot;>  </authentication>
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
CardSpace  的目標 ,[object Object],[object Object],[object Object],[object Object]
.NET Passport ? ,[object Object],[object Object],[object Object]
什麼是  Windows CardSpace ? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Security Token Service 使用者 經驗 服務 提供者
[object Object],[object Object],Windows CardSpace 安全 架構在  WS-* Web Service  通訊協定之上 ,[object Object],[object Object],[object Object],[object Object],簡單
demo 管理  Windows CardSpace
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
真實世界的  STS STS token token STS token token RP
CardSpace  運作流程 Identity Provider (IP) Security Token Service (STS) Relying Party (RP) Client 使用者要存取某項資源 RP  提出身份識別要求 1 2 使用者 3 檢查那些  IPs  可以滿足要求  ? 使用者選擇  IP 4 5 向該  IP  要求  token 6 根據  RP  要需求傳回  token 7 使用者決定可以送出  token 8 Token  送交給  RP
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],選擇卡片 – 安全性
demo 使用  Windows CardSpace  登入網站
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Federation by STS Fabrikam Contoso AD/STS Contosoisa Fabrikam App Linux   STS “ 能不能幫我 …” “ 先從  Fabrikam STS  拿到  token  再說  !” “ 請給我一個  Fabrikam  token !” “ 請出示您的身份  !” “ 請給我一個  token !” “ 請出示您的身份  !” “ Lisa  您好,有什麼可以為您服務的嗎  ?” SAML SAML Fabrikam Fabrikam
網站應用 前端  Web  網站 網站 Identity Provider STS Relying Party HTTP/GET  ( 保護頁面 )      轉向到登入頁面 1 HTTP/GET  ( 登入頁面 )   2 登入頁面  (HTML)  +  x-informationcard  標籤 5 HTTP/GET|POST  目標頁面  + token 透過  WS-Mex  與  WS-Trust  取得  token 4 客戶資料庫 6 使用者選擇卡片 3
網站應用 – 減少對網站的影響 前端  Web  網站 STS 網站 Identity Provider STS Relying Party HTTP/GET  ( 保護的頁面 )      轉向到登入頁面 1 傳出登入頁面  HTML HTTP/GET  ( 登入頁面 )   2 HTTP/GET|POST  目標頁面  + token 8 3 WS-Mex 透過  WS-Trust/RST  傳送  token 透過  WS-Trust/RSTR  取得  token 6 5 透過  WS-Mex  與  WS-Trust  取得  token 客戶資料庫 7 使用者選擇卡片 4
大綱 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Login Page < button   onclick =&quot;javascript:return infocardlogin.submit();&quot;> Sign in with your Information Card </ button > < form   name =&quot;infocardlogin&quot;   target =&quot;_self&quot;   method =&quot;post&quot;> < object   type =&quot;application/x-informationcard&quot;   name =&quot;xmlToken&quot;> < param   name =&quot;tokenType&quot;   value =&quot;urn:oasis:names:tc:SAML:1.0:assertion&quot; > < param   name =&quot;issuer&quot;  value =&quot;http://schemas..../identity/issuer/self&quot; > < param   name =&quot;requiredClaims&quot;   value =&quot;http://.../claims/givenname, http://.../claims/surname,   http://../claims/emailaddress, http://.../claims/privatepersonalidentifier&quot; > </ object > </ form > public   partial   class   Login_aspx  : System.Web.UI. Page { protected   void  Page_Load( object  sender,  EventArgs  e) { string  xmlToken = Request[ &quot;xmlToken&quot; ]; Token  token =  new   TokenProcessor . Token (xmlToken); // Lookup the account using the uniqueId string  username =  MembershipHelper .GetUser(token.UniqueID); if  (username !=  null )  { MembershipUser  user =  Membership .GetUser(username); // give the cookie back to the browser FormsAuthentication .SetLoginCookie(user.UserName,  false ); } }  }
結論 ,[object Object],[object Object],[object Object]
在何處取得   TechNet   相關資訊? ,[object Object],[object Object],[object Object],[object Object],[object Object]
 

Mais conteúdo relacionado

Destaque (20)

Nochesalvaje1
Nochesalvaje1Nochesalvaje1
Nochesalvaje1
 
Sentencia TSJ Andalucia Marzo 2008 EpC marzo
Sentencia TSJ Andalucia Marzo 2008 EpC marzoSentencia TSJ Andalucia Marzo 2008 EpC marzo
Sentencia TSJ Andalucia Marzo 2008 EpC marzo
 
Qué Ves 2
Qué Ves 2Qué Ves 2
Qué Ves 2
 
Sentencia TS Asturias EpC
Sentencia TS Asturias EpCSentencia TS Asturias EpC
Sentencia TS Asturias EpC
 
香港六合彩很放心
香港六合彩很放心香港六合彩很放心
香港六合彩很放心
 
香港六合彩今年飞黄腾达
香港六合彩今年飞黄腾达香港六合彩今年飞黄腾达
香港六合彩今年飞黄腾达
 
Sudan
SudanSudan
Sudan
 
A life-cycle cost analysis (LCCA): refrigerators in Brazil
A life-cycle cost analysis (LCCA): refrigerators in BrazilA life-cycle cost analysis (LCCA): refrigerators in Brazil
A life-cycle cost analysis (LCCA): refrigerators in Brazil
 
Vs2008 Ms Lux
Vs2008 Ms LuxVs2008 Ms Lux
Vs2008 Ms Lux
 
EspañA Va
EspañA VaEspañA Va
EspañA Va
 
Entierro Gitano
Entierro GitanoEntierro Gitano
Entierro Gitano
 
Life On A Train
Life On A TrainLife On A Train
Life On A Train
 
香港六合彩万能金库
香港六合彩万能金库香港六合彩万能金库
香港六合彩万能金库
 
E-biz 2.0
E-biz 2.0E-biz 2.0
E-biz 2.0
 
Diocesan Finance Summit
Diocesan Finance SummitDiocesan Finance Summit
Diocesan Finance Summit
 
Portada
PortadaPortada
Portada
 
Informatica Base Windows
Informatica Base WindowsInformatica Base Windows
Informatica Base Windows
 
teens n tech: where r wii?
teens n tech:  where r wii?teens n tech:  where r wii?
teens n tech: where r wii?
 
Yo Nací E.. Lola
Yo Nací E.. LolaYo Nací E.. Lola
Yo Nací E.. Lola
 
Tiendadecnyuges
TiendadecnyugesTiendadecnyuges
Tiendadecnyuges
 

Semelhante a 0502 Windwos Server 2008 Card Space 新一代身份驗證機制

淘宝开放产品前端实践
淘宝开放产品前端实践淘宝开放产品前端实践
淘宝开放产品前端实践taobao.com
 
1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台
1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台
1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台Timothy Chen
 
電腦網路 網路安全
電腦網路 網路安全電腦網路 網路安全
電腦網路 網路安全bruce761207
 
Internet Security
Internet SecurityInternet Security
Internet Securitybruce761207
 
0328 Windows Server 2008 應用程式相容性
0328 Windows Server 2008 應用程式相容性0328 Windows Server 2008 應用程式相容性
0328 Windows Server 2008 應用程式相容性Timothy Chen
 
基于Silverlight的RIA架构及百度应用
基于Silverlight的RIA架构及百度应用基于Silverlight的RIA架构及百度应用
基于Silverlight的RIA架构及百度应用Cat Chen
 
第14章 创建与管理www服务
第14章 创建与管理www服务第14章 创建与管理www服务
第14章 创建与管理www服务ben1024
 
第14章 创建与管理www服务
第14章 创建与管理www服务第14章 创建与管理www服务
第14章 创建与管理www服务ben1024
 
如何使用JCE和CAPICOM进行加密和签名
如何使用JCE和CAPICOM进行加密和签名如何使用JCE和CAPICOM进行加密和签名
如何使用JCE和CAPICOM进行加密和签名Zac John
 
高性能远程调用解决方案
高性能远程调用解决方案高性能远程调用解决方案
高性能远程调用解决方案Ady Liu
 
使用NodeJS构建静态资源管理系统
使用NodeJS构建静态资源管理系统使用NodeJS构建静态资源管理系统
使用NodeJS构建静态资源管理系统Frank Xu
 
单点登录解决方案的架构与实现
单点登录解决方案的架构与实现单点登录解决方案的架构与实现
单点登录解决方案的架构与实现jeffz
 
0509 Windows Serevr 2008 新世代網路應用程式
0509 Windows Serevr 2008 新世代網路應用程式0509 Windows Serevr 2008 新世代網路應用程式
0509 Windows Serevr 2008 新世代網路應用程式Timothy Chen
 
Laradebut #7 - Laravel AUTH
Laradebut #7 - Laravel AUTHLaradebut #7 - Laravel AUTH
Laradebut #7 - Laravel AUTHSzuping Wang
 

Semelhante a 0502 Windwos Server 2008 Card Space 新一代身份驗證機制 (20)

淘宝开放产品前端实践
淘宝开放产品前端实践淘宝开放产品前端实践
淘宝开放产品前端实践
 
1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台
1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台
1116 Windows server 2008 - 使用 IIS 7.0 建置安全站台
 
電腦網路 網路安全
電腦網路 網路安全電腦網路 網路安全
電腦網路 網路安全
 
網路安全
網路安全網路安全
網路安全
 
Internet Security
Internet SecurityInternet Security
Internet Security
 
網路安全
網路安全網路安全
網路安全
 
金鑰管理 (PKI)
金鑰管理 (PKI)金鑰管理 (PKI)
金鑰管理 (PKI)
 
0328 Windows Server 2008 應用程式相容性
0328 Windows Server 2008 應用程式相容性0328 Windows Server 2008 應用程式相容性
0328 Windows Server 2008 應用程式相容性
 
憑證
憑證憑證
憑證
 
基于Silverlight的RIA架构及百度应用
基于Silverlight的RIA架构及百度应用基于Silverlight的RIA架构及百度应用
基于Silverlight的RIA架构及百度应用
 
CAREY-Tech SSO
CAREY-Tech SSOCAREY-Tech SSO
CAREY-Tech SSO
 
第14章 创建与管理www服务
第14章 创建与管理www服务第14章 创建与管理www服务
第14章 创建与管理www服务
 
第14章 创建与管理www服务
第14章 创建与管理www服务第14章 创建与管理www服务
第14章 创建与管理www服务
 
如何使用JCE和CAPICOM进行加密和签名
如何使用JCE和CAPICOM进行加密和签名如何使用JCE和CAPICOM进行加密和签名
如何使用JCE和CAPICOM进行加密和签名
 
高性能远程调用解决方案
高性能远程调用解决方案高性能远程调用解决方案
高性能远程调用解决方案
 
使用NodeJS构建静态资源管理系统
使用NodeJS构建静态资源管理系统使用NodeJS构建静态资源管理系统
使用NodeJS构建静态资源管理系统
 
单点登录解决方案的架构与实现
单点登录解决方案的架构与实现单点登录解决方案的架构与实现
单点登录解决方案的架构与实现
 
Bigger
BiggerBigger
Bigger
 
0509 Windows Serevr 2008 新世代網路應用程式
0509 Windows Serevr 2008 新世代網路應用程式0509 Windows Serevr 2008 新世代網路應用程式
0509 Windows Serevr 2008 新世代網路應用程式
 
Laradebut #7 - Laravel AUTH
Laradebut #7 - Laravel AUTHLaradebut #7 - Laravel AUTH
Laradebut #7 - Laravel AUTH
 

Mais de Timothy Chen

Google Q3 2008 Quarterly Earnings Summary
Google Q3 2008 Quarterly Earnings SummaryGoogle Q3 2008 Quarterly Earnings Summary
Google Q3 2008 Quarterly Earnings SummaryTimothy Chen
 
Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案Timothy Chen
 
Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案Timothy Chen
 
0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制Timothy Chen
 
0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制Timothy Chen
 
0513 深入Windows Server 2008 系統核心
0513 深入Windows Server 2008  系統核心0513 深入Windows Server 2008  系統核心
0513 深入Windows Server 2008 系統核心Timothy Chen
 
0506 Windows Server 2008 終端機服務
0506 Windows Server 2008 終端機服務0506 Windows Server 2008 終端機服務
0506 Windows Server 2008 終端機服務Timothy Chen
 
0505 Windows Server 2008 一日精華營 Part II
0505 Windows Server 2008 一日精華營 Part II0505 Windows Server 2008 一日精華營 Part II
0505 Windows Server 2008 一日精華營 Part IITimothy Chen
 
0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartITimothy Chen
 
1204 Windows Server 2008 檔案儲存與分行管理技術
1204 Windows Server 2008 檔案儲存與分行管理技術1204 Windows Server 2008 檔案儲存與分行管理技術
1204 Windows Server 2008 檔案儲存與分行管理技術Timothy Chen
 
0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合
0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合
0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合Timothy Chen
 
0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹Timothy Chen
 
1130 Windows server 2008 - IIS 7.0 伺服器效能管理
1130 Windows server 2008 - IIS 7.0 伺服器效能管理1130 Windows server 2008 - IIS 7.0 伺服器效能管理
1130 Windows server 2008 - IIS 7.0 伺服器效能管理Timothy Chen
 
Tech Net Taiwan Resources Intro
Tech Net Taiwan Resources IntroTech Net Taiwan Resources Intro
Tech Net Taiwan Resources IntroTimothy Chen
 
0828 Windows Server 2008 新安全功能探討
0828 Windows Server 2008 新安全功能探討0828 Windows Server 2008 新安全功能探討
0828 Windows Server 2008 新安全功能探討Timothy Chen
 
1026 Windows Server 2008 Active Directory 版權管理服務
1026 Windows Server 2008 Active Directory 版權管理服務1026 Windows Server 2008 Active Directory 版權管理服務
1026 Windows Server 2008 Active Directory 版權管理服務Timothy Chen
 
1107 Windows server 2008 - IIS 7.0 架構與建置
1107 Windows server 2008 - IIS 7.0 架構與建置1107 Windows server 2008 - IIS 7.0 架構與建置
1107 Windows server 2008 - IIS 7.0 架構與建置Timothy Chen
 
1214 使用 Windows Server 2008 架構 Media Service
1214 使用 Windows Server 2008 架構 Media Service1214 使用 Windows Server 2008 架構 Media Service
1214 使用 Windows Server 2008 架構 Media ServiceTimothy Chen
 
1221 探討 Windows Server 2008 WDS 部署服務
1221 探討 Windows Server 2008 WDS 部署服務1221 探討 Windows Server 2008 WDS 部署服務
1221 探討 Windows Server 2008 WDS 部署服務Timothy Chen
 
0118 Windows Server 2008 的伺服器核心 (Server Core)
0118 Windows Server 2008 的伺服器核心 (Server Core)0118 Windows Server 2008 的伺服器核心 (Server Core)
0118 Windows Server 2008 的伺服器核心 (Server Core)Timothy Chen
 

Mais de Timothy Chen (20)

Google Q3 2008 Quarterly Earnings Summary
Google Q3 2008 Quarterly Earnings SummaryGoogle Q3 2008 Quarterly Earnings Summary
Google Q3 2008 Quarterly Earnings Summary
 
Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案
 
Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案Windows Server 2008 伺服器虛擬化解決方案
Windows Server 2008 伺服器虛擬化解決方案
 
0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制
 
0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制0514 Windows Server 2008 事件管理機制
0514 Windows Server 2008 事件管理機制
 
0513 深入Windows Server 2008 系統核心
0513 深入Windows Server 2008  系統核心0513 深入Windows Server 2008  系統核心
0513 深入Windows Server 2008 系統核心
 
0506 Windows Server 2008 終端機服務
0506 Windows Server 2008 終端機服務0506 Windows Server 2008 終端機服務
0506 Windows Server 2008 終端機服務
 
0505 Windows Server 2008 一日精華營 Part II
0505 Windows Server 2008 一日精華營 Part II0505 Windows Server 2008 一日精華營 Part II
0505 Windows Server 2008 一日精華營 Part II
 
0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI
 
1204 Windows Server 2008 檔案儲存與分行管理技術
1204 Windows Server 2008 檔案儲存與分行管理技術1204 Windows Server 2008 檔案儲存與分行管理技術
1204 Windows Server 2008 檔案儲存與分行管理技術
 
0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合
0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合
0425 Windows Server 2008 與 WSS下之表單工作與工作流程的整合
 
0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹0416 Windows Server 2008 Native IPv6 新功能介紹
0416 Windows Server 2008 Native IPv6 新功能介紹
 
1130 Windows server 2008 - IIS 7.0 伺服器效能管理
1130 Windows server 2008 - IIS 7.0 伺服器效能管理1130 Windows server 2008 - IIS 7.0 伺服器效能管理
1130 Windows server 2008 - IIS 7.0 伺服器效能管理
 
Tech Net Taiwan Resources Intro
Tech Net Taiwan Resources IntroTech Net Taiwan Resources Intro
Tech Net Taiwan Resources Intro
 
0828 Windows Server 2008 新安全功能探討
0828 Windows Server 2008 新安全功能探討0828 Windows Server 2008 新安全功能探討
0828 Windows Server 2008 新安全功能探討
 
1026 Windows Server 2008 Active Directory 版權管理服務
1026 Windows Server 2008 Active Directory 版權管理服務1026 Windows Server 2008 Active Directory 版權管理服務
1026 Windows Server 2008 Active Directory 版權管理服務
 
1107 Windows server 2008 - IIS 7.0 架構與建置
1107 Windows server 2008 - IIS 7.0 架構與建置1107 Windows server 2008 - IIS 7.0 架構與建置
1107 Windows server 2008 - IIS 7.0 架構與建置
 
1214 使用 Windows Server 2008 架構 Media Service
1214 使用 Windows Server 2008 架構 Media Service1214 使用 Windows Server 2008 架構 Media Service
1214 使用 Windows Server 2008 架構 Media Service
 
1221 探討 Windows Server 2008 WDS 部署服務
1221 探討 Windows Server 2008 WDS 部署服務1221 探討 Windows Server 2008 WDS 部署服務
1221 探討 Windows Server 2008 WDS 部署服務
 
0118 Windows Server 2008 的伺服器核心 (Server Core)
0118 Windows Server 2008 的伺服器核心 (Server Core)0118 Windows Server 2008 的伺服器核心 (Server Core)
0118 Windows Server 2008 的伺服器核心 (Server Core)
 

0502 Windwos Server 2008 Card Space 新一代身份驗證機制

  • 1. 新一代身份驗證機制 - Windows Card Space 曹祖聖 台灣微軟資深講師 [email_address] http://teacher.allok.com.tw MCP, MCP+I, MCSA, MCSE,MCDBA, MCAD, MCSD, MCT, MVP
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. IIS 7.0 身份驗證流程 NTLM Basic Anonymous IIS Server Core Kerberos Digest Request received by IIS Authentication Providers Passport
  • 10. Client IIS 伺服器 default.htm Web 瀏覽器 匿名驗證流程
  • 11.
  • 12. 基本驗證流程 IIS 伺服器 default.htm Web 瀏覽器 Base64 編碼的 使用者名稱和密碼 401 Error
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. NTLM 的驗證過程 Get /Default.HTM Get /Default.HTM w/ AuthNTLM Get /Default.HTM w/ AuthNTLM Hashed 401 – WWW Auth: NTLM 200 - OK 401 – Access Denied Client Client IIS Server IIS Server
  • 19.
  • 20.
  • 21. Kerberos 運作機制 IIS 啓動後,當伺服器跟 KDC 做驗證成功後,會取得 ticket Ticket Granting Services Domain Controller (KDC) IIS Server
  • 22. Kerberos 運作機制 用戶端向 KDC 要求 存取 IIS 的的 ticket 如果 IIS 是 AD 成員, KDC 會發出 shared key 用戶端使用匿名身份連線至 IIS IIS 回傳 401 錯誤,加上 WWWAuth 標頭,要求進行協調 用戶端使用這支 shared key 來建立雜湊碼,並且傳送到 IIS IIS 使用 shared key 來檢查密碼是否正確 Shared Domain Controller (KDC) IIS Server
  • 23. 摘要式驗證流程 IIS 伺服器 網域控制站 Active Directory 資料庫 Web 瀏覽器
  • 24.
  • 25.
  • 26.
  • 27. IIS 7.0 驗證比較表
  • 28. IIS 與 ASP.NET 身份驗證流程 IIS Web 瀏覽器 允許該 IP address 和 domain? 使用者身份驗證通過 ? 否 是 是 否 有 有設定 ASP.NET impersonation ? 沒有 ACL 檢查通過 ? 否 是 ASP.NET 執行 ASP.NET 程式 拒絕存取 使用指定帳號 允許存取 使用應用 程式集區帳號
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. demo 管理 Windows CardSpace
  • 36.
  • 37. 真實世界的 STS STS token token STS token token RP
  • 38. CardSpace 運作流程 Identity Provider (IP) Security Token Service (STS) Relying Party (RP) Client 使用者要存取某項資源 RP 提出身份識別要求 1 2 使用者 3 檢查那些 IPs 可以滿足要求 ? 使用者選擇 IP 4 5 向該 IP 要求 token 6 根據 RP 要需求傳回 token 7 使用者決定可以送出 token 8 Token 送交給 RP
  • 39.
  • 40. demo 使用 Windows CardSpace 登入網站
  • 41.
  • 42. Federation by STS Fabrikam Contoso AD/STS Contosoisa Fabrikam App Linux STS “ 能不能幫我 …” “ 先從 Fabrikam STS 拿到 token 再說 !” “ 請給我一個 Fabrikam token !” “ 請出示您的身份 !” “ 請給我一個 token !” “ 請出示您的身份 !” “ Lisa 您好,有什麼可以為您服務的嗎 ?” SAML SAML Fabrikam Fabrikam
  • 43. 網站應用 前端 Web 網站 網站 Identity Provider STS Relying Party HTTP/GET ( 保護頁面 )   轉向到登入頁面 1 HTTP/GET ( 登入頁面 )  2 登入頁面 (HTML) + x-informationcard 標籤 5 HTTP/GET|POST 目標頁面 + token 透過 WS-Mex 與 WS-Trust 取得 token 4 客戶資料庫 6 使用者選擇卡片 3
  • 44. 網站應用 – 減少對網站的影響 前端 Web 網站 STS 網站 Identity Provider STS Relying Party HTTP/GET ( 保護的頁面 )   轉向到登入頁面 1 傳出登入頁面 HTML HTTP/GET ( 登入頁面 )  2 HTTP/GET|POST 目標頁面 + token 8 3 WS-Mex 透過 WS-Trust/RST 傳送 token 透過 WS-Trust/RSTR 取得 token 6 5 透過 WS-Mex 與 WS-Trust 取得 token 客戶資料庫 7 使用者選擇卡片 4
  • 45.
  • 46. Login Page < button onclick =&quot;javascript:return infocardlogin.submit();&quot;> Sign in with your Information Card </ button > < form name =&quot;infocardlogin&quot; target =&quot;_self&quot; method =&quot;post&quot;> < object type =&quot;application/x-informationcard&quot; name =&quot;xmlToken&quot;> < param name =&quot;tokenType&quot; value =&quot;urn:oasis:names:tc:SAML:1.0:assertion&quot; > < param name =&quot;issuer&quot; value =&quot;http://schemas..../identity/issuer/self&quot; > < param name =&quot;requiredClaims&quot; value =&quot;http://.../claims/givenname, http://.../claims/surname, http://../claims/emailaddress, http://.../claims/privatepersonalidentifier&quot; > </ object > </ form > public partial class Login_aspx : System.Web.UI. Page { protected void Page_Load( object sender, EventArgs e) { string xmlToken = Request[ &quot;xmlToken&quot; ]; Token token = new TokenProcessor . Token (xmlToken); // Lookup the account using the uniqueId string username = MembershipHelper .GetUser(token.UniqueID); if (username != null ) { MembershipUser user = Membership .GetUser(username); // give the cookie back to the browser FormsAuthentication .SetLoginCookie(user.UserName, false ); } } }
  • 47.
  • 48.
  • 49.  

Notas do Editor

  1. &lt;SLIDETITLE INCLUDE=7&gt;Windows Server 2008 應用程式相容性 &lt;/SLIDETITLE&gt; &lt;KEYWORDS&gt;&lt;/KEYWORDS&gt; &lt;KEYMESSAGE&gt;&lt;/KEYMESSAGE&gt; &lt;SLIDEBUILDS&gt;0&lt;/SLIDEBUILDS&gt; &lt;SLIDESCRIPT&gt; Hello and Welcome to this Microsoft TechNet session on {insert session title}. My name is {insert name} &lt;/SLIDESCRIPT&gt; &lt;SLIDETRANSITION&gt; &lt;TRANSITION LENGTH=7&gt;Let us start this session by going into more detail on exactly what we will be covering.&lt;/TRANSITION&gt; &lt;/SLIDETRANSITION&gt; &lt;COMMENT&gt;&lt;/COMMENT&gt; &lt;ADDITIONALINFORMATION&gt; &lt;ITEM&gt;&lt;/ITEM&gt; &lt;/ADDITIONALINFORMATION&gt;