How to stop login from retrying once connection is lost #3123
-
Hello, I noticed once a session expires and you are already logged into jolokia/remote jmx inside hawtio, a popup appears with the message "Connection lost. Retrying...", which keeps attempting login to hawtio with the jolokia/remote jmx credentials. This is generating a login error message per minute, which I am trying to stop from happening. Is there a way to NOT have hawtio keep retrying the connection every minute and completely kill the session (in all windows)? Or a way to set a default refresh rate across the board in hawtio? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Beta Was this translation helpful? Give feedback.
-
Tracked with hawtio/hawtio-next#705 |
Beta Was this translation helpful? Give feedback.
-
There also seems to be a bug with the connection retries itself. I have configured hawtio to use LDAP for logins using a login.conf file containing the below:
And I'm using these JVM args: This works fine. After I've logged into hawtio, I connect to the jvm agent using a user/password specified in the JVM agent configuration options like so: The bug occurs when the original window loses connection (or I logout of it), but the second window remains open and keeps retrying connections. These connection retries are going through LDAP, which is not configured for the jvm agent, so the bug is that it is attempting to go through LDAP. I am getting these LDAP login errors every 5 seconds (the refresh rate): If there is no way to disable the refresh rate by default and I don't want to use a longer session timeout, is there way to prevent the jolokia login retries and just logout the user entirely in all windows? Or a way for the retries to NOT go through LDAP? Am I doing something wrong with the hawtio authentication realm or any other system properties I can use? |
Beta Was this translation helpful? Give feedback.
-
I'd like to ask something. I've reproduced the problem and indeed - if you logout in main window (so you get The problem is that And this is where it gets confusing - unsecured paths static field doesn't contain Because it is secured, I can do whatever is needed, but I'm not sure what's needed ;) See my observations:
What do you think? |
Beta Was this translation helpful? Give feedback.
-
#3178 is now fixed. Summary of changes for
|
Beta Was this translation helpful? Give feedback.
#3178 is now fixed.
Summary of changes for
How to stop login from retrying once connection is lost
/proxy/*
requests are now authenticatedWWW-Authenticate: Basic xxx
from remote Jolokia agent it is now translated toWWW-Authenticate: Hawtio original-scheme="Basic" xxx
, so browser doesn't show native credentials dialog - this ensures that React dialog is used to enter the credentials if neededAuthorization
hea…