Created
October 10, 2008 23:12
-
-
Save hassox/16175 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merb_auth_routes(:name_prefix => nil, :path_prefix => "") do | |
match("/openid").to(:controller => "merb_auth_slice_password/sessions", :action => "update").name(:openid) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merb::Authentication.activate!(:default_openid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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