You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michael Goode <mg...@annadaletech.com> on 2014/05/12 10:18:47 UTC

Using an Interceptor with Tapestry Resteasy

Hi Guys,

I have a question in relation to service injection and Tapestry Resteasy.
We have a single Angular.js page within our Tapestry 5 web app and a basic
web service api that allows us to retrieve/update the relevant data. We've
been trying to improve the security aspect our design and we will be using
a json web token, submitted as part of the request to authenticate the
user. Rather than send the token directly to the methods within the
resource class we'd like it to be verified before the method is invoked.
I've been trying to implement an interceptor which would do this but I've
run into difficulties with the injection of the authentication service into
the interceptor class. I've defined the interceptor class as a service but
this hasn't resolved the issue. I've posted this question on stack overflow
(
http://stackoverflow.com/questions/23562514/using-an-interceptor-with-tapestry-resteasy)
also. Any help is very much appreciated !

Regards,
Michael