-
Notifications
You must be signed in to change notification settings - Fork 31
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
Change call/response JMX auth header #242
Change call/response JMX auth header #242
Conversation
a8bdc1d
to
c7d32f2
Compare
74e0f09
to
310fe44
Compare
Server's "call" is changed to X-JMX-Authenticate, while corresponding client response is left as "X-JMX-Authorization". This matches the HTTP WWW-Authenticate/Authorization headers.
Use consistent status code to indicate to client similar failures, allowing interactive clients to easily detect various cases of authentication failure
310fe44
to
14aa38b
Compare
I'm trying to figure out how to test this and how the auth stuff works in general. Is JMX authentication always enabled, or is that what the flag How does JMX auth relate to user authentication? When you say:
Is this referring to the |
JMX authentication will be enabled whenever JMX auth is for users to authenticate themselves to targets which are configured using the JVM flags described above. User auth, using the "The only supported scheme at this time is More specifically here this refers to the method To test it, you can use the web-client on my jmx-auth branch (for which a PR is still open awaiting this one), or you can use curl.
|
It's working as intended with curl (just had to change The code looks good as well, but it just needs a |
It should work with |
Oh, I thought that command was just to see what recordings were in |
Yeah, it works with |
Related to #5
Server's "call" is changed to X-JMX-Authenticate, while corresponding
client response is left as "X-JMX-Authorization". This matches the HTTP
WWW-Authenticate/Authorization headers.
This header will be used by clients to discover the authentication scheme expected by the ContainerJFR instance. The only supported scheme at this time is
Basic
.