| STEP 1 gem install: |
|---|
| gem install ruby-openid |
| STEP 2 Plugin install: | ||
|---|---|---|
| Plugin | open_id_authentication(http://jimneath.org/2008/09/09/bort-base-rails-application/) | |
| NEXT | rake open_id_authentication:db:migrate | |
| STEP 3 Create models and migartion : |
|---|
| Create models and write migartion codings. |
| Create a database then migrate.... |
| rake db:migrate |
| STEP 4 Routes: |
|---|
| Define routes for your application in routes.rb |
| STEP 5 Create needed controllers like session user login etc..: | ||
|---|---|---|
| we have to write the following methods in login controller by using open_id_authentication plugin | ||
| 1. using_open_id | If the user logins through the openid, we can check that by this method | |
| 2. open_id_authentication | This is the method for authenticate the user by using "authenticate_with_open_id" method, this method available in the plugin | |
| 3. password_authentication | If the user logins through normal registration method, use this method for authenticate the user,this method also available in the plugin | |
| STEP 6 view: |
|---|
| write view code based on your design . |
| RESOURCES: | ||
|---|---|---|
| Refer this site | http://jimneath.org/2008/09/09/bort-base-rails-application/ | |
| Refer this site | http://myutil.com/2007/12/29/openid-2-0-2-with-rails-2-0-2 | |