Open Id Starter Kit 

Welcome to your new Open Id Membership Provider sample application. The key features include the following:

This site is ready to run! No changes are needed*. Press CTRL+F5 to run the site.

* Requires ASP.NET 2.0 and SQL Server 2005 Express edition to run as-is. Under App_Data you will find a .sql script you can use to create the OpenID Membership database in your own data environment. After you have run the script, update your connection string in web.config.

About The OpenID Membership Provider

The OpenID Membership Provider comes from the open source library maintained by StrongEye Solutions LLC. The project is licensed using the New BSD License (see license at the end of this page). You are encouraged to contribute to this project or download the most up-to-date version of the source code from the project home page on Google Code.

Using the ASP.NET Membership Provider model, the OpenID Membership Provider allows you to leverage declarative authorization and to interoperate with other ASP.NET providers (such as Roles Providers) using OpenID authentication.

To learn more about OpenID, visit OpenID.net. OpenID authentication is made possible through third party Identity Providers. You may implement your own Identity Provider (in fact, you may do so easily by using the excellent C# port of the JanRain OpenID library that we also use), however that is outside the scope of this Starter Kit. This Starter Kit assumes your users will make use of existing OpenID Identity Providers (IDPs). Third party Identity Providers are easily found on the Web, and many are free. Our favorite IDP is Linksafe. Linksafe uses i-names, which we think are the most human-friendly identifiers available, but any OpenID provider will work, and and there are many to choose from.


Site Members and Roles

Your Starter Kit Web site allows visitors to register as members and then log in. Members have specific privileges defined by roles such as administrator or guest. Each Starter Kit Web site defines site-specific roles. The following table describes what features are available to visitors in different roles.

Visitor

Privileges

Not logged in

No privileges.

Logged in

No privileges. All members must be associated at least with the role SiteRole1.

Logged in as
SiteRole1

May view but not edit.

Logged in as
Project Administrator

May additionally view the list of all users and assign user to roles. The starterkit provides an Administrator user account. 

 

User name: Administrator

Password:  @Dmns12345 

Important: Run the site before proceeding to automatically generate the site's predefined roles.

Be sure to create a user name for yourself and assign yourself to a role (such as administrator) that can manage the site.

Visitors can register by clicking the Create new user link on the home page. New members are activated automatically, and are assigned to a role as specified in the Web.config file.


Users Accounts

To log in with a membership user account 

  1. Click the Login tab
  2. Specify a user name and password in the Membership User Login area
  3. Click Login. The welcome page is displayed. But if you tried to open and locked page and you log in successfully the Web site will open this page

To log in with an OpenId user account 

  1. Click the Login tab
  2. Specify OpenId URL in the OpenID User Login area 
  3. The Web site will open your OpenId provider page, you must to identify there
  4. Allow this Web site in your OpenId account 
  5. Click Login. The welcome page is displayed. But if you tried to open and locked page and you log in successfully the Web site will open this page

To add a membership user account

  1. Click the Create Users tab
  2. Specify a user name, password, confirm password and email
  3. Click Create User. The new membership user is Log In automatically

To add a role

  1. Log in to the site with a Membership or OpenId user
  2. Click the Permissions tab
  3. Specify a role name
  4. Click Add in the Roles area

To add roles to an user account

  1. Log in to the site with an Administrator user
  2. Click the Permissions tab
  3. Select the User Name in the User Roles area
  4. Click the Add to Role button next to the role name wishes in the Roles area
  5. The site assign the user to the role

To remove roles to an user account

  1. Log in to the site with an Administrator user
  2. Click the Permissions tab
  3. Select the User Name in the User Roles area
  4. Click the Delete button next to the role name wishes in the User Roles area
  5. The site assign the user to the role

Queries

To view all users accounts general information

  1. Log in to the site with a Membership or OpenId user
  2. Click the All Users tab
  3. The site displays the Users Information 

To view my account information

  1. Log in to the site with a Membership or OpenId user
  2. Click the Specific User tab
  3. The site displays your User Information

 Technical Notes

  1. The files openid.properties and Login_OpenID.aspx must be together in the same file directory to support the different kinds of OpenId providers.
  2. When you create an user account with an OpenID URL, the user name must be exactly the same URL because the Site create a relationship between these entities to display user information.


License  (New BSD License)

Copyright (c) 2007, StrongEye Solutions LLC

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.