class ActionController::Base
Public Class Methods
authenticates_using_http_basic(options = {})
click to toggle source
Keeps track of the currently authenticated user via the session.
Assumes the existence of a User
model. A bare ActiveModel model will do the trick. Model instances must implement id, and the model class must implement find_by_id.
# File lib/authpwn_rails/http_basic.rb, line 10 def self.authenticates_using_http_basic(options = {}) include Authpwn::HttpBasicControllerInstanceMethods before_action :authenticate_using_http_basic, options end
authenticates_using_http_token(options = {})
click to toggle source
Keeps track of the currently authenticated user via the session.
Assumes the existence of a User
model. A bare ActiveModel model will do the trick. Model instances must implement id, and the model class must implement find_by_id.
# File lib/authpwn_rails/http_token.rb, line 10 def self.authenticates_using_http_token(options = {}) include Authpwn::HttpTokenControllerInstanceMethods before_action :authenticate_using_http_token, options end