Hi,

When user makes request to authorization endpoint i.e:
https://photos.example.net/authorize?oauth_token=hh5s93j4hdidpola

I have to check whether oauth_token is valid. If so redirect to user's
sign in page, if not redirect to some error page.
So far I use RequestDispatcherProvider, but I am stuck a bit, hot to
perform a conditional redirection (i.e. depends on object passed to
MessageBodyWriter).
I haven't found any easy way to do that. I can write custom
RequestDispatcherProvider based on existing one, but maybe there is
easier way?

Thanks for help.

Cheers,
Lukasz

Reply via email to