Skip to content
Browse files

Use the existing authenticator, instead of cooking up a new one.

  • Loading branch information...
1 parent bbb549f commit a1c6d8c0fbe2ebb9ffc2a085e85e7e6c27deed12 @Infiniverse Infiniverse committed Jan 27, 2014
2 .../exquery/restxq/src/main/java/org/exist/extensions/exquery/restxq/impl/
@@ -117,7 +117,7 @@ public String getCacheClass() {
throw new ServletException(ee.getMessage(), ee);
} catch(RestXqServiceException rqse) {
if (rqse.getCause() instanceof PermissionDeniedException) {
- new BasicAuthenticator(null).sendChallenge(request, response);
+ getAuthenticator().sendChallenge(request, response);
} else {
//TODO should probably be caught higher up and returned as a HTTP Response? maybe need two different types of exception to differentiate critical vs processing exception
getLog().error(rqse.getMessage(), rqse);

0 comments on commit a1c6d8c

Please sign in to comment.
Something went wrong with that request. Please try again.