Class/Module Index [+]

Quicksearch

Sinatra::LazyAuth

Public Instance Methods

authorize!() click to toggle source
# File lib/sinatra/lazy_auth.rb, line 63
def authorize!
  r = "#{driver_symbol}-deltacloud@#{HOSTNAME}"
  response['WWW-Authenticate'] = %(Basic realm="#{r}")
  throw(:halt, [401, "Not authorized\n"])
end
credentials() click to toggle source

Request the current user's credentials. Actual credentials are only requested when an attempt is made to get the user name or password

# File lib/sinatra/lazy_auth.rb, line 71
def credentials
  LazyCredentials.new(self)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.