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
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
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))
));
}
}
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
4 matches
Mail list logo