Class: Desviar::Authorized

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/desviar.rb

Overview

Class Desviar::Authorized - routes (commands) which require authorization

Class Method Summary collapse

Class Method Details

.newObject



318
319
320
321
322
323
324
# File 'lib/desviar.rb', line 318

def self.new(*)
  app = @auth.authenticate!(super)
#     TODO - scope of request.env is needed
#     user = request.env['REMOTE_USER']
  Desviar::Public::log "Authenticated new user session"
  app
end