Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CXF Plugin

...

The Apache CXF Fediz plugin for an Apache CXF web service contains two separate pieces of functionality. The first is a CallbackHandler that allows the SAML Token of the Web SSO session to be used by the CXF Web Services Stack, i.e. for delegation (available since 1.1). The second is a full WS-Federation RP plugin based solely on Apache CXF JAX-RS, which is container independent (available since 1.2.0).

...

Code Block
titleCXF spring configuration
<bean id="serviceBean" class="org.apache.cxf.fediz.example.Service">
</bean>
   
<bean id="fedizFilter" class="org.apache.cxf.fediz.cxf.plugin.FedizRedirectBindingFilter">
    <property name="configFile" value="fediz_config.xml"/>
</bean>

   
<bean id="authorizationInterceptor"
      class="org.apache.cxf.interceptor.security.SecureAnnotationsInterceptor">
   <property name="securedObject" ref="serviceBean" />
</bean>

<jaxrs:server address="/">
    <jaxrs:serviceBeans>
        <ref bean="serviceBean"/>
    </jaxrs:serviceBeans>
    <jaxrs:providers>
        <ref bean="fedizFilter"/>
        <ref bean="exceptionMapper"/>
    </jaxrs:providers>
    <jaxrs:inInterceptors>
        <ref bean="authorizationInterceptor"/>
    </jaxrs:inInterceptors>
</jaxrs:server>

...

Code Block
xml
xml
borderStylesolid
titlepom.xml
    <dependency>
        <groupId>org.apache.cxf.fediz</groupId>
        <artifactId>fediz-cxf</artifactId>
        <version>1.14.0<5</version>
    </dependency>

The example contains a README with instructions for building and deployment.

...