As I am working on implementing authentication, I was wondering if I could
configure createInboundRoute to attach the GAEAuthenticator guard only to
uris of the form /v1/.... (to implement authentication) and allow uris of
the form /v0/... to pass through without authentication.
My code currently is...
public final Restlet createInboundRoot() {
...
Router router = new Router(getContext());
router.attach("/v1/path", SomeServerResource.class);
.....
router.attach("/v1/otherpath", SomeOtherServerResource.class);
GaeAuthenticator guard = new GaeAuthenticator(getContext());
router.attach(VERSION_PATH, guard);
guard.setNext(router);
return guard;
...
I am assuming that what I want is not easily done (that is fine), but I
wanted to make sure before moving on (to trying to do hard things or just
not doing it).
Thanks in advance!
RB
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Is-it-possible-to-easily-have-authenticated-non-authenticated-versions-tp7557195.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2960556