# File lib/openshift/auth_service.rb, line 9 def self.instance @oo_auth_provider.new end
# File lib/openshift/auth_service.rb, line 5 def self.provider=(provider_class) @oo_auth_provider = provider_class end
The 3 argument version of this method authenticate(request,login,password) is deprecated.
Authenticate a user/password pair. Returns:
nil/false if the authentication info is invalid A Hash containing the following keys if the info is valid: :user - An instance of CloudUser (retrieved via the model) OR :username - the unique identifier of this user :provider (optional) - a scope under which this username is unique If user is nil or username is blank or nil, authentication will be denied.
# File lib/openshift/auth_service.rb, line 32 def authenticate(login, password) {:username => login} end