Simply enter your OpenID URL, click login. The MVC Membership Starter Kit will handle the rest for you!
More on this lightweight OpenID consumer from Mads Kristensen.
For this, you'll need an application key. If you have one, you can add a route to the Windows Live ID login action, and have an out-of-the box Windows Live ID login form:
Simply click the "Sign in" link. You will then be authenticated via Windows Live ID Web Authentication and returned to your ASP.Net MVC application when the authentication succeeds. The MVC Membership Starter Kit will handle all background processing for you!
More on Windows Live ID Web Authentication at dev.live.com.
Both the OpenID and Windows Live ID authentication require you to do one "manual" step: implement the link between the membership database and the authentication method. You can simply override a virtual method in your own controller implementation, like so:
protected override MembershipUser AssociateOpenIDToMembershipUser( string identity, string name, string email )
// TODO: implement this to use OpenID authentication
protected override MembershipUser AssociateWindowsLiveIDToMembershipUser(string userId)
// TODO: implement this to use Windows Live ID authentication
What you'll have to do is return the ASP.Net membership user associated with the OpenID / Windows Live ID account.
The Windows Live ID authentication is currently only available from source control on CodePlex.
(by the way: I think this is the first OpenID and Windows Live ID implementation ever using the ASP.Net MVC framework)
This is an imported post. It was imported from my old blog using an automated tool and may contain formatting errors and/or broken images.