class Aspera::WebAuth::FxGwServlet

server for auth page

Public Class Methods

new(server,info) click to toggle source
# File lib/aspera/web_auth.rb, line 9
def initialize(server,info) # additional args get here
  @shared=info
end

Public Instance Methods

do_GET(request, response) click to toggle source
# File lib/aspera/web_auth.rb, line 13
def do_GET (request, response)
  if ! request.path.eql?(@shared[:expected_path])
    response.status=400
    return
  end
  @shared[:mutex].synchronize do
    @shared[:query]=request.query
    @shared[:cond].signal
  end
  response.status=200
  response.content_type = 'text/html'
  response.body='<html><head><title>Ok</title></head><body><h1>Thank you !</h1><p>You can close this window.</p></body></html>'
end