Details
-
Bug
-
Resolution: Done
-
Minor
-
2.2.1
-
None
-
None
Description
For this:
@Path("/secured")
public static class BaseResource
{
public String get(@Context SecurityContext ctx)
{
System.out.println("********* IN SECURE CLIENT");
if (!ctx.isUserInRole("admin"))
return "hello";
}
@GET
@Path("/authorized")
@RolesAllowed("admin")
public String getAuthorized()
}
If you try to do a GET /secured you get a 405 instead of a 404 error.