Permalink
Browse files

Release v2.0 RC1

  • Loading branch information...
1 parent dbf37ed commit 605162d30b284d4ec8ed540cced4c5735f1d2ad9 @binarylogic binarylogic committed Mar 21, 2009
Showing with 3,197 additions and 2,760 deletions.
  1. +10 −0 CHANGELOG.rdoc
  2. +0 −76 Manifest
  3. +108 −0 Manifest.txt
  4. +104 −389 README.rdoc
  5. +14 −7 Rakefile
  6. +23 −33 lib/authlogic.rb
  7. +42 −0 lib/authlogic/acts_as_authentic/base.rb
  8. +37 −0 lib/authlogic/acts_as_authentic/config.rb
  9. +72 −0 lib/authlogic/acts_as_authentic/email.rb
  10. +42 −0 lib/authlogic/acts_as_authentic/logged_in_status.rb
  11. +60 −0 lib/authlogic/acts_as_authentic/login.rb
  12. +18 −0 lib/authlogic/acts_as_authentic/magic_columns.rb
  13. +189 −0 lib/authlogic/acts_as_authentic/password.rb
  14. +91 −0 lib/authlogic/acts_as_authentic/perishable_token.rb
  15. +60 −0 lib/authlogic/acts_as_authentic/persistence_token.rb
  16. +42 −0 lib/authlogic/acts_as_authentic/restful_authentication.rb
  17. +24 −0 lib/authlogic/acts_as_authentic/scope.rb
  18. +113 −0 lib/authlogic/acts_as_authentic/session_maintenance.rb
  19. +44 −0 lib/authlogic/acts_as_authentic/single_access_token.rb
  20. +10 −6 lib/authlogic/{session/authenticates_many_association.rb → authenticates_many/association.rb}
  21. +54 −0 lib/authlogic/authenticates_many/base.rb
  22. +2 −3 lib/authlogic/controller_adapters/abstract_adapter.rb
  23. +0 −4 lib/authlogic/controller_adapters/merb_adapter.rb
  24. +0 −4 lib/authlogic/controller_adapters/rails_adapter.rb
  25. +0 −2 lib/authlogic/crypto_providers/aes256.rb
  26. +0 −2 lib/authlogic/crypto_providers/bcrypt.rb
  27. +0 −2 lib/authlogic/crypto_providers/sha1.rb
  28. +1 −3 lib/authlogic/crypto_providers/sha512.rb
  29. +1 −3 lib/authlogic/i18n.rb
  30. +0 −22 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/base.rb
  31. +0 −238 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/config.rb
  32. +0 −152 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/credentials.rb
  33. +0 −51 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/logged_in.rb
  34. +0 −71 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/perishability.rb
  35. +0 −94 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/persistence.rb
  36. +0 −86 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/session_maintenance.rb
  37. +0 −61 lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/single_access.rb
  38. +0 −58 lib/authlogic/orm_adapters/active_record_adapter/authenticates_many.rb
  39. +2 −0 lib/authlogic/random.rb
  40. +8 −8 lib/authlogic/session/active_record_trickery.rb
  41. +128 −252 lib/authlogic/session/base.rb
  42. +36 −27 lib/authlogic/session/brute_force_protection.rb
  43. +23 −15 lib/authlogic/session/callbacks.rb
  44. +0 −421 lib/authlogic/session/config.rb
  45. +97 −23 lib/authlogic/session/cookies.rb
  46. +12 −1 lib/authlogic/session/errors.rb
  47. +23 −0 lib/authlogic/session/http_auth.rb
  48. +75 −0 lib/authlogic/session/magic_columns.rb
  49. +58 −0 lib/authlogic/session/magic_states.rb
  50. +82 −19 lib/authlogic/session/params.rb
  51. +159 −0 lib/authlogic/session/password.rb
  52. +4 −4 lib/authlogic/session/{perishability.rb → perishable_token.rb}
  53. +0 −24 lib/authlogic/session/record_info.rb
  54. +60 −56 lib/authlogic/session/scopes.rb
  55. +44 −39 lib/authlogic/session/session.rb
  56. +63 −31 lib/authlogic/session/timeout.rb
  57. +42 −0 lib/authlogic/session/unauthorized_record.rb
  58. +3 −3 lib/authlogic/testing/test_unit_helpers.rb
  59. +3 −3 lib/authlogic/version.rb
  60. +15 −0 test/acts_as_authentic_tests/base_test.rb
  61. +10 −0 test/acts_as_authentic_tests/config_test.rb
  62. +79 −0 test/acts_as_authentic_tests/email_test.rb
  63. +36 −0 test/acts_as_authentic_tests/logged_in_status_test.rb
  64. +79 −0 test/acts_as_authentic_tests/login_test.rb
  65. +27 −0 test/acts_as_authentic_tests/magic_columns_test.rb
  66. +212 −0 test/acts_as_authentic_tests/password_test.rb
  67. +56 −0 test/acts_as_authentic_tests/perishable_token_test.rb
  68. +55 −0 test/acts_as_authentic_tests/persistence_token_test.rb
  69. +68 −0 test/acts_as_authentic_tests/session_maintenance_test.rb
  70. +39 −0 test/acts_as_authentic_tests/single_access_test.rb
  71. +16 −0 test/authenticates_many_test.rb
  72. +4 −4 test/fixtures/employees.yml
  73. +5 −5 test/fixtures/users.yml
  74. +6 −0 test/libs/company.rb
  75. +7 −0 test/libs/employee.rb
  76. +2 −0 test/libs/employee_session.rb
  77. +3 −0 test/libs/project.rb
  78. +2 −0 test/libs/user_session.rb
  79. +8 −0 test/session_tests/active_record_trickery_test.rb
  80. +19 −142 test/session_tests/base_test.rb
  81. +9 −1 test/session_tests/brute_force_protection_test.rb
  82. +6 −0 test/session_tests/callbacks_test.rb
  83. +0 −184 test/session_tests/config_test.rb
  84. +72 −7 test/session_tests/cookies_test.rb
  85. +16 −0 test/session_tests/http_auth_test.rb
  86. +55 −0 test/session_tests/magic_columns_test.rb
  87. +56 −0 test/session_tests/magic_states_test.rb
  88. +28 −11 test/session_tests/params_test.rb
  89. +72 −0 test/session_tests/password_test.rb
  90. +1 −2 test/session_tests/scopes_test.rb
  91. +14 −31 test/session_tests/session_test.rb
  92. +15 −55 test/session_tests/timeout_test.rb
  93. +12 −0 test/session_tests/unauthorized_record_test.rb
  94. +10 −25 test/test_helper.rb
  95. 0 {test/session_tests → test_old}/authenticates_many_association_test.rb
  96. 0 ...→ test_old}/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/config_test.rb
  97. 0 ...t_old}/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/credentials_test.rb
  98. 0 ...est_old}/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/logged_in_test.rb
  99. 0 ...old}/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/perishability_test.rb
  100. 0 ...t_old}/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/persistence_test.rb
  101. 0 ...rm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/session_maintenance_test.rb
  102. 0 ...old}/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/single_access_test.rb
  103. 0 {test → test_old}/orm_adapters_tests/active_record_adapter_tests/authenticates_many_test.rb
View
@@ -1,3 +1,13 @@
+== 2.0.0 RC 1
+
+* Refactored nearly all code and tests, especially acts_as_authentic. Got rid of the meta programming and rewrote to use modules and hooks.
+* Changed configuration method for acts_as_authentic to accept a block instead of a hash.
+* Added more hooks / callbacks to Session::Base.
+* Reorganized all modules to contain related configuration options and any other relevant code.
+* Split out authentication by password and unauthorized record into their own modules, to make way for alternate authentication add ons (OpenId, etc)
+* The record attribute will NEVER be set until after validation passes, similar to how ActiveRecord executes UPDATEs and CREATEs.
+* Fixed bug with session maintenance where user would log in as new user when creating another user account, typically an admin function.
+
== 1.4.4
* Moved session maintenance to a before_save, to save on queries executed and to skip an unexpected / additional save on the user object.
View
@@ -1,76 +0,0 @@
-CHANGELOG.rdoc
-generators/session/session_generator.rb
-generators/session/templates/session.rb
-init.rb
-lib/authlogic/controller_adapters/abstract_adapter.rb
-lib/authlogic/controller_adapters/merb_adapter.rb
-lib/authlogic/controller_adapters/rails_adapter.rb
-lib/authlogic/crypto_providers/aes256.rb
-lib/authlogic/crypto_providers/bcrypt.rb
-lib/authlogic/crypto_providers/sha1.rb
-lib/authlogic/crypto_providers/sha512.rb
-lib/authlogic/i18n.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/base.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/config.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/credentials.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/logged_in.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/perishability.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/persistence.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/session_maintenance.rb
-lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/single_access.rb
-lib/authlogic/orm_adapters/active_record_adapter/authenticates_many.rb
-lib/authlogic/session/active_record_trickery.rb
-lib/authlogic/session/authenticates_many_association.rb
-lib/authlogic/session/base.rb
-lib/authlogic/session/brute_force_protection.rb
-lib/authlogic/session/callbacks.rb
-lib/authlogic/session/config.rb
-lib/authlogic/session/cookies.rb
-lib/authlogic/session/errors.rb
-lib/authlogic/session/params.rb
-lib/authlogic/session/perishability.rb
-lib/authlogic/session/record_info.rb
-lib/authlogic/session/scopes.rb
-lib/authlogic/session/session.rb
-lib/authlogic/session/timeout.rb
-lib/authlogic/testing/test_unit_helpers.rb
-lib/authlogic/version.rb
-lib/authlogic.rb
-Manifest
-MIT-LICENSE
-Rakefile
-README.rdoc
-shoulda_macros/authlogic.rb
-test/crypto_provider_tests/aes256_test.rb
-test/crypto_provider_tests/bcrypt_test.rb
-test/crypto_provider_tests/sha1_test.rb
-test/crypto_provider_tests/sha512_test.rb
-test/fixtures/companies.yml
-test/fixtures/employees.yml
-test/fixtures/projects.yml
-test/fixtures/users.yml
-test/libs/mock_controller.rb
-test/libs/mock_cookie_jar.rb
-test/libs/mock_request.rb
-test/libs/ordered_hash.rb
-test/libs/user.rb
-test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/config_test.rb
-test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/credentials_test.rb
-test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/logged_in_test.rb
-test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/perishability_test.rb
-test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/persistence_test.rb
-test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/session_maintenance_test.rb
-test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/single_access_test.rb
-test/orm_adapters_tests/active_record_adapter_tests/authenticates_many_test.rb
-test/session_tests/active_record_trickery_test.rb
-test/session_tests/authenticates_many_association_test.rb
-test/session_tests/base_test.rb
-test/session_tests/brute_force_protection_test.rb
-test/session_tests/config_test.rb
-test/session_tests/cookies_test.rb
-test/session_tests/params_test.rb
-test/session_tests/perishability_test.rb
-test/session_tests/scopes_test.rb
-test/session_tests/session_test.rb
-test/session_tests/timeout_test.rb
-test/test_helper.rb
View
@@ -0,0 +1,108 @@
+CHANGELOG.rdoc
+MIT-LICENSE
+Manifest.txt
+README.rdoc
+Rakefile
+generators/session/session_generator.rb
+generators/session/templates/session.rb
+init.rb
+lib/authlogic.rb
+lib/authlogic/acts_as_authentic/base.rb
+lib/authlogic/acts_as_authentic/config.rb
+lib/authlogic/acts_as_authentic/email.rb
+lib/authlogic/acts_as_authentic/logged_in_status.rb
+lib/authlogic/acts_as_authentic/login.rb
+lib/authlogic/acts_as_authentic/magic_columns.rb
+lib/authlogic/acts_as_authentic/password.rb
+lib/authlogic/acts_as_authentic/perishable_token.rb
+lib/authlogic/acts_as_authentic/persistence_token.rb
+lib/authlogic/acts_as_authentic/restful_authentication.rb
+lib/authlogic/acts_as_authentic/scope.rb
+lib/authlogic/acts_as_authentic/session_maintenance.rb
+lib/authlogic/acts_as_authentic/single_access_token.rb
+lib/authlogic/authenticates_many/association.rb
+lib/authlogic/authenticates_many/base.rb
+lib/authlogic/controller_adapters/abstract_adapter.rb
+lib/authlogic/controller_adapters/merb_adapter.rb
+lib/authlogic/controller_adapters/rails_adapter.rb
+lib/authlogic/crypto_providers/aes256.rb
+lib/authlogic/crypto_providers/bcrypt.rb
+lib/authlogic/crypto_providers/sha1.rb
+lib/authlogic/crypto_providers/sha512.rb
+lib/authlogic/i18n.rb
+lib/authlogic/random.rb
+lib/authlogic/session/active_record_trickery.rb
+lib/authlogic/session/base.rb
+lib/authlogic/session/brute_force_protection.rb
+lib/authlogic/session/callbacks.rb
+lib/authlogic/session/cookies.rb
+lib/authlogic/session/errors.rb
+lib/authlogic/session/http_auth.rb
+lib/authlogic/session/magic_columns.rb
+lib/authlogic/session/magic_states.rb
+lib/authlogic/session/params.rb
+lib/authlogic/session/password.rb
+lib/authlogic/session/perishable_token.rb
+lib/authlogic/session/scopes.rb
+lib/authlogic/session/session.rb
+lib/authlogic/session/timeout.rb
+lib/authlogic/session/unauthorized_record.rb
+lib/authlogic/testing/test_unit_helpers.rb
+lib/authlogic/version.rb
+shoulda_macros/authlogic.rb
+test/acts_as_authentic_tests/base_test.rb
+test/acts_as_authentic_tests/config_test.rb
+test/acts_as_authentic_tests/email_test.rb
+test/acts_as_authentic_tests/logged_in_status_test.rb
+test/acts_as_authentic_tests/login_test.rb
+test/acts_as_authentic_tests/magic_columns_test.rb
+test/acts_as_authentic_tests/password_test.rb
+test/acts_as_authentic_tests/perishable_token_test.rb
+test/acts_as_authentic_tests/persistence_token_test.rb
+test/acts_as_authentic_tests/session_maintenance_test.rb
+test/acts_as_authentic_tests/single_access_test.rb
+test/authenticates_many_test.rb
+test/crypto_provider_tests/aes256_test.rb
+test/crypto_provider_tests/bcrypt_test.rb
+test/crypto_provider_tests/sha1_test.rb
+test/crypto_provider_tests/sha512_test.rb
+test/fixtures/companies.yml
+test/fixtures/employees.yml
+test/fixtures/projects.yml
+test/fixtures/users.yml
+test/libs/company.rb
+test/libs/employee.rb
+test/libs/employee_session.rb
+test/libs/mock_controller.rb
+test/libs/mock_cookie_jar.rb
+test/libs/mock_request.rb
+test/libs/ordered_hash.rb
+test/libs/project.rb
+test/libs/user.rb
+test/libs/user_session.rb
+test/random_tests/random_test.rb
+test/session_tests/active_record_trickery_test.rb
+test/session_tests/base_test.rb
+test/session_tests/brute_force_protection_test.rb
+test/session_tests/callbacks_test.rb
+test/session_tests/cookies_test.rb
+test/session_tests/http_auth_test.rb
+test/session_tests/magic_columns_test.rb
+test/session_tests/magic_states_test.rb
+test/session_tests/params_test.rb
+test/session_tests/password_test.rb
+test/session_tests/perishability_test.rb
+test/session_tests/scopes_test.rb
+test/session_tests/session_test.rb
+test/session_tests/timeout_test.rb
+test/session_tests/unauthorized_record_test.rb
+test/test_helper.rb
+test_old/authenticates_many_association_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/config_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/credentials_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/logged_in_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/perishability_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/persistence_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/session_maintenance_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/single_access_test.rb
+test_old/orm_adapters_tests/active_record_adapter_tests/authenticates_many_test.rb
Oops, something went wrong. Retry.

0 comments on commit 605162d

Please sign in to comment.