Displaying 1 result from an estimated 1 matches for "allow_http_basic_auth".
2010 Jan 26
1
Why does UserSession.find return nil when using user_credentials = single_access_token?
...rSession.find.record
user = RegisteredUser.find(user_hash)
user.update(params[:user])
user.save
respond_to do |format|
format.json { head :ok }
end
end
private
def single_access_allowed?
true
end
end
class UserSession < Authlogic::Session::Base
allow_http_basic_auth = true
params_key = ''user_credentials''
single_access_allowed_request_types = :all
end
class RegisteredUserSession < UserSession
end
class User < ActiveRecord::Base
set_table_name "users"
attr_accessible :display_name, :email, :password
acts_as_authen...