The main files to look at include:
-
app/controllers/application_controller.rb - before_filter to call authenticate on every action.
-
app/controllers/auth_controller.rb - contains empty digest_auth action and the authenticate method.
-
config/routes.rb - the digest_auth route
-
config/initializers/core_extensions.rb - load some ruby core extenstions
-
lib/core_ext/* - the handy ruby core extenstions
-
/test/test_helper.rb - has the ‘setup_digest_auth’ and ‘authenticate_with_http_digest’ methods.
-
/test/functional/auth_controller_test.rb - The simple authorization test in test/unit.