I am currently trying to access Jira REST with Jersey. The problem is that for our Jira a single sign on is set up. Authentication with "client.addFilter(new HTTPBasicAuthFilter(..." does not work. If I access Jira via browser and then hardcode the received cookie into Jersey I am able to access Jira REST.
My question would now be how to login with Jersey over SSO. From what I can see clicking "Login" on the SSO page just sends a POST request with a request body like "username=&password=&login-form-type=pwd". So I should be able to retrieve a cookie with Jersey the same way I guess...
Cheers!