Skip to content

Instantly share code, notes, and snippets.

@danielevans
Last active December 10, 2015 22:59
Show Gist options
  • Save danielevans/4506577 to your computer and use it in GitHub Desktop.
Save danielevans/4506577 to your computer and use it in GitHub Desktop.
# simple sinatra auth
use Rack::Auth::Basic, "Restricted Area" do |username, password|
{
"admin1" => "password1",
"admin2" => "password2"
}[username] == password
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment