Passport to your website (implement Ms Passport on your website)

Source: Internet
Author: User
Tags iis implement
Web Passport to your website (next)
-------(Achieve Ms Passport on your website)

Stingy God, 2001-11-12


Article type:in-depth
Difficulty level: 4/9
Version: 1.01


3. Switch and contact microsoft®.net my Services Manager.
In this section, we go to microsoft®.net my Services Manager, in order to facilitate my use of the SDK band Example AdventureWorks Samples (This example shows some very practical skills and practices), in fact, I only use some pictures. Ms also puts this example on the Internet, and you can browse and test it through the following address: http://adventureworks.passport.com/
The current microsoft®.net My Services manager can only be said to be the embryonic form of a. NET My services, like a small unit of information storage that stores information and settings about your application, which basically becomes the future. NET My A component of the Services application. The original component becomes the current webservice, some shared information cannot be placed in the registry, and with this. NET my Services Manager you can store a lot of the necessary information. In addition, according to the passport specification, the user logs in once for all "participating Microsoft ®The information for. NET Passport site is shared. In addition, each Passport site may call each other to provide webservice to achieve their own site functions. So MS sets up this database so that every. NET My Services application will be registered in this database, and passport becomes a very core and important entry and component, each. NET My Services Application will have a SiteID in this database, and the information under each SiteID guarantees that other SiteID can be shared and used in addition to its own SiteID. It can be imagined that without this database and passport, even if the webservice or. NET My services are exposed on every site, not everyone dares to call it. Microsoft®.net my Services Manager also sets up the development and release of product settings to facilitate your debugging. From preproduction rolled into Production needs to undergo MS audits, Sign a. NET Services agreement, after which your application is officially released.
It is gratifying to note that these storage space and SiteID applications are currently free of charge. You can apply for it through an ordinary, valid passport. But the process of application is extremely painful and lengthy. You need to go through five pages, and then you need to fill out the following required items:
Technical Contact ' s Name:
Last Name:
Title:
Department:
Address1:
Country:
Phone:
e-mail:
Web Site Title :
Domain Name :
Production Domain Name:
Default return URL:
privacy Policy URL:
Cobrand Image URL: ( size : 468 x )
Cobrand Image URL: ( size : 102 X )
cobrand instruction Text:
Expire Cookie URL
If you succeed, you will get a SiteID and build a. NET my Services application. All right, go to this address. Apply for one: https://siteservices.passport.com/
And I'm using two pictures of AdventureWorks's samples awbanner468x60.jpg and aw_header102x80.gif, filling it in the Cobrand image URL option box.
Once you are successful, you will need to log in again, select your. NET my Services application, then select Manage my applications, select Download a Key, and then obtain an EXE file to execute under the command character:
partner## #_ #.exe/addkey
partner## #_ #.exe/makecurrent/t 0 (# # #_ with your SiteID)
Then stop your IIS service. Start the Passport administration Utility, change the SiteID from 0 to your SiteID, and restart your IIS service.
Then I tested it with the passport test from the Passport SDK, and you can see that the original MS logo becomes the one you set up in the Cobrand image URL:




It is best to use AdventureWorks samples to test, this program considered more thoughtful, will automatically get the SiteID value from the registry. The results of the run below.




You will find the original URL
Http://current-login.passporttest.com/login.srf?lc=1033&id=1&ru=www.yoursite.com&tw=14400&kv=1 &ct=1005697965&ems=1&ver=2.0.0248.1&tpf=2bad0084f7d730e36e8c74498b3a6cdd
into a
http://current-login.passporttest.com/login.srf?lc=1033&id=yourSiteID&ru=www.yoursite.com&tw=14400 &kv=1&ct=1005697965&ems=1&ver=2.0.0248.1&tpf=2bad0084f7d730e36e8c74498b3a6cdd
LC is a language version, ID is Siteid;ru is your successful return URL,TW is the parameter

(Additionally register SiteID when many URLs or domain name require you to enter www.yoursite.com, if you are in this machine by no www.yoursite.com, you can try this, modify your Hosts file, will
127.0.0.1 localhost modified into
127.0.0.1 www.yoursite.com
According to the description in section II, the Passport server needs to look for cookies on your machine.
Finally I wish you well.

For any future interaction or interoperability with. NET My services, you must first implement Passport verification and authorization. Passport has become a force, a quick alliance with the naysayers and a confrontation with Ms opponents, but one thing is clear: At this point, Microsoft is ahead of all competitors and opponents.
And finally, regardless of the success of both passport and. NET My services, the way we develop the Internet and the web has changed, which is bound to affect the users of the web interaction and the business model that they form.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.