# File lib/deltacloud/helpers/auth_helper.rb, line 60 def authorize! r = "#{Thread.current[:driver]}-deltacloud@#{ENV['HOSTNAME']}" response['WWW-Authenticate'] = %Q(Basic realm="#{r}") throw(:halt, [401, report_error(401)]) end
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/deltacloud/helpers/auth_helper.rb, line 68 def credentials LazyCredentials.new(self) end