Module: Rack::Reqorder::Monitor::Helpers

Defined in:
lib/rack/reqorder/monitor/helpers.rb

Defined Under Namespace

Classes: AuthorizationHeader

Instance Method Summary collapse

Instance Method Details

#authenticate_user!(params) ⇒ Object



7
8
9
# File 'lib/rack/reqorder/monitor/helpers.rb', line 7

def authenticate_user!(params)
  authenticate_user(params) ? true : error!('401 Unauthorized', 401)
end

#authorize_user!(headers) ⇒ Object



3
4
5
# File 'lib/rack/reqorder/monitor/helpers.rb', line 3

def authorize_user!(headers)
  authorize_user(headers) ? true : error!('403 Forbidden', 403)
end