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

Store sessions in db and extend token sessions #99

Merged
merged 1 commit into from
May 31, 2023

Conversation

frasercrossman
Copy link

Store user sessions in Crux rather than in an atom to allow for multiple instances of site to access the same sessions and to persist sessions between restarts. These changes also update the openid connect tests to assert that the expected sessions are created in the database.

The expiry time of sessions created by calling the token endpoint has been extended from 1 hour to 1 week. Sessions created by logging in by basic auth have been reduced to 1 week from 1 month to be consistent. This change has been made to resolve the issue of users being automatically logged out after long periods of inactivity.

Store user sessions in Crux rather than in an atom to allow for multiple
instances of site to access the same sessions and to persist sessions
between restarts. These changes also update the openid connect tests to
assert that the expected sessions are created in the database.

The expiry time of sessions created by calling the token endpoint has
been extended from 1 hour to 1 week. Sessions created by logging in by
basic auth have been reduced to 1 week from 1 month to be consistent.
@frasercrossman frasercrossman requested a review from elken May 30, 2023 13:50
Copy link

@elken elken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar enough with site but code-wise this looks fine, the tests pass and it seems to work :)

@frasercrossman frasercrossman merged commit d9e0b0f into side-site May 31, 2023
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.

2 participants