Class: Misty::Auth::User

Inherits:
Name
  • Object
show all
Includes:
Domain
Defined in:
lib/misty/auth/name.rb

Instance Attribute Summary collapse

Attributes included from Domain

#domain

Attributes inherited from Name

#id, #name

Instance Method Summary collapse

Methods inherited from Name

#to_h

Instance Attribute Details

#passwordObject

Returns the value of attribute password.



49
50
51
# File 'lib/misty/auth/name.rb', line 49

def password
  @password
end

Instance Method Details

#identityObject



51
52
53
54
55
56
# File 'lib/misty/auth/name.rb', line 51

def identity
  data = super
  raise Misty::Auth::CredentialsError, "#{self.class}: No password available" if password.nil?
  data.merge!(to_h(:password))
  { :user => data }
end