dellcloudedge/barclamp-crowbar — pull request #188 by cloudedge (2012-09-09 03:53:33+00:00)
Title: Working Digest Auth - based on User object [1/5]

This pull fixes the digest auth so it works the right way
and BDD tests will pass.

Unlike previous attempts (or 1x) digest, this one actually checks
the password on each request.

The User object is used to lookup password, but is hardcoded
to require "crowbar" as the password.

BDD tests mostly pass - now I can fix the tests.

This may also fix the API requests that has been breaking.

crowbar_framework/BDD/digest_auth.erl | 10 +++++++---
.../app/controllers/application_controller.rb | 15 +++++++++++++--
.../app/controllers/digest_controller.rb | 12 +++++-------
.../app/controllers/nodes_controller.rb | 2 --
crowbar_framework/app/models/user.rb | 8 ++++++++
crowbar_framework/config/initializers/devise.rb | 2 +-
6 files changed, 34 insertions(+), 15 deletions(-)