Module: Rhoconnect::Handler::Authenticate::ExecuteMethods

Included in:
Server
Defined in:
lib/rhoconnect/handler/authenticate/execute_methods.rb

Instance Method Summary collapse

Instance Method Details

#execute_admin_authenticate_handler(route_handler) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/rhoconnect/handler/authenticate/execute_methods.rb', line 10

def execute_admin_authenticate_handler(route_handler)
  token = ''
  _logout
  (route_handler)
    u = User.load(params[:login])
    token = _do_get_api_token(params, u)
end

#execute_authenticate_handler(route_handler) ⇒ Object



5
6
7
8
# File 'lib/rhoconnect/handler/authenticate/execute_methods.rb', line 5

def execute_authenticate_handler(route_handler)
  _logout
  (route_handler)
end

#execute_rps_authenticate_handler(route_handler) ⇒ Object



18
19
20
21
22
# File 'lib/rhoconnect/handler/authenticate/execute_methods.rb', line 18

def execute_rps_authenticate_handler(route_handler)
   do
    (route_handler) ? status(204) : status(401)
  end
end