Page MenuHomePhorge

Store users in database
ClosedPublic

Authored by machniak on Dec 13 2016, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 10:05 AM
Unknown Object (File)
Mon, Apr 8, 9:52 AM
Unknown Object (File)
Wed, Apr 3, 2:38 PM
Unknown Object (File)
Thu, Mar 28, 11:56 AM
Unknown Object (File)
Sat, Mar 23, 7:18 AM
Unknown Object (File)
Mar 17 2024, 4:53 PM
Unknown Object (File)
Mar 16 2024, 5:09 PM
Unknown Object (File)
Feb 11 2024, 4:20 AM
Subscribers

Details

Reviewers
None
Group Reviewers
Kolab Chat Developers
Commits
rKC5f7567755e6a: Store users in database
Summary

With small code refactoring and switch to MySQL.

Diff Detail

Repository
rKC kolab-chat
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

machniak retitled this revision from to Store users in database.
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 (https://hexdocs.pm/phoenix/Phoenix.Token.html)? Auth will be served by Kolab (e.g. LDAP), and presence managed by Pheonix Presence .... ?

priv/repo/migrations/20161213091438_add_users.exs
8

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.