Repository navigation
Releases
Releases · brownboxdev/veri-authentication
v2.1.0
Features
- Added
Veri::Session#switch_tenantmethod to move a session to another tenant - Added
password_set?method to check whether a user has a password
Bugs
- Fixed
log_inusing the previous tenant whencurrent_tenantchanges within the same request - Fixed
Veri::Session.in_tenantraising an error without a message when given an invalid tenant
v2.0.3
Bugs
- Fixed authentication raising
NameErrorwhen the configured user model is not namedUser - Fixed Rails commands failing when the configured user model class does not exist yet
- Fixed expired and inactive sessions still appearing as logged in on pages that don't require authentication
- Fixed locking a user not terminating their sessions until their next request
- Fixed password verification raising an error for users who have no password set
- Fixed cross-tenant shapeshifting not working
Misc
- The hashing algorithm can now be changed without breaking existing passwords
v2.0.2
v2.0.1
v2.0.0
Breaking
- Changed
Veri::Session#shapeshiftmethod signature to accept an optionaltenant:keyword argument Veri::Session.prunenow deletes only sessions with orphaned tenants and no longer removes inactive or expired sessions
Features
- Added
Veri::Session#true_tenantmethod to fetch the original tenant of a session
Bugs
- Fixed issue with user impersonation across different tenants
Misc
- Dropped some unnecessary dependencies
To upgrade to v2.0.0, please refer to the migration guide
v1.1.0
v1.0.1
v1.0.0
v0.4.0
Breaking
- Changed
veri_sessionstable to support multi-tenancy - Renamed
revert_to_true_identitysession method toto_true_identity - Session method
pruneno longer accepts a user argument - Session method
terminate_allno longer accepts a user argument
Features
- Added multi-tenancy support
- Added session scopes to fetch active, expired, and inactive sessions
- Added user scopes to fetch locked and unlocked users