Skip to content

Instantly share code, notes, and snippets.

@raggi
Created November 2, 2012 16:31
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 raggi/3af15d688e3ace9d31a5 to your computer and use it in GitHub Desktop.
Save raggi/3af15d688e3ace9d31a5 to your computer and use it in GitHub Desktop.
class MyBasic < Rack::Auth::Basic
def valid?(auth)
@authenticator.call(auth.credentials[0], auth.credentials[1], auth.request)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment