Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HTTP Basic/Digest Auth in Rails

ActionController::HttpAuthentication::Basic::ControllerMethods

  • authenticate_or_request_with_http_basic(realm = "Application", &login_procedure)
  • authenticate_with_http_basic(&login_procedure)
  • request_http_basic_authentication(realm = "Application")

ActionController::HttpAuthentication::Digest::ControllerMethods

  • authenticate_or_request_with_http_digest(realm = "Application", &password_procedure)
  • authenticate_with_http_digest(realm = "Application", &password_procedure)
  • request_http_digest_authentication(realm = "Application", message = nil)

ActionController::HttpAuthentication::Digest

  • authenticate(request, realm, &password_procedure)

refs

http://api.rubyonrails.org/files/actionpack/lib/action_controller/metal/http_authentication_rb.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.