Expire inactive sessions, optionally allow to stay signed in #82
Dismiss Review
Are you sure you want to dismiss this review?
Labels
Clear labels
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
integration
btcpay
integration
discourse
integration
ejabberd
integration
email
integration
ldap
integration
lndhub
integration
mastodon
integration
nostr
integration
remotestorage
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/akkounts#82
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When "remember me" is checked, keep user logged in for two weeks after last activity. Otherwise, expire the session after 30 minutes.
closes #8
@@ -6,1 +6,4 @@connect() {// Devise timeoutable ends up adding a second flash message without content// TODO investigate bugif (this.element.textContent.trim() == "true") return;so the content has the value "true"?
Yeah, for that unexpected additional flash message. I figured it's OK to hotfix like this, since no message should ever just say "true".
@@ -230,3 +230,3 @@# The time you want to timeout the user session without activity. After this# time the user will be asked for credentials again. Default is 30 minutes.# config.timeout_in = 30.minutesconfig.timeout_in = 24.hoursI tend to have this number higher these days.
What timeout would you propose?
(Keep in mind that this is the central account management app, where you can potentially take over a lot of services if you're able to access an active browser session.)
@bumi Did you see my question here?
yeah, not sure... it's always the balance between convenience that I don't have to login again and some "security" in case a user uses a "public" computer.
but yeah, leave it to a day. if the user does not visit the site again after a day they have to login again.
Since I also wasn't quite happy with forcing the tradeoff this way, I have overhauled the sign-in form and added a remember-me button, using our new toggle switch component and Devise's Rememberable strategy. So now it's better both ways: expiring faster when needed, and staying logged in when the user thinks it's safe.
Updated PR description and added a screenshot.
@bumi I'll wait for last review and approval before merging.
344e4e5bcctoa8a8fba14cAdd time limit for inactive sessionsto Expire inactive sessions, optionally allow to stay signed in