-
Notifications
You must be signed in to change notification settings - Fork 71
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
autologout triggers while working with VM portal #308
Comments
This was expected to be resolved by https://gerrit.ovirt.org/#/c/74470/ (abandoned). Can't find any newer fixing that. @jelkosz , any luck? |
tested with ovirt-engine-4.2.0-0.0.master.20170802210223.git338a2bc.el7.centos.noarch |
@mareklibra yeah, it has been replaced by this one: https://gerrit.ovirt.org/#/c/74848/ - I think it will require some followup from us because it seems that ovirt-web-ui is one of the apps which are considered to not renew the session while only running queries. |
This needs more effort, moving to next release |
Sorry, not without analysing impact and our options. It's too important, we cannot just break after few minutes |
@jelkosz is the web-ui sending periodic requests to keep the session alive? How often? |
Also, what scope is the web-ui using to get the API token? |
@jhernand , there's a approx. a request per minute. |
The scope is not explicitly set, reuses the session retrieved via SsoLoginServlet, see https://github.com/oVirt/ovirt-web-ui/blob/master/packaging/ovirt-web-ui.war/WEB-INF/web.xml |
Depends on: https://gerrit.ovirt.org/#/c/83549/ |
Depends on: https://gerrit.ovirt.org/#/c/83549/ Fixes: #308
I was just clicking through VMs and its detail/edit and it logged me out.
Set autologout to 2 minutes, start clicking on VMs and you will see.
engine-config -s UserSessionTimeOutInterval=2
in log appears
2017-08-04 08:22:01,116+02 INFO [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default task-2) [] User admin@internal successfully logged out
2017-08-04 08:22:01,188+02 INFO [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] (default task-15) [262f6704] Running command: TerminateSessionsForTokenCommand internal: true.
2017-08-04 08:22:16,011+02 ERROR [org.ovirt.engine.core.sso.utils.SsoUtils] (default task-10) [] OAuthException invalid_grant: The provided authorization grant for the auth code has expired.
2017-08-04 08:22:16,016+02 ERROR [org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter] (default task-11) [] Cannot authenticate using authentication Headers: null: invalid_grant
The text was updated successfully, but these errors were encountered: