Skip to content

Instantly share code, notes, and snippets.

@hassox
Created October 10, 2008 23:12
Show Gist options
  • Save hassox/16175 to your computer and use it in GitHub Desktop.
Save hassox/16175 to your computer and use it in GitHub Desktop.
merb_auth_routes(:name_prefix => nil, :path_prefix => "") do
match("/openid").to(:controller => "merb_auth_slice_password/sessions", :action => "update").name(:openid)
end
Merb::Authentication.activate!(:default_openid)
class User
include DataMapper::Resource
# Sets this class to be the default used in merb-auth strategies
Merb::Authentication.user_class = self
property :id, Serial
property :login, String
property :identity_url, String
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment