国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
關于OPENID的單點登陸協(xié)議 - 網(wǎng)絡新勢力 - DonewsBlog
userphoto

2008.05.07

關注

因為經(jīng)常看到有OpenId的吹捧者,所以本來希望寫一個OpenId的BLOG,引起大家的注意,然后從他們哪兒獲得一些關于OpenId詳細協(xié)議的資料,可惜失算了。

不得以,今天早上,花了一些時間,在詞典的幫助下用我蹩腳的英語翻譯了一下OpenId的協(xié)議。終于搞明白了OpenId的加密驗證模式。

最關鍵的是第三步和第七步。這兩步由應用服務器任選其一,他們都是應用服務器直接與身份驗證服務器交互,第三步是獲得并保存一個密匙,用于嚴整用戶所傳遞的數(shù)據(jù)是否合法。第七步則是直接把接受的信息交個身份驗證服務器,然后由身份驗證服務器來驗證這個信息是否合法。

這樣以來,我前邊所講的哪個HACK的模式就的確是行不通的了。

———以下是我翻譯的全文———

一個帶圖片說明的OpenId協(xié)議介紹

A description of the OpenID protocol with diagrams.

 

1: User submits Identity URL

1:用戶提交身份地址

The consumer uses a form with GET or POST to allow the user to enter their OpenID url.

應用服務器通過GET或者POST方法獲得用戶提交他們的OpenId地址(身份地址)

2: Consumer fetches Identity URL

2:應用服務器取得身份驗證服務器

The consumer parses the HTML content and looks for a tag:

<LINK REL='openid.server' HREF=(the server)>

應用服務器解吸用戶提交的地址的數(shù)據(jù)中的HTML標簽:<link rel=’openid.server’ href=’the server’>(其中the server 就是身份驗證服務器)

3: Consumer associates with server (option 1)

3:應用服務器與身份驗證服務器交互(選項1

In order to communicate securely with the server, the consumer gets an association with the server discovered in step 2, using an existing association if it is available, otherwise visiting the server and using Diffie Hellman to negotiate a shared secret with which to sign communication.  A consumer unable to store state uses "dumb mode" which does not perform this step, and instead uses step 7.

為了能夠與身份驗證服務器安全的通信,應用服務器需要向(從第2步獲取的)身份驗證服務器請求一個協(xié)議。如果有現(xiàn)成的可以使用的協(xié)議,則用現(xiàn)有的協(xié)議,否則,通過Diffie Hellman的方法獲得一個共享密匙,靜默模式(dumb mode)下的應用服務器不需要這一步,而是使用第7步的操作。

4: Consumer redirects the user to the server

4:應用服務器將用戶重定向到身份驗證服務器

The OpenID server URL accepts a query, containing all the information the server needs to check the user's identity and redirect the user back to the consumer.  The server checks the authentication of the user.  If the user is signed in (has an auth cookie) and has already authorized sending their identity to the consumer, step 5 may be skipped.

OpenId服務器接受一個包含所有應用服務器需要用來驗證用戶的信息,如果用戶已經(jīng)登陸(有COOKIE)并且他已經(jīng)同意發(fā)送他的身份信息給應用服務器的話,第5步可以跳過。

5: User Authenticates to server

5:用戶鑒別是否是自己訪問的服務

The user authenticates to the server with a cookie or a username and password, and the server asks the user for permission to send their identity information to the consumer.

通過COOKIE或者用戶名+密碼驗證當前用戶是否登陸,并且詢問當前用戶是否允許應用服務器獲得自己的身份信息。

6: Server redirects the user back to the consumer

6: 身份驗證服務器重定向用戶到應用服務器

The consumer parses the servers response (which is appended to the return-to URL the consumer sent) and verifies it using the association, or in the case of dumb mode proceeds to step 7.

應用服務器使用獲得的身份驗證服務器的協(xié)議,校驗并解析所返回的數(shù)據(jù)。如果在靜默模式(dumb mode)下,繼續(xù)第7步。

7: Consumer verifies the response with the server (option 2)

7:應用服務器通過身份驗證服務器校驗接收到的信息(選項2

Communicating directly with the server, the dumb mode consumer checks the response received via the User Agent in the redirect.

應用服務器直接連接身份驗證服務器校驗接受到的信息,在靜默模式下的應用服務器使用重定向的方法通過身份地址(User Agent)核對接受到的信息。



Trackback: http://tb.donews.net/TrackBack.aspx?PostId=1085110

本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
OpenID:身份認證技術要革命?
OAuth2.0 & OpenID Connect解析
OpenID Connect Core 1.0(四)使用授權碼流驗證(上)
中星小編教你修改MSSQL端口的方法
解決SqlServer 各版本 sa帳戶不能登錄問題
連接登錄服務器失敗,服務器
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服