Skip to content

Instantly share code, notes, and snippets.

@kenichi
Created October 24, 2011 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenichi/1309647 to your computer and use it in GitHub Desktop.
Save kenichi/1309647 to your computer and use it in GitHub Desktop.
basic auth in sinatra
use Rack::Auth::Basic, "Nope" do |u, p|
[u, p] == ['user', 'password']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment