dellcloudedge/barclamp-crowbar — pull request #199 by cloudedge (2012-09-19 00:52:00+00:00)
Title: Next Step in Digest - using the User model [1/2]

This pull (reviewed by W Allen) takes another step
towards digest auth working for the API.

It now stores the password in the User model.

There are some items to note:
To use digest, you MUST set the password using "User.digest_password [pass]"
This will MD5 your password and replace the Devise hash

The code is structured so that you can login to EITHER Devise user auth
or Digest after you set your password like this; however, you cannot
use digest until you've done that.

Currently, only the "crowbar" user is setup to do this. That fix
will be the next pull.

crowbar_framework/BDD/crowbar.erl | 1 -
crowbar_framework/BDD/eurl.erl | 5 +-
crowbar_framework/BDD/features/navigation.feature | 3 +-
crowbar_framework/BDD/features/nodes.feature | 2 +-
crowbar_framework/BDD/nodes.erl | 11 ++--
.../app/controllers/application_controller.rb | 2 +-
.../app/controllers/digest_controller.rb | 2 +-
crowbar_framework/app/models/doc.rb | 2 +-
crowbar_framework/app/models/user.rb | 43 +++++++++---
crowbar_framework/config/locales/crowbar/en.yml | 14 ++--
.../migrate/20120801153900_devise_create_users.rb | 4 +-
crowbar_framework/test/test_helper.rb | 3 +-
crowbar_framework/test/unit/user_model_test.rb | 73 ++++++++++++++++++++
13 files changed, 133 insertions(+), 32 deletions(-)