File: openid.rb

# openid.rb

Path: | lib/merb-auth-more/strategies/basic/openid.rb
Last Update: | Tue Mar 09 13:27:00 -0700 2010

The openid strategy attempts to login users based on the OpenID protocol openid.net/

Overwrite the on_sucess!, on_failure!, on_setup_needed!, and on_cancel! to customize events.

Overwite the required_reg_fields method to require different sreg fields. Default is email and nickname

Overwrite the openid_store method to customize your session store

## Requirments

### Routes:

      :openid - an action that is accessilbe via http GET and protected via ensure_authenticated
      :signup - a url accessed via GET that takes a user to a signup form (overwritable)

### Attributes

      :identity_url - A string for holding the identity_url associated with this user (overwritable)

install the ruby-openid gem

### Required files

openid openid/store/filesystem openid/extensions/sreg

[Validate]