module RemoteUser

Attributes

attribute_map[RW]
auth_key[RW]
auto_create[RW]
env_key[RW]
logout_url[RW]

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/remote_user.rb, line 28
def self.configure
  yield self
end
remote_user_id(env) click to toggle source
# File lib/remote_user.rb, line 32
def self.remote_user_id(env)
  case env_key
  when Proc
    env_key.call(env)
  else
    env[env_key]
  end
end