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
Source
# File lib/authie/config.rb, line 41 def configure(&block) block.call(config) config end
Source
# File lib/authie/config.rb, line 46 def notify(event, args = {}, &block) ActiveSupport::Notifications.instrument("#{event}.authie", args, &block) end