JAXRS KerberosPage edited by Sergey BeryozkinChanges (8)
Full ContentJAX-RS Kerberos Support IntroductionKerberosHTTP Negotiate schemeGSS APIClient configurationHTTPConduitPlease see this page for the information about Spnego/Kerberos HTTPConduit client support. Interceptororg.apache.cxf.jaxrs.security.KerberosAuthOutInterceptor can be used as an alternative to configuring HTTPConduit. KerberosAuthOutInterceptor and the HTTPConduit Spnego handler share the same base code. Having HTTPConduit configuration can be enough in many cases The interceptor properties are explained in the following sub-sections Authorization PolicyAs explained on this page, Authorization Policy typically needs to have its type set to "Negotiate" and its "authorization" property set to the name of the JAAS context. AuthorizationPolicy is set as a "policy" property on the interceptor, example: WebClient wc = WebClient.create("http://localhost:" + PORT + "/bookstore/books/123"); KerberosAuthOutInterceptor kbInterceptor = new KerberosAuthOutInterceptor(); AuthorizationPolicy policy = new AuthorizationPolicy(); policy.setAuthorizationType(HttpAuthHeader.AUTH_TYPE_NEGOTIATE); policy.setAuthorization("KerberosClientKeyTab"); kbInterceptor.setPolicy(policy); WebClient.getConfig(wc).getOutInterceptors().add(kbInterceptor); Book b = wc.get(Book.class);
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache CXF Documentation > JAXRS Kerberos confluence
- [CONF] Apache CXF Documentation > JAXRS Kerberos confluence
- [CONF] Apache CXF Documentation > JAXRS Kerberos confluence
