07-18-2014 09:05 AM
package activiti.extension.rest;
import org.activiti.rest.common.filter.RestAuthenticator;
import org.restlet.Request;
public class CustomRestAuthenticator implements RestAuthenticator {
public boolean requestRequiresAuthentication(Request request) {
return false;
}
public boolean isRequestAuthorized(Request request) {
return false;
}
}
public class NoAuthenticationActivitiRestServicesApplication extends ActivitiRestServicesApplication {
public NoAuthenticationActivitiRestServicesApplication() {
super();
this.setRestAuthenticator(new CustomRestAuthenticator());
}
@Override
public String authenticate(Request request, Response response) {
if (!request.getClientInfo().isAuthenticated()) {
authenticator.challenge(response, false);
return null;
}
return "KERMIT!";
}
}
07-21-2014 05:13 AM
07-21-2014 08:53 AM
07-25-2014 03:24 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.