How to make an exception for ChallengeAuthenticator
I am using Restlet Authentication. I create my own Verifier.
ChallengeAuthenticator guard =
new ChallengeAuthenticator(getContext(),ChallengeScheme.HTTP_BASIC, "my realm");
guard.setVerifier(new CaupenneServerVerifier());
guard.setNext(aRouter);
a开发者_如何学运维Router attaches all the resources. But I only want to guard some of the resources, not all of them. Does anybody know how I can do this? Is there a way in Restlet Authentication to make an exception?
Thanks!
Take a look at the answer to this SO question:
Fine-grained Authentication with RESTlet
精彩评论