[Jersey] forwarding from unprotected resource to protected resource without authentication

From: tmp <>
Date: Tue, 14 Feb 2012 06:05:15 -0800 (PST)


I have 2 resources in my webapplication:
Resource method A is accessible without authentication.
Resource method B is protected (@RolesAllowed).

When I call method B, I have to authenticate first.

Is there a way to automatically authenticate a client within method A (so he
doesn't have to authenticate manually) ?

Here are my web & pom.xml:

Thanks in advance

View this message in context:
Sent from the Jersey mailing list archive at