authlogic 2.1.11 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of authlogic might be problematic. Click here for more details.
- data/Gemfile +9 -1
- data/Gemfile.lock +39 -15
- data/LICENSE +1 -1
- data/README.rdoc +19 -8
- data/Rakefile +19 -0
- data/VERSION.yml +4 -4
- data/authlogic.gemspec +214 -18
- data/lib/authlogic/acts_as_authentic/email.rb +12 -12
- data/lib/authlogic/acts_as_authentic/logged_in_status.rb +2 -2
- data/lib/authlogic/acts_as_authentic/login.rb +14 -14
- data/lib/authlogic/acts_as_authentic/password.rb +2 -2
- data/lib/authlogic/acts_as_authentic/perishable_token.rb +15 -15
- data/lib/authlogic/acts_as_authentic/persistence_token.rb +1 -1
- data/lib/authlogic/acts_as_authentic/session_maintenance.rb +2 -15
- data/lib/authlogic/authenticates_many/base.rb +3 -4
- data/lib/authlogic/controller_adapters/sinatra_adapter.rb +1 -1
- data/lib/authlogic/regex.rb +8 -9
- data/lib/authlogic/session/active_record_trickery.rb +9 -1
- data/lib/authlogic/session/callbacks.rb +1 -1
- data/lib/authlogic/session/cookies.rb +15 -15
- data/lib/authlogic/session/foundation.rb +8 -0
- data/lib/authlogic/session/validation.rb +2 -2
- data/lib/generators/authlogic/USAGE +8 -0
- data/lib/generators/authlogic/session_generator.rb +14 -0
- data/lib/generators/authlogic/templates/session.rb +2 -0
- data/test/acts_as_authentic_test/base_test.rb +1 -1
- data/test/acts_as_authentic_test/email_test.rb +26 -22
- data/test/acts_as_authentic_test/logged_in_status_test.rb +1 -1
- data/test/acts_as_authentic_test/login_test.rb +21 -21
- data/test/acts_as_authentic_test/magic_columns_test.rb +1 -1
- data/test/acts_as_authentic_test/password_test.rb +1 -1
- data/test/acts_as_authentic_test/perishable_token_test.rb +1 -1
- data/test/acts_as_authentic_test/persistence_token_test.rb +1 -1
- data/test/acts_as_authentic_test/restful_authentication_test.rb +1 -1
- data/test/acts_as_authentic_test/session_maintenance_test.rb +1 -1
- data/test/acts_as_authentic_test/single_access_test.rb +1 -1
- data/test/authenticates_many_test.rb +1 -1
- data/test/crypto_provider_test/aes256_test.rb +1 -1
- data/test/crypto_provider_test/bcrypt_test.rb +1 -1
- data/test/crypto_provider_test/sha1_test.rb +1 -1
- data/test/crypto_provider_test/sha256_test.rb +1 -1
- data/test/crypto_provider_test/sha512_test.rb +1 -1
- data/test/i18n_test.rb +1 -1
- data/test/random_test.rb +1 -1
- data/test/session_test/activation_test.rb +1 -1
- data/test/session_test/active_record_trickery_test.rb +16 -6
- data/test/session_test/brute_force_protection_test.rb +1 -1
- data/test/session_test/callbacks_test.rb +1 -1
- data/test/session_test/cookies_test.rb +43 -21
- data/test/session_test/existence_test.rb +1 -1
- data/test/session_test/http_auth_test.rb +1 -1
- data/test/session_test/id_test.rb +1 -1
- data/test/session_test/klass_test.rb +1 -1
- data/test/session_test/magic_columns_test.rb +1 -1
- data/test/session_test/magic_states_test.rb +1 -1
- data/test/session_test/params_test.rb +1 -1
- data/test/session_test/password_test.rb +1 -1
- data/test/session_test/perishability_test.rb +1 -1
- data/test/session_test/persistence_test.rb +1 -1
- data/test/session_test/scopes_test.rb +1 -1
- data/test/session_test/session_test.rb +1 -1
- data/test/session_test/timeout_test.rb +1 -1
- data/test/session_test/unauthorized_record_test.rb +1 -1
- data/test/session_test/validation_test.rb +1 -1
- data/test/test_helper.rb +3 -19
- metadata +59 -96
- checksums.yaml +0 -7
- data/.gitignore +0 -10
- data/CHANGELOG.rdoc +0 -345
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: 3203bbce50c553b0b0c99097a8ad6f6c6a4a217d
|
4
|
-
data.tar.gz: 13e0bf060300a0f2212a06c7e7cb115e43b641fb
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 6f16e10584c146cd3d9b27a86930bb27b8b3b2254ceeb02cf484203cc0d531b6940dfa951c815051b872344936eb55a2aaee1726ce092e4aeb2bdc72739656d9
|
7
|
-
data.tar.gz: eb9dba329e7508027d7fd7d7e52121e48d63bf2a2bf125e459d406e5e0e870c132e69e9d03ab8428813c4d62cad9197c6aefa05ee5707929bb4364fbaf85275f
|
data/.gitignore
DELETED
data/CHANGELOG.rdoc
DELETED
@@ -1,345 +0,0 @@
|
|
1
|
-
== 2.1.2
|
2
|
-
|
3
|
-
* Return the newly create object for the class level create method, instead of a boolean
|
4
|
-
* Add a model_name class method for Authlogic::Session for rails 3 compatibility. Will be using ActiveModel eventually, but this should be a quick fix.
|
5
|
-
|
6
|
-
== 2.1.1 released 2009-7-04
|
7
|
-
|
8
|
-
* Use mb_chars when downcasing the login string to support international characters.
|
9
|
-
* Check for the existence of the :remember_me key before setting remember_me off of a hash.
|
10
|
-
* Added check to make sure Authlogic is not loaded too late, causing a NotActivated error.
|
11
|
-
|
12
|
-
== 2.1.0 released 2009-6-27
|
13
|
-
|
14
|
-
* Fixed bug when using act_like_restful_authentication and setting passwords, needed to add a 2nd parameter to tell if to check against the database or not.
|
15
|
-
* Don't save record if they are read only.
|
16
|
-
|
17
|
-
== 2.0.14 released 2009-6-13
|
18
|
-
|
19
|
-
* Fixed issue with using brute force protection AND generalize_credentials_error_messages. Brute force protection was looking to see if there were password errors, which generalize_credentials_error_messages was obfuscating.
|
20
|
-
* Added db_setup? method to avoid errors during rake tasks where the db might not be set up. Ex: migrations
|
21
|
-
* Stop using errors.on(key) since that is now deprecated in Rails. Use errors[key] instead.
|
22
|
-
* Use valid_password? for the method name to validate a password instead of valid_#{password_field}?.
|
23
|
-
|
24
|
-
== 2.0.13 released 2009-5-13
|
25
|
-
|
26
|
-
* Add authlogic/regex.rb to manifest
|
27
|
-
|
28
|
-
== 2.0.12 released 2009-5-13
|
29
|
-
|
30
|
-
* Added the ability to add a last_request_update_allowed? method in your controller to pragmatically tell Authlogic when and when not to update the last_request_at field in your database. This only takes effect if the method if present.
|
31
|
-
* Extracted Authlogic's regular expressions into it's own module to allow easy use of them outside of Authlogic. See Authlogic::Regex for more info.
|
32
|
-
* Made being_brute_force_protected? true for the Authlogic::Session::BruteForceProtection module.
|
33
|
-
* Added the configuration option generalize_credentials_error_messages for the Authlogic::Session::Password module. This allows you to generalize your login / password errors messages as to not reveal was the problem was when authenticating. If enabled, when an invalid login is supplied it will use the same exact error message when an invalid password is supplied.
|
34
|
-
* Update email regular expression to use A-Z0-9 instead of /w as to not allow for diacritical marks in an email address.
|
35
|
-
* Changed config() convenience method to rw_config() to be more descriptive and less vague.
|
36
|
-
|
37
|
-
== 2.0.11 released 2009-4-25
|
38
|
-
|
39
|
-
* Fix bug when password is turned off and the SingleAccessToken module calls the after_password_set callback.
|
40
|
-
* HTTP basic auth can now be toggled on or off. It also checks for the existence of a standard username and password before enabling itself.
|
41
|
-
* Added option check_passwords_against_database for Authlogic::ActsAsAuthentic::Password to toggle between checking the password against the database value or the object value. Also added the same functionality to the instance method: valid_password?("password", true), where the second argument tells Authlogic to check the password against the database value. The default for this new feature is true.
|
42
|
-
* Add a maintain_sessions configuration option to Authlogic::ActsAsAuthentic::SessionMaintenance as a "clearer" option to disable automatic session maintenance.
|
43
|
-
* single_access_allowed_request_types can also be equal to :all instead of just [:all].
|
44
|
-
* Refactor params_enabled? so that the single_access_allowed? method in controllers takes precedence.
|
45
|
-
* Added testing comments in the README and expanded on the documentation in Authlogic::TestCase
|
46
|
-
|
47
|
-
== 2.0.10 released 2009-4-21
|
48
|
-
|
49
|
-
* Mock request is now transparent to non existent methods. Since the methods calls really have no functional value when testing authlogic.
|
50
|
-
* Allow password confirmation to be disabled.
|
51
|
-
* Modified login format validation to allow for the + character since emails addresses allow that as a valid character.
|
52
|
-
* Added merge_* configuration methods for acts_as_authentic to make merging options into configuration options that default to hashes. Just a few convenience methods.
|
53
|
-
|
54
|
-
== 2.0.9 released 2009-4-9
|
55
|
-
|
56
|
-
* Fixed bug where hooks provided by the password module were called when the password module was not being used due to the fact that the password field did not exist.
|
57
|
-
* Fixed bug where the find_with_login method was not being aliased if you were using an alternate field besides login.
|
58
|
-
|
59
|
-
== 2.0.8 release 2009-4-9
|
60
|
-
|
61
|
-
* Dont reset the @password_changed instance variable to false because its halts the callback chain, instead reset it to nil.
|
62
|
-
|
63
|
-
== 2.0.7 released 2009-4-9
|
64
|
-
|
65
|
-
* Rename TestCase::ControllerAdapter to TestCase::RailsRequestAdapter to help clarify it's usage and fix a constant typo.
|
66
|
-
|
67
|
-
== 2.0.6 released 2009-4-9
|
68
|
-
|
69
|
-
* Don't use second, use [1] instead so older rails versions don't complain.
|
70
|
-
* Update email regular expression to be less TLD specific: (?:[A-Z]{2,4}|museum|travel)
|
71
|
-
* Update shoulda macro for 2.0
|
72
|
-
* validates_length_of_password_confirmation_field_options defaults to validates_confirmation_of_password_field_options
|
73
|
-
* Use MockCookieJar in tests instead of a Hash in the MockController.
|
74
|
-
* Cookies now store the record id as well, for faster lookup. Also to avoid the need to use sessions since sessions are lazily loaded in rails 2.3+
|
75
|
-
* Add configuration option for Authlogic::ActsAsAuthentic: ignore_blank_passwords
|
76
|
-
* Fix cookie_domain in rails adapter
|
77
|
-
* Make password and login fields optional. This allows you to have an alternate authentication method as your main authentication source. Such as OpenID, LDAP, or whatever you want.
|
78
|
-
* Reset the @password_changed instance variable after the record has been saved.
|
79
|
-
* Add referer and user_agent to mock requests for testing purposes.
|
80
|
-
* Add :case_sensitive => false to validates_uniqueness_of calls on the login and email fields.
|
81
|
-
* MockRequest not tries to use controller.env['REMOTE_ADDR'] for the IP address in tests.
|
82
|
-
* Add in custom find_with_email and find_with_login methods to perform case insensitive searches for databases that are case sensitive by default. This is only done if the :case_insensitive option for validates_uniqueness_of_login_field_options or validates_uniqueness_of_email_field_options is set to false. Which, as of this version, it is. If you are using MySQL this has been the default behavior all along. If you are using SQLite or Postgres this has NOT been the default behavior.
|
83
|
-
* Added in exception explaining that you are using the old configuration for acts_as_authentic with an example of the new format.
|
84
|
-
|
85
|
-
== 2.0.5 released 2009-3-30
|
86
|
-
|
87
|
-
* Stub out authenticate_with_http_basic for TestCase::ControllerAdapter.
|
88
|
-
* Added second parameter for add_acts_as_authentic module to specify the position: append or prepend.
|
89
|
-
|
90
|
-
== 2.0.4 released 2009-3-28
|
91
|
-
|
92
|
-
* Added validates_uniqueness_of_login_field_options and validates_uniqueness_of_email_field_options configuration options
|
93
|
-
* Add in checks to make sure session_class is not nil.
|
94
|
-
* Cleaned up TestCase some more and added functionality to log users in during functional tests.
|
95
|
-
|
96
|
-
== 2.0.3 released 2009-3-26
|
97
|
-
|
98
|
-
* Fixed error where default session class does not exist.
|
99
|
-
* Fixed human_name for the model to use its own human name and not delegate to the associated model. Translation should be under authlogic.models.user_session (or whatever the name of your session is).
|
100
|
-
* Fixed human_attribute_name to use Authlogic keys for translation instead of ActiveRecord: authlogic.attributes.user_session.login
|
101
|
-
* For transitioning from restful_authentication, set the REST_AUTH_SITE_KEY to '' if it doesn't exist, instead of nil.
|
102
|
-
* Completely rewrote Authlogic::Testing, it's now called Authlogic::TestCase. Testing Authlogic is much easier now. Please see Authlogic::TestCase for more info.
|
103
|
-
|
104
|
-
== 2.0.2 released 2009-3-24
|
105
|
-
|
106
|
-
* Reset failed_login_count if consecutive_failed_logins_limit has been exceed and the failed_login_ban_for has passed.
|
107
|
-
* Update test helpers to use the new configuration scheme.
|
108
|
-
* Fixed issue when logging doesn't update last_request_at, so the next persistence try would fail.
|
109
|
-
|
110
|
-
== 2.0.1 released 2009-3-23
|
111
|
-
|
112
|
-
* Validate length of password.
|
113
|
-
* Dont save sessions with a ! during session maintenance.
|
114
|
-
* Add self_and_descendants_from_active_record for Rails 2.3
|
115
|
-
* Abort acts_as_authentic if there is no DB connection or table.
|
116
|
-
|
117
|
-
== 2.0.0 released 2009-3-23
|
118
|
-
|
119
|
-
* Refactored nearly all code and tests, especially acts_as_authentic. Got rid of the meta programming and rewrote to use modules and hooks. Also moved all configuration into their related modules.
|
120
|
-
* Set up a strong API with hooks to allow you to modify behavior and most importantly, easily create "add on" modules or alternate authentication methods, etc.
|
121
|
-
* Changed configuration method for acts_as_authentic to accept a block instead of a hash.
|
122
|
-
* The record attribute will NEVER be set until after validation passes, similar to how ActiveRecord executes UPDATEs and CREATEs.
|
123
|
-
* Fixed bug with session maintenance where user would log in as new user when creating another user account, typically an admin function.
|
124
|
-
* Brute force protection is only a temporary ban by default, not a permanent one.
|
125
|
-
* Switched to Hoe for gem management instead of Echoe.
|
126
|
-
* Added MD5 crypto provider for legacy systems.
|
127
|
-
* Make password salt field optional for legacy systems.
|
128
|
-
|
129
|
-
== 1.4.4 released 2009-3-2
|
130
|
-
|
131
|
-
* Moved session maintenance to a before_save, to save on queries executed and to skip an unexpected / additional save on the user object.
|
132
|
-
* Extracted random string generation into its own class and leverages SecureRandom if it is available
|
133
|
-
* Move cookies to a higher priority when trying to find the record to help with performance since Rails 3 lazily loads the sessions
|
134
|
-
* Reset perishable token in a before_save instead of a before_validation
|
135
|
-
|
136
|
-
== 1.4.3 released 2009-2-22
|
137
|
-
|
138
|
-
* Fixed issue with brute force protection.
|
139
|
-
|
140
|
-
== 1.4.2 released 2009-2-20
|
141
|
-
|
142
|
-
* Cleaned up callbacks system to use hooks and execute in the proper order.
|
143
|
-
* Added brute force protection. See the consecutive_failed_logins_limit configuration option in Authlogic::Session::Config. Also see Authlogic::Session:BruteForceProtection
|
144
|
-
* Fixed issue with calling stale? when there is no record.
|
145
|
-
* Simon Harris fixed the issue of using lock_version with the associated record and also optimized the library for better performance.
|
146
|
-
* Implemented saving the record during the callback chain to execute as few queries as possible. This way modules can hook into Authlogic, modify the associated record, and not have to worry about saving the record.
|
147
|
-
|
148
|
-
== 1.4.1 released 2009-2-8
|
149
|
-
|
150
|
-
* Fixed I18n key misspelling.
|
151
|
-
* Added I18n keys for ORM error messages.
|
152
|
-
* Use the password_field configuration value for the alias_methods defined in acts_as_authentic/credentials.rb
|
153
|
-
* Change shoulda macros implementation to follow the shoulda documentation
|
154
|
-
* Rails >2.3 uses :domain for the session option instead of :session_domain. Authlogic now uses the proper key in the rails adapter.
|
155
|
-
* Added validate_password attribute to force password validation regardless if the password is blank. This is useful for forms explicitly changing passwords.
|
156
|
-
* The class level find method will return a session object if the session is stale. The protection is that there will be no record associated with that session. This allows you to receive an object and call the stale? method on it to determine why the user must log back in.
|
157
|
-
* Added validate callbacks in Session::Base so you can run callbacks by calling validate :my_method, just like in AR.
|
158
|
-
* Checked for blank persistence tokens when trying to validate passwords, this is where transitioning occurs. People transitioning from older systems never had a persistence token, which means it would be nil here.
|
159
|
-
* Update allowed domain name extensions for email
|
160
|
-
* Ignore default length options for validations if alternate length options are provided, since AR raises an error if 2 different length specifications are provided.
|
161
|
-
|
162
|
-
== 1.4.0 released 2009-1-28
|
163
|
-
|
164
|
-
* Added support for cookie domain, based on your frameworks session domain configuration
|
165
|
-
* Updated test helper functions to use the persistence token config value
|
166
|
-
* Check for UTC times when using Time.now for current_login_at and last_request_at
|
167
|
-
* Single access now looks for a single_access_allowed? method in your controllers to determine if single access should be allowed or not. Allowing you to define exactly when single access is allowed.
|
168
|
-
* Finding the authenticated record uses klass.primary_key instead of assuming id.
|
169
|
-
* BREAKS BACKWARDS COMPATIBILITY: New I18n solution implemented. See Authlogic::I18n for more information.
|
170
|
-
|
171
|
-
== 1.3.9 released 2009-1-9
|
172
|
-
|
173
|
-
* Added the disable_perishable_token_maintenance option to disable the automatic resetting of the perishable_token, meaning you will have to maintain this yourself.
|
174
|
-
* Changed shoulda macro to conform to standards so model is not required to be passed
|
175
|
-
* Modified method definitions for the Session class to check for already defined methods, allowing you to write your own "credential" methods, and Authlogic will not overwrite your custom methods.
|
176
|
-
* Fixed bug when passing :all to single_access_allowed_request_types
|
177
|
-
* Added logout_on_timeout configuration option for Session::Base
|
178
|
-
|
179
|
-
== 1.3.8 released 2008-12-24
|
180
|
-
|
181
|
-
* Only change persistence token if the password is not blank
|
182
|
-
* Normalize the last_request_at_threshold so that you can pass an integer or a date/time range.
|
183
|
-
* Fixed bug where password length validations were not being run because the password value was not blank. It should be run if it is a new record, the password has changed, or the password is blank.
|
184
|
-
* Added disable_magic_states option for sessions, to turn off the automatic checking of "magic states" such as active?, confirmed?, and approved?.
|
185
|
-
|
186
|
-
== 1.3.7 released 2008-11-30
|
187
|
-
|
188
|
-
* Added session generator: script/generate session UserSession
|
189
|
-
* Added Test::Unit helpers file, see testing in the README
|
190
|
-
|
191
|
-
== 1.3.6 released 2008-11-30
|
192
|
-
|
193
|
-
* Modified validates_length_of for password so that there is a fallback validation if the passed "if statement" fails
|
194
|
-
|
195
|
-
== 1.3.5 released 2008-11-30
|
196
|
-
|
197
|
-
* :transition_from_crypto_provider for acts_as_authentic now accepts an array to transition from multiple providers. Which solves the problem of a double transition.
|
198
|
-
* Added AES256 as a crypto_provider option, for those that want to use a reversible encryption method by supplying a key.
|
199
|
-
* Fixed typo for using validates_format_of_options instead of validates_length_of_options
|
200
|
-
* Fixed bug when accessing the dynamic method for accessing the session record in a namespace, since it uses class_name.underscore which replaces :: with a /
|
201
|
-
* Added minimum length requirement of 4 for the password, and removed validates_presence_of for password since validates_length_of enforces this
|
202
|
-
* Set before_validation to reset the persistence token if it is blank, since a password is not required for open id authentication
|
203
|
-
|
204
|
-
== 1.3.4 released 2008-11-24
|
205
|
-
|
206
|
-
* Delegate human_attribute_name to the ActiveRecord class to take advantage of the I18n feature.
|
207
|
-
* Fixed issue with passwords from older versions of restful_authentication, the passwords end with --
|
208
|
-
|
209
|
-
== 1.3.3 released 2008-11-23
|
210
|
-
|
211
|
-
* Updated :act_like_restful_authentication for those using the older version where no site wide key is preset (REST_AUTH_SITE_KEY), Authlogic will adjust automatically based on the presence of this constant.
|
212
|
-
* Added :transition_from_crypto_provider option for acts_as_authentic to transition your user's passwords to a new algorithm.
|
213
|
-
* Added :transition_from_restful_authentication for acts_as_authentic to transition your users from restful_authentication to the Authlogic password system. Now you can choose to keep your passwords the same by using :act_like_restful_authentication, which will *NOT* do any transitioning, or you can use :transition_from_crypto_provider which will update your users passwords as they login or new accounts are created, while still allowing users with the old password system to log in.
|
214
|
-
* Modified the "interface" for the crypto providers to only provide a class level encrypt and matches? method, instead of a class level encrypt and decrypt method.
|
215
|
-
|
216
|
-
== 1.3.2 released 2008-11-22
|
217
|
-
|
218
|
-
* Updated code to work better with BCrypt, using root level class now.
|
219
|
-
|
220
|
-
== 1.3.1 released 2008-11-22
|
221
|
-
|
222
|
-
* Fixed typo in acts_as_authentic config when passing the :scope option.
|
223
|
-
* Added :act_like_restful_authentication option for acts_as_authentic
|
224
|
-
* Added a new crypto provider: BCrypt, this is for those storing the nuclear launch codes in their apps
|
225
|
-
|
226
|
-
== 1.3.0 released 2008-11-21
|
227
|
-
|
228
|
-
* BREAKS BACKWARDS COMPATIBILITY: changed the confirm_password field to password_confirmation for acts_as_authentic, since the rails validates_confirmation_of handles creating this attribute and there is no option to change the name of this.
|
229
|
-
* BREAKS BACKWARDS COMPATIBILITY: Cleaned up all of the validation configuration for acts_as_authentic, as well as the documentation that goes with it, you can accomplish the same things as before, but this is much more flexible and much more organized. This is mainly for those implementing i18n support. Instead of :whatever_message, its now :login_field_validates_length_of_options => {:message => "your i18n friendly message"}. As a side note, with the new i18n support in rails I would not be surprised if this is already done for you since Authlogic uses the ActiveRecord validation methods.
|
230
|
-
* Got rid of simple delegator for the abstract controller, apparently this has performance issues.
|
231
|
-
* Cleaned up validations to assume ActiveRecord dirty attributes are present, I think this is a safe assumption.
|
232
|
-
|
233
|
-
== 1.2.2 released 2008-11-20
|
234
|
-
|
235
|
-
* Added allow_blank_login_and_password_field and allow_blank_email_field options to acts_as_authentic, which allows you to have alternative logins, such as OpenID
|
236
|
-
* In the session Authlogic now also stores the record id. We use this id to find the record and then check the token against the record, thus allowing for quicker database lookups, while getting the same security.
|
237
|
-
* Skip validation for reset_perishable_token!
|
238
|
-
* Added checks for uniqueness validations to only perform if the values have changed, this cuts down on DB queries
|
239
|
-
* Abstract controller adapter now uses ruby's simple delegator class
|
240
|
-
* Allow to save with a block: user_session.save { |result| }, result will either be false or self, this is useful when implementing OpenID and other methods
|
241
|
-
|
242
|
-
== 1.2.1 released 2008-11-19
|
243
|
-
|
244
|
-
* Added build method to authenticates_many association to act like AR association collections.
|
245
|
-
* Added validation boolean configuration options for acts_as_authentic: validate_field, validate_login_field, validate_password_field, validate_email_field. This turns on and off validations for their respective fields.
|
246
|
-
* Renamed all password_reset_token terms to perishable_token, including configuration, etc. I still allow for the old configurations so this will not break compatibility, but perishable token is a better name and can be used for account confirmation as well as a password reset token, or anything else you want.
|
247
|
-
* Renamed all remember_token instances to persistence_token, the term "remember token" doesn't really make sense. I still allow for the old configuration, so this will not break backwards compatibility: persistence_token fits better and makes more sense.
|
248
|
-
|
249
|
-
== 1.2.0 released 2008-11-16
|
250
|
-
|
251
|
-
* Added check for database set up in acts_as_authentic to prevent errors during migrations.
|
252
|
-
* Forced logged_in and logged_out named scopes to use seconds.
|
253
|
-
* Hardened valid_password? method to only allow raw passwords.
|
254
|
-
* controllers and scopes are no longer stored in class variables but in the Thread.current hash so their instances die out with the thread, which frees up memory.
|
255
|
-
* Removed single_access_token_field and remember_token_field from Sesson::Config, they are not needed there.
|
256
|
-
* Added password_reset_token to assist in resetting passwords.
|
257
|
-
* Added email_field, email_field_regex, email_field_regex_failed_message configuration options to acts_as_authentic. So that you can validate emails as well as a login, instead of the either-or approach.
|
258
|
-
* Added configuration for all validation messages for the session so that you can modify them and provide I18n support.
|
259
|
-
|
260
|
-
== 1.1.1 released 2008-11-13
|
261
|
-
|
262
|
-
* Removed ActiveRecord dependency.
|
263
|
-
* Removed loading shoulda macros by default, moved to shoulda_macros dir.
|
264
|
-
* Modified how params access works. Added in single_access_token_field which params now uses. See the single access section in the README. Various configuration options added as well.
|
265
|
-
* Cleaned up acts_as_authentic configuration, added new config module to do this.
|
266
|
-
* Cleaned up acts_as_authentic tests
|
267
|
-
* Moved acts_as_authentic sub modules into the proper name spaces
|
268
|
-
|
269
|
-
== 1.1.0 released 2008-11-13
|
270
|
-
|
271
|
-
* Moved Rack standards into abstract_adapter for the controllers.
|
272
|
-
* Added authenticating_with_credentials?, authenticating_with_unauthorized_record?
|
273
|
-
* Fixed typo in abstract_adapter, black to block.
|
274
|
-
* Cleaned up / reorganized tests.
|
275
|
-
* Moved ActiveRecord additions to ORM Adapters name space to make way for Data Mapper.
|
276
|
-
* Reorganized and modified acts_as_authentic to be free standing and not get info from the related session.
|
277
|
-
* The session now gets its configuration from the model, since determining which fields are present is ORM specific.
|
278
|
-
* Extracted session and cookie logic into their own modules for Session.
|
279
|
-
* Moved crypto providers into their own module and added a Sha1 provider to help with the restful_authentication transition.
|
280
|
-
* Allow the unique_token method to use the alternate crypto_provider if it is a hash algorithm, otherwise default to Sha512.
|
281
|
-
* Added last_request_at_threshold configuration option.
|
282
|
-
* Changed Scoped class to AuthenticatesManyAssociation, like AR has HasManyAssociation, etc.
|
283
|
-
* Added should_be_authentic shoulda macro.
|
284
|
-
* Removed some magic from how sessions are initialized. See the initialize documentation, this method is a little more structured now, which was required for adding in openid.
|
285
|
-
* Added in logging via a params token, which is friendly for feed URLs. Works just like cookies and sessions when persisting the session.
|
286
|
-
* Added the option to use session.user, instead of session.record. This is based off of what model your session is authenticating with.
|
287
|
-
|
288
|
-
== 1.0.0 released 2008-11-05
|
289
|
-
|
290
|
-
* Checked for blank login counts, if a default wasnt set in the migrations.
|
291
|
-
* Added check for database table in acts_as_authentic to avoid errors in initial setup.
|
292
|
-
* Completely rewrote tests to be more conventional and thorough tests, removed test_app.
|
293
|
-
* Modified how validations work so that a validate method was added as well as callbacks for that method.
|
294
|
-
* Extracted scope support into its own module to help organize code better.
|
295
|
-
* Added in salt for encryption, just like hashes and removed :crypto_provider_type option for acts_as_authentic.
|
296
|
-
* Added merb adapters.
|
297
|
-
* Improved documentation throughout.
|
298
|
-
|
299
|
-
== 0.10.4 released 2008-10-31
|
300
|
-
|
301
|
-
* Changed configuration to use inheritable attributes
|
302
|
-
* Cleaned up requires to be in their proper files
|
303
|
-
* Added in scope support.
|
304
|
-
|
305
|
-
== 0.10.3 released 2008-10-31
|
306
|
-
|
307
|
-
* Instead of raising an error when extra fields are passed in credentials=, just ignore them.
|
308
|
-
* Added remember_me config option to set the default value.
|
309
|
-
* Only call credential methods if an argument was passed.
|
310
|
-
* More unit tests
|
311
|
-
* Hardened automatic session updating. Also automatically log the user in if they change their password when logged out.
|
312
|
-
|
313
|
-
== 0.10.2 released 2008-10-24
|
314
|
-
|
315
|
-
* Added in stretches to the default Sha512 encryption algorithm.
|
316
|
-
* Use column_names instead of columns when determining if a column is present.
|
317
|
-
* Improved validation callbacks. after_validation should only be run if valid? = true. Also clear errors before the "before_validation" callback.
|
318
|
-
|
319
|
-
== 0.10.1 released 2008-10-24
|
320
|
-
|
321
|
-
* Sessions now store the "remember token" instead of the id. This is much safer and guarantees all "sessions" that are logged in are logged in with a valid password. This way stale sessions can't be persisted.
|
322
|
-
* Bumped security to Sha512 from Sha256.
|
323
|
-
* Remove attr_protected call in acts_as_authentic
|
324
|
-
* protected_password should use pasword_field configuration value
|
325
|
-
* changed magic state "inactive" to "active"
|
326
|
-
|
327
|
-
== 0.10.0 released 2008-10-24
|
328
|
-
|
329
|
-
* Do not allow instantiation if the session has not been activated with a controller object. Just like ActiveRecord won't let you do anything without a DB connection.
|
330
|
-
* Abstracted controller implementation to allow for rails, merb, etc adapters. So this is not confined to the rails framework.
|
331
|
-
* Removed create and update methods and added save, like ActiveRecord.
|
332
|
-
* after_validation should be able to change the result if it adds errors on callbacks.
|
333
|
-
* Completed tests.
|
334
|
-
|
335
|
-
== 0.9.1 released 2008-10-24
|
336
|
-
|
337
|
-
* Changed scope to id. Makes more sense to call it an id and fits better with the ActiveRecord model.
|
338
|
-
* Removed saving_from_session flag, apparently it is not needed.
|
339
|
-
* Fixed updating sessions to make more sense and be stricter.
|
340
|
-
* change last_click_at to last_request_at
|
341
|
-
* Only run "after" callbacks if the result is successful.
|
342
|
-
|
343
|
-
== 0.9.0 released 2008-10-24
|
344
|
-
|
345
|
-
* Initial release.
|