Use an in-memory sqlite db in testing
Makes for a more real-world use of Devise
Update for new versions of Rails & Devise
Requires small change to the routes to use
devise_scope
Ensure SSO sign in clobbers previous user session
Otherwise the previous user is still signed in.
Rename login to create to fit with Rails controller patterns
Add a Token class to validate SSO tokens
Ensure SSO tokens are valid for authentication