Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

[Feature Request] Remember me #613

Closed
sn00pster opened this issue Feb 19, 2017 · 12 comments
Closed

[Feature Request] Remember me #613

sn00pster opened this issue Feb 19, 2017 · 12 comments
Labels
area/authentication kind/enhancement Applied to Feature Requests

Comments

@sn00pster
Copy link

sn00pster commented Feb 19, 2017

A remember me checkbox on the login would be nice to save logging in every time and take you directly to the dashboard.

@deviantony deviantony added area/authentication kind/enhancement Applied to Feature Requests labels Feb 20, 2017
@ottnorml
Copy link

@sn00pster Thanks for your request.
I am missing this feature too after using UI For Docker before, which did not have any authentication.

@jamshid
Copy link

jamshid commented Mar 24, 2017

Portainer is great but why do I have to login each time I open a new tab? I'm trying to use direct links like this (makes it very easy for non-docker users to work with a container):
http://docker.example.com:9000/#/containers/myproject_mycontainer_1/console
But this requires login every time, claiming "Your session has expired".

I verified my docker (Ubuntu16) and browser are using the correct time. Even restarted the portainer container. So I don't think it's related to #398.

How can I diagnose the problem, which cookie contains authentication (JWT?) and why isn't it a browser-wide, long-lived cookie?

@ncresswell
Copy link
Member

ncresswell commented Mar 24, 2017 via email

@jamshid
Copy link

jamshid commented Mar 24, 2017

Okay, but imo that's extremely unfriendly UX. People like working with multiple tabs open and hate having to re-login. Even non-technical users use right-click Open Link in New Tab.

Instead consider making it an HttpOnly or "secure" cookie and require https. Running portainer over http is a much more serious security issue than cross-tab cookies.

Thanks for keeping this open, maybe more users will +1 and you'll reconsider.

@pscl4rke
Copy link

pscl4rke commented Apr 4, 2017

Yes, opening up new tabs for different pages is great for compare-and-contrast activities, and is such a major part of my workflows that I'm currently stuck using an older version of Portainer. I know Portainer's UI is based on a single-page design, but I'm hoping this gets fixed soon so I can start following the mainline again.

@ncresswell
Copy link
Member

ncresswell commented Apr 4, 2017 via email

@deviantony deviantony mentioned this issue Apr 7, 2017
@akanix42
Copy link

akanix42 commented Jun 1, 2017

@ncresswell why are cookies required? Can't you store the token in localStorage instead of sessionStorage?
As it stands this is extremely detrimental to my experience. For example, I need to have the logs in one window and the console connection in another window. I need to also have the freedom of opening other windows to look at other containers.

@deviantony
Copy link
Member

deviantony commented Jun 2, 2017

@nathantreid Token was originally stored in the sessionStorage because we prefered to have our users re-login when opening a new tab.

Now, with the more recent feedback about the usage of Portainer, it seems that a lot of people actually want to use multi-tabs (which I think is because of a UX problem with Portainer but that's another discussion), so we can switch the storage from sessionStorage to localStorage.

Note that I'll open another issue for that, as it's not related to the remember-me feature request asked in this issue.

Edit: done, tracked in #910

@mrdrogdrog
Copy link
Contributor

mrdrogdrog commented May 15, 2019

I think this could easily be solved by saving the Token in either the SessionStorage or the LocalStorage. Depending on whether remember me is on or off.

@ghost
Copy link

ghost commented Jun 15, 2020

Until this is implemented, users will have the ability to set a longer session timeout of 8hrs via #3846

@ismaail
Copy link

ismaail commented Aug 5, 2021

Setting Session lifetime to 1 year in Settings > Authentication doesn't solve the issue.

@CrazyWolf13
Copy link

Any updates on this?
Doesn't seem like it's already fixed.
I'd love to see something like remember me, every applications has it just not Portainer....

@portainer portainer locked and limited conversation to collaborators Jul 27, 2023
@jamescarppe jamescarppe converted this issue into discussion #9321 Jul 27, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
area/authentication kind/enhancement Applied to Feature Requests
Projects
None yet
Development

No branches or pull requests

10 participants