cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Moreń <lukasz.mo...@gmail.com>
Subject OAuth authorization endpoint - conditional redirect
Date Thu, 08 Jul 2010 09:54:55 GMT
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

Mime
View raw message