class JunglePath::Authentication::Identity

Attributes

authorization_filter[RW]
key[RW]
query_filters[RW]
remote_password[RW]
remote_user[RW]
role[RW]
table_filters[RW]
user[RW]
user_name[RW]
valid[RW]

Public Instance Methods

alternative_user_keys() click to toggle source
# File lib/jungle_path/authentication/identity.rb, line 23
def alternative_user_keys
  return @alternative_user_keys if @alternative_user_keys
  @alternative_user_keys = {user_id: @user.id} if @user
  @alternative_user_keys
end
alternative_user_keys=(value) click to toggle source
# File lib/jungle_path/authentication/identity.rb, line 28
def alternative_user_keys= value
  @alternative_user_keys = value
end
to_h() click to toggle source
# File lib/jungle_path/authentication/identity.rb, line 8
def to_h
  {
    remote_user: @remote_user,
    remote_password: @remote_password,
    user_name: @user_name,
    user: @user,
    key: @key,
    valid: @valid,
    role: @role,
    authorization_filter: @authorization_filter,
    query_filters: @query_filters,
    table_filters: @table_filters,
    alternative_user_keys: @alternative_user_keys
  }
end
to_hash() click to toggle source
# File lib/jungle_path/authentication/identity.rb, line 31
def to_hash
  to_h
end
to_s() click to toggle source
# File lib/jungle_path/authentication/identity.rb, line 5
def to_s
        "JunglePath::Authentication::Identity: {\n  remote_user: #{@remote_user},\n  remote_password: #{@remote_password},\n  user_name: #{@user_name},\n  user: #{@user},\n  key: #{@key},\n  valid: #{@valid},\n  role: #{@role},\n  authorization_filter: #{@authorization_filter}\n,query_filters: #{@query_filters},\ntable_filters: #{@table_filters},\nalternative_user_keys: #{@alternative_user_keys}}"
end
valid?() click to toggle source
# File lib/jungle_path/authentication/identity.rb, line 34
def valid?
        @valid
end