rhuss / jmx4perl

JMX access tools and modules
http://search.cpan.org/~roland/jmx4perl/
Other
45 stars 12 forks source link

Allow form-based authentication #48

Open rhuss opened 9 years ago

rhuss commented 9 years ago

Currently, jmx4perl and friends only allow authentication via Basic-Authentication. In order to support more complex setups with deep Jolokia integration form based authentication as defined by the servlet specs should be supported, too (i.e. initial handshake via POST of form data with credentials and keeping the session cookie send back).

This could be switched on in the configuration with

<Server fuse>
    Url http://localhpost:8181/hawtio/jolokia
    User bla
    Password blub
    UseFormBasedAuthentication 
</Server>

and with a command line switch --use-form-based-authentication

rhuss commented 9 years ago

The auth info should also be sent as header (shouldn't harm) so that specific platform can pick this up, too.