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

User Gets Logged Out After 20 Seconds #2931

Closed
LeoNerdoG opened this issue Apr 8, 2020 · 6 comments · Fixed by #3053
Closed

User Gets Logged Out After 20 Seconds #2931

LeoNerdoG opened this issue Apr 8, 2020 · 6 comments · Fixed by #3053
Labels
Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console

Comments

@LeoNerdoG
Copy link
Contributor

I have noticed, that user gets logged out of the console 20 seconds after the login happens - regardless if user clicks something or not.

Testflow:

  1. Login as kapua-sys
  2. Wait for 20 seconds and then try to click something (e.g. Settings)
  3. Observe the error "You are not logged in"

Expected behavior
User should not get logged out automatically after 20 seconds.

Screenshots
/

Version of Kapua
Latest develop branch

Type of deployment
[ ] Local Vagrant deployment
[x] Docker
[ ] Openshift (in its variants)
[ ] Others

Main component affected
[x] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API
[ ] Message Broker
[ ] - Others

Browsers used:

  • Google Chrome (Version 80.0.3987.163 (Official Build) (64-bit))
  • Mozilla Firefox (74.0.1 (64-bit))
@lorthirk
Copy link

lorthirk commented Apr 8, 2020

Do you also have a Kura/ESF console tab open in the same domain, by any chance?

@LeoNerdoG
Copy link
Contributor Author

LeoNerdoG commented Apr 8, 2020

Yes, I have real Kura device (Raspberry Pi on my home network) and a dockerized Kura available on port 7100 on my local machine - is this a problem?

@lorthirk
Copy link

lorthirk commented Apr 8, 2020

I noticed that when you keep both Kapua and Kura tabs, and they both are running on the same domain (e.g. localhost), Kapua reports a logout almost immediately. I think there must be come conflict with the Session Cookie or something.

@LeoNerdoG
Copy link
Contributor Author

I would leave this issue open anyway, if anybody else enocunters this or me again 😄
@lorthirk thanks for your insight and help!

@lorthirk lorthirk added Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console labels Apr 8, 2020
@craigMull
Copy link

I have recently started playing around with Kapua and kura in docker and can confirm I have seen the same annoying effect, where the user gets logged out of the console a few seconds after the login happens.

After seeing this issue and closing the Kura [docker] Tab, this issue goes away.

Version of Kapua
Latest develop branch

Type of deployment
[ ] Local Vagrant deployment
[x] Docker
[ ] Openshift (in its variants)
[ ] Others

Main component affected
[x] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API
[ ] Message Broker
[ ] - Others

Browsers used:

Chromium Version 81.0.4044.138 (Official Build) Built on Ubuntu , running on Ubuntu 18.04 (64-bit)

@LeoNerdoG
Copy link
Contributor Author

I have verified that this issue has been successfully resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it! Console GWT This issue/PR is related to Admin Web Console
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants