-
Notifications
You must be signed in to change notification settings - Fork 228
Upgrading
Important notes while upgrading:
-
If you are upgrading from <= 1.0.0
-
before_logout
does not take arguments anymore (current_user
still returns user at this point) -
after_logout
takes one argument (user
) ascurrent_user
returnsnil
then
-
-
If you are upgrading from <= 0.8.6 and you use Sorcery model methods in your app, you might need to change them from
user.method
touser.sorcery_adapter.method
and fromUser.method
toUser.sorcery_adapter_method
-
If you are upgrading from <= 0.8.5 and you're using Sorcery test helpers, you need to change the way you include them to following code:
RSpec.configure do |config| config.include Sorcery::TestHelpers::Rails::Controller, type: :controller config.include Sorcery::TestHelpers::Rails::Integration, type: :feature end
-
If are upgrading to 0.8.2 and use activity_logging feature with ActiveRecord, you will have to add a new column
last_login_from_ip_address
#465 -
Sinatra support existed until 0.7.0 (including), but was dropped later due to being a maintenance nightmare.
-
If upgrading from <= 0.6.1 to >= 0.7.0 you need to change 'username_attribute_name' to 'username_attribute_names' in initializer.
-
If upgrading from <= v0.5.1 to >= v0.5.2 you need to explicitly set your user_class model in the initializer file.
# This line must come after the 'user config' block.
config.user_class = User
Meta
Using Sorcery
- Activity Logging
- Brute Force Protection
- DataMapper Support
- DelayedJob Integration
- Distinguish login failure reasons
- External
- External---Microsoft-Graph-authentication
- Fetching Currently Active Users
- HTTP Basic Auth
- Integration Testing
- OAuth Landing Page
- Password-less Activation
- Remember Me
- Reset Password
- Routes Constraints
- Session Timeout
- Simple Password Authentication
- Single Table Inheritance Support
- Testing Rails
- User Activation
Contributing to Sorcery