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