Store users in database

Authored by machniak on Dec 13 2016, 12:42 PM.


Group Reviewers
Kolab Chat Developers
rKC5f7567755e6a: Store users in database

With small code refactoring and switch to MySQL.

Diff Detail

rKC kolab-chat
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
machniak retitled this revision from to Store users in database.Dec 13 2016, 12:42 PM
machniak updated this object.
machniak edited the test plan for this revision. (Show Details)
machniak added a reviewer: Kolab Chat Developers.

This will be used to store user auth tokens, e.g. to validate sessions? If so, should this use Phoenix.Token instead ( Auth will be served by Kolab (e.g. LDAP), and presence managed by Pheonix Presence .... ?


what will status be used for?

I'm working on websockets and tokens (yes, Phoenix.Token). So, this diff only stores users in database to have user ID. Status is for user status in future (but I suppose we'll change that to some another database table). I didn't think about Phoenix.Presence yet.

Ah, yes, phoenix presence handles their status entirely. We need to do nothing for that (and should not .. it's a complicated thing, and they have implemented it fully).

If the table is just for user id, I can see how that is useful in the short term. Long-term, I suspect this will go away, when we are able to authenticate against Kolab itself. So .. minus status, and otherwise OK for moving things forward ... :)

This revision was automatically updated to reflect the committed changes.