Versions Compared

Key

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

...

Code Block
languagehtml/xml
   <bean id="delegatingController" class="org.jasig.cas.web.DelegatingController"
    p:delegates-ref="delegateControllers"/>
  
   <util:list id="delegateControllers">
        <ref bean="smartOpenIdAssociationController"/>
        <ref bean="openIdValidateController"/>
    </util:list>

 

Next we must provide a ServerManager, which is a class from the openid4java library, which allows us to handle the Diffie-Hellman algorithm used by the association process.

Code Block
languagehtml/xml
<bean id="serverManager" class="org.openid4java.server.ServerManager"
          p:oPEndpointUrl="${cas.securityContext.casProcessingFilterEntryPoint.loginUrl}"
          p:enforceRpId="false"  />

 

Next, we'll give CAS a handler for the OpenIdSingleSignOnAction we added in the spring webflow definition file. So add this bean definition anywhere :

...

Code Block
languagehtml/xml
     <util:list id="argumentExtractors">
        <ref bean="casArgumentExtractor" />
        <!-- The OpenId arguments extractor -->
        <ref bean="openIdArgumentExtractor" />
        <ref bean="samlArgumentExtractor" />
     </util:list>

 

Next we must provide a ServerManager, which is a class from the openid4java library, which allows us to handle the Diffie-Hellman algorithm used by the association process. In the spring-configuration/applicationContext.xml file, add this bean definition :

Code Block
languagehtml/xml
<bean id="serverManager" class="org.openid4java.server.ServerManager"
          p:oPEndpointUrl="${cas.securityContext.casProcessingFilterEntryPoint.loginUrl}"
          p:enforceRpId="false"  />

And finally, we need an applicationContext provider , so add this bean into spring-configuration/applicationContext.xml :

Code Block
languagehtml/xml
<bean id="applicationContextProvider" class="org.jasig.cas.util.ApplicationContextProvider" />

You're done ! CAS is now configured to work as an OpenId Provider.