开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜