module Authie

If you’re dealing with your authentication in a middleware and you only have access to your rack environment, this will wrap around rack and make it look close enough to an ActionController to work with Authie

Usage:

controller = Authie::RackController.new(@env) controller.current_user = user

Constants

VERSION
VERSION_FILE_ROOT

Public Class Methods

config() click to toggle source
# File lib/authie/config.rb, line 31
def config
  @config ||= Config.new
end
configure(&block) click to toggle source
# File lib/authie/config.rb, line 35
def configure(&block)
  block.call(config)
  config
end
notify(event, args = {}, &block) click to toggle source
# File lib/authie/config.rb, line 40
def notify(event, args = {}, &block)
  ActiveSupport::Notifications.instrument("#{event}.authie", args, &block)
end