I'm developing web services using spring data and apache cxf, i have done authentication on every action i.e before every service call.
But i wanted use interceptors for that, i tried with org.apache.cxf.phase.AbstractPhaseInterceptor but not working in my web services and also tried with HandlerInterceptorAdapter but its working with basic spring application but not with my rest web servies.
This is code im applying for every service
public ResponseStatus searchDocuments(AdvancedSearch advancedSearch) {
ResponseStatus responseStatus = authenticationProvider.authenticatUser(advancedSearch.getUser_id(), advancedSearch.getTokenId(),advancedSearch.getUser_ip());
So are there another options for that or im missing something.
How can i achieved using interceptors?
Aucun commentaire:
Enregistrer un commentaire