Skip to content

Instantly share code, notes, and snippets.

@adrianpike
Created November 26, 2010 21:47
Show Gist options
  • Save adrianpike/717255 to your computer and use it in GitHub Desktop.
Save adrianpike/717255 to your computer and use it in GitHub Desktop.
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
require 'rack'
protected = Rack::Auth::Basic.new(Foobar::Application) do |username, password|
'secret' == password
'foodebiz' == username
end
protected.realm = 'GO AWAY PLOX'
run protected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment