Skip to content

Instantly share code, notes, and snippets.

@cypher
Created May 12, 2009 11:43
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 cypher/110428 to your computer and use it in GitHub Desktop.
Save cypher/110428 to your computer and use it in GitHub Desktop.
app = Rack::Auth::Digest::MD5.new(my_unprotected_app) do |username|
{ 'Alice' => 'correct-password' }[username]
end
app.realm = realm
app.opaque = 'this-should-be-secret'
run app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment