SecurityContext with JaxRS Extension

2009-08-06 Thread Jonas Huckestein
Hello, first of all, thanks for the amazing restlet framework and the awesome Jax-RS extension. I am currently trying to understand how to use @Context SecurityContext. I do not know how I can make the injected SecurityContext do anything. This is what I have: - A function which

Re: SecurityContext with JaxRS Extension

2009-08-06 Thread Jonas Huckestein
Sorry for the double post, I thought my email didn't arrive so I posted again in nabble. -- View this message in context: http://n2.nabble.com/SecurityContext-with-JaxRS-Extension-tp3395983p3397764.html Sent from the Restlet Discuss mailing list archive at Nabble.com

Re: SecurityContext with JaxRS Extension

2009-08-06 Thread Stephan Koops
Hi Jonas, the SecurityContext is easy to use. It's a long time ago, but I think you use it like this: @Path(abc) public class MyResource { @Context private SecurityContext securityContext; public Whatever getSomething() { if (!securityContext.isUserInRole(rolename))

SecurityContext with JaxRS Extension

2009-08-05 Thread Jonas Huckestein
)); } } Thanks in advance and kind regards, Jonas -- View this message in context: http://n2.nabble.com/SecurityContext-with-JaxRS-Extension-tp3395983p3395983.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http