cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: Authentication response header 401
Date Wed, 22 Jul 2009 19:19:27 GMT


If it is JAXRS then you can register a CXF JAX-RS filter, retrieve
AuthorizationPolicy.class instance from a message, get user/password and if
needed return a Response setting 401. 

You can also check the incoming headers in the CXF Interceptor, however I'm
not sure if it is possible to cause 401 actually reported. You may need to
throw a Fault instance from your input interceptor and also register an
inFaultInterceptor. Dan, is it possible to do produce a custom response code
this way ?

cheers, Sergey

Raphaƫl Flores-2 wrote:
> Hi all, I'd like to make my application server sending a 401 HTTP status 
> to client side for the client side user must enter his login/password.
> Is it programmatically possible to directly modify HTTP Headers with 
> CXF, or is there something already made for that ? If yes, could one 
> guide me to resources please.
> Thanks
> -- 
> Raphael F.

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message