Adapt the Authentication module to work with any database
Summary
The Localization module should support any kind of database, the same way as DbObjects do.
Current Behavior
At the moment, authentication queries are hard-coded in the module.
Desired Behavior
The client should be able to provide classes that act as layers between the module and the underlying database.
Implementation Plan
- Implement a DbObject subclass that represents the
session
table. - Make the required changes to the Authentication module to make it work with the DbObject.
Migration Plan
The Authentication module is self-contained and the client only sees it in JavaScript functions, hence no migration is required and any breaking change to the API will be handled internally.