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

Add the ability to set a custom user session timeout #3846

Closed
deviantony opened this issue May 21, 2020 · 3 comments · Fixed by #3871
Closed

Add the ability to set a custom user session timeout #3846

deviantony opened this issue May 21, 2020 · 3 comments · Fixed by #3871
Assignees
Labels
area/authentication kind/enhancement Applied to Feature Requests priority/normal Core team priority
Milestone

Comments

@deviantony
Copy link
Member

This issue is to track the introduction of a new feature allowing an administrator user to define a custom user session timeout (default to the current time of 8h).

This setting should be configured inside the Settings of Portainer.

As a part of this feature, we'll also remove the --no-auth flag.

@deviantony deviantony added kind/enhancement Applied to Feature Requests area/authentication priority/normal Core team priority labels May 21, 2020
@deviantony deviantony added this to the 2.0 milestone May 21, 2020
@chiptus
Copy link
Contributor

chiptus commented May 28, 2020

  • introduce a new constant portainer.DefaultSessionTimeout = "8h"
  • introduce a setting - settings.SessionTimeout string
  • add input for SessionTimeout in settings page (toggle/selector/regular input)
  • jwt.GenerateToken receive timeout as param from auth handler
  • remove --no-auth flag

@chiptus chiptus self-assigned this May 28, 2020
@deviantony deviantony linked a pull request Jun 2, 2020 that will close this issue
@frakman1
Copy link

frakman1 commented Feb 16, 2021

Is there a workaround I could use now? Like some variable in a config file somewhere?

Update:
Nevermind, I found where I can set this in the Settings:

image

@akitzing
Copy link

Hi, at work Portainer is used the entire workday.
Most workers work around 9-10 hours and Session Lifetime is too short with 8 hours and too long with 24 hours. Is it possible to include 10 or 12 hours or use a separate value.
Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/authentication kind/enhancement Applied to Feature Requests priority/normal Core team priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants