Passport first appeared in 1999, when only to meet Ms acquired Hotmail as a mailbox after the login and authorization services, obscurity. A year later people began to know about it, the real controversy is a case of MS in Hotmail posted a user terms, is considered to violate the privacy and rights of individuals, in fact, Ms Messenger began to be a concern, The premise of using Messager is that you have to have a Hotmail or MSN Mail account, this moment passport begins to show.
Then MSN Explorer 6.0 official passport is, MS Messenger also successive upgrades, a sigh of relief to 4.0. Ms began to push the passport to the front desk, but it was difficult to link the passport to dotnet and webservice. July 13, 2001, MSN Hotmail website update, everything new, beautiful Web UI is amazing, I began to sigh when China's web mail can do so beautiful. In fact, Passport 2.0 was also release before that, which was one of the most important upgrades of passport. At the same time people began to open their eyes from the psychedelic dotnet, except that the visual Studio.net,ms showed that passport would be the earliest realization of dotnet, and that passport had frequently appeared in major technical newspapers and magazines, The passport has been hooked up with dotnet, but how can it be seen that the passport will be related to dotnet, during which MS has quietly expanded the passport database several times to do a variety of technical preparation.
Three months after the release of XP, the PDC 2001 held, Visual Studio.NET Beta2 release, WebService has flourished, everything suddenly clear up, 15 days later, MSN Explorer 7.0 released, MSN Main site ushered in nearly two years of a major revision, began to comment that has changed, someone has been from MSN sniff a peculiar smell, this change to root, MSN Explorer claims can and MSN website Real sync and become a most beautiful client,msn Messenger's new discovery of the actions Plane, soon hailstorm was renamed Microsoft. NET My Services,passport detach Hotmail,messenger as Microsoft. Net A member of my services, MS shows that the key to all future Microsoft. NET My Services is passport, which will be the only way to log on to all Web sites and webservice. And in the future it will be developed into a global E-commerce platform for authorization. Almost overnight Ms All of the related websites impressively appear the Passport Webui,ep logo also appears on nearly 160 e-commerce sites. There are more than 165,000,000 passport users.
In the near future, I also download Passport SDK 2.0, I think it is convenient to use it, as a developer, the implementation of their own website Passport is only a few steps, and for users, whether authorization or authentication will be extremely familiar and easy, They would like to be able to complete a transaction or experience on a website without having to fill out too many forms, as far as I am concerned, the only inconvenience to me as a user is that I have to have a MS Passport account, if I can rule out the lack of mind, For me a little bit of privacy is filled out to MS or sun or any Web site is not much different; As a developer, I'm tired of the network security implementations of China's so-called network security application providers. To be honest, I can't directly reject these solutions and say no, and on the other hand it's hard for me to convince myself that I like it.
Well, forgive me, I seem to digress too far. Let's get ready to start:
1. Get ready for our environment.
2. To achieve a simple passport
3. Switch and contact microsoft®.net my Services Manager.
1. Preparation environment
My environment:
Windows Advanced Service SP2 En
IIS 5 is guaranteed to have one site accessible.
Microsoft Passport SDK 2.0
MS Visual InterDev 6.0 or any ASP editor
The network card or modem must ensure that your machine can access the Internet online.
With a real Microsoft Passport, it's best to try @msn. com's
Microsoft Passport SDK 2.0 can be obtained at the following Web site.
http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/MSDN-FILES/027/001/644/ Msdncompositedoc.xml&frame=true
NT4, IIS4 can use the Microsoft Passport SDK 1.4
Http://download.microsoft.com/download/iis50/Install/PPSDK1_4/NT45/EN-US/PPM_SDK_v1-4-2.EXE
W2K,IIS5 Best Use Microsoft Passport SDK 2.0
Http://download.microsoft.com/download/Passport/Install/2.0/NT5XP/EN-US/PPM_SDK_V2.EXE
You can then install the SDK and then you need to create a preproduction environment (PREP).
First go to http://current-register.passporttest.com/default.asp register to get a prep Passport, and then you can go to http:// current-login.passporttest.com/See if you can log on successfully. This passport is not real world when you log on to a real-world site like www.msn.com so you actually log in to http://login.passport.com and in prep you actually log in as http://. current-login.passporttest.com/This is the address of prep login server. As for how you control your users in these two address direct switching will be set in the Passport Administration utility, of course, if you know later, you can also modify the registry directly.
Then you need to check the IE or browser as your client, preferably IE5 or above, and set up the use of cookies and SSL in the options and support JavaScript.
More specifically, you can refer to the Microsoft Passport SDK 2.0 Documentation:
Http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Dndotnet/html/myservpassp.asp?frame=true
The entire setup and dotnet environment can have nothing to do with it, so no dotnet installation or related files are required.
After that you can start the Passport Administration utility see things like this below.
2. To achieve a simple passport
Simple implementation of a passport, using only two to three functions isauthenticated, Loginuser, LogoTag2, Fromnetworkserver, and so on.
Like mypassport.asp:
<%
Dim omgr, TimeWindow, Forcelogin, Rurl
Set omgr = Server.CreateObject ("Passport.manager")
Thisurl = "http://" & Request.ServerVariables ("SERVER_NAME") & _
Request.ServerVariables ("Script_name")
If Omgr.fromnetworkserver Then
Response.Redirect (Thisurl)
End If
If Omgr.hasticket Then ' just doing basic auth; Any ticket are accepted regardless of age
' SignOut uses a different Site-global URL, assumes this URL exists ...
Rurl = Server.URLEncode ("http://" & Request.ServerVariables ("SERVER_NAME") & _
"/mypassport/loginout.asp")
Response.Write ("Welcome you, you are logged in!")
' would display sign-out link.
Else ' no Ticket, tell them to click Sign in
Rurl = Server.URLEncode (Thisurl)
Response.Write ("Please login")
' would display sign-in link.
End If
' Not login display Sign in logo otherwise will show Sign out logo.
Response.Write (Omgr.logotag2 ("www.ccBoysvr.com"))
%>
The basic logic is to determine whether you are logged in, or to display the Sign Out button if you are not logged in and processing logins.
If omgr.isauthenticated () then
Show Welcome & Omgr.profile ("nickname")
Otherwise
Omgr.loginuser "Login Successful return URL"
The SDK documentation will involve:
Implementing. NET Passport Single sign-in
(The implementation of the more common login methods on the website)
Implementing Kids Passport
(Even the kids think about it, but it's better than what the browser content is graded, can be targeted at a dedicated customer base, Ms This is really leading, thoughtful)
Express Purchase Implementation Guide
(EP has recently been found to have loopholes, just closed after repair, although China's national conditions are different, but the recent development of foreign EP very good, China has joined the WTO, this aspect to speed up oh. )
. NET Passport cobranding Overview
(for login, how to customize the login interface of the company brand, the 3rd below we will see some)
In addition specific implementation how-tos This section must not let go, whether can understand marks you to master the passport the depth (personal opinion).
Http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ppsdk21/Implementation/Passport_Implementation.asp
Before closing this section I enclose a picture that is easier to understand passport, perhaps by drawing a better understanding of the passport itself:
When a user requests a secured page from a site using Passport, the site redirects the "user to a" Passport server for a Uthentication. Once the user has been authenticated, the he or she sent back to the calling site. All communications between the Passport site and participating sites go through the user ' s browser, using encrypted cookie s and query strings. (Photo source www.vbpj.com Author: Jon Rauschenberger email:jrausch@claritycon.com)
I feel like the Microsoft Passport SDK 2.0 documentation is complete and detailed, all the steps and details are written in, and if I write more, there is a suspicion of excerpt (haha), the only thing is that the local installed SDK actually does not have this document, All documentation and help must go to the MSDN Web site (how abominable, don't you call the phone bill?) )
Http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ppsdk21/Implementation/Passport_Implementation.asp
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.