Portainer: When login again after session timeout, need to press F5

Created on 9 Feb 2019  路  3Comments  路  Source: portainer/portainer

Bug description

After portainer session timeout, and the user clicks any page, it will go to login page.
However, clicking login button has no response, staying in /auth. In fact the login is successful.
Then user has to press F5. It will go to /home

Expected behavior
Click Login button to go to /home immediately.

Briefly describe what you were expecting.

Steps to reproduce the issue:

Steps to reproduce the behavior:

  1. Session timeout
  2. Click any page
  3. Redirect to /auth. Enter user and password, Click on 'Login'
  4. Login seems no response
  5. Press F5, it redirect to /home, login actually is successful

Technical details:

  • Portainer version: 1.20.1
  • Docker version (managed by Portainer): 18.09
  • Platform (windows/linux): Linux
  • Command used to start Portainer (docker run -d -p 9000:9000 -v $(pwd)/dist:/app -v /tmp/portainer:/data -v /var/run/docker.sock:/var/run/docker.sock:z --name portainer portainer/base /app/portainer --no-analytics --template-file /app/templates.json):
  • Browser: Firefox
areauthentication buconfirmed kinbug

Most helpful comment

Yes the root cause is the redirect=portainer.auth part, this has been fixed and will be part of 1.20.2.

All 3 comments

For the record, this is happening on the following URI:

https://portainer.domain.com/#/auth?redirect=portainer.auth

I was assuming this was a reverse proxy configuration issue (NGINX). Looks like this is the root cause. Submitting my login information from that URI doesn't move me to anything. But if I refresh the page, I am logged in and on the dashboard.

This has been happening to me too

Yes the root cause is the redirect=portainer.auth part, this has been fixed and will be part of 1.20.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cbrherms picture cbrherms  路  3Comments

himred picture himred  路  3Comments

diyfr picture diyfr  路  3Comments

Helmi picture Helmi  路  3Comments

rnz picture rnz  路  3Comments