Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

politiawww: Move sessions to userdb. #1113

Merged
merged 10 commits into from
Feb 13, 2020
Merged

politiawww: Move sessions to userdb. #1113

merged 10 commits into from
Feb 13, 2020

Conversation

lukebp
Copy link
Member

@lukebp lukebp commented Feb 1, 2020

This diff moves user sessions from a session store backed by the
filesystem to a session store backed by the userdb. It implements a
custom sessions store that satisfies the gorrilla/sessions Store
interface.

Moving the session store to the userdb accomplishes a few things:

  1. Allows us to manually invalidate sessions. An example being when a
    user changes their password we can invalidate their sessions on all
    other devices. This was not previously possible with the filesystem
    store implementation.

  2. Removes one of the blocking issues that is preventing us from running
    multiple politeiawww instances.

This diff does not fix issues #647 or #650. It is a prerequisite for
fixing those issues, but those issues will be fixed in the next PR.

al-maisan and others added 5 commits January 29, 2020 18:45
This diff moves user sessions from a session store backed by the
filesystem to a session store backed by the userdb. It implements a
custom sessions store that satisfies the gorrilla/sessions Store
interface.

Moving the session store to the userdb accomplishes a few things:

1. Allows us to manually invalidate sessions. An example being when a
   user changes their password we can invalidate their sessions on all
   other devices. This was not previously possible with the filesystem
   store implementation.

2. Removes one of the blocking issues that is preventing us from running
   multiple politeiawww instances.

This diff does not fix issues decred#647 or decred#650. It is a prerequisite for
fixing those issues, but those issues will be fixed in the next PR.
@lukebp lukebp changed the title [WIP] politiawww: Move sessions to userdb. politiawww: Move sessions to userdb. Feb 9, 2020
@lukebp lukebp merged commit 8361a1d into decred:master Feb 13, 2020
@lukebp lukebp deleted the sessions branch February 14, 2020 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants