Class: Console::Auth::RemoteUser::RemoteUser

Inherits:
RestApi::Authorization show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion
Defined in:
app/controllers/console/auth/remote_user.rb

Instance Attribute Summary

Attributes inherited from RestApi::Authorization

#password, #ticket

Instance Method Summary collapse

Methods inherited from RestApi::Authorization

#cache_key

Constructor Details

#initialize(username, headers) ⇒ RemoteUser

Returns a new instance of RemoteUser.



14
15
16
17
# File 'app/controllers/console/auth/remote_user.rb', line 14

def initialize(username, headers)
  @username = username
  @headers = headers.freeze
end

Instance Method Details

#email_addressObject



21
22
23
# File 'app/controllers/console/auth/remote_user.rb', line 21

def email_address
  nil
end

#loginObject



18
19
20
# File 'app/controllers/console/auth/remote_user.rb', line 18

def 
  @username
end

#persisted?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/controllers/console/auth/remote_user.rb', line 27

def persisted?
  false
end

#to_headersObject



24
25
26
# File 'app/controllers/console/auth/remote_user.rb', line 24

def to_headers
  @headers
end