Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add xmlns:util to <beans> definition

...

We now have to make CAS handle nicely the OpenId request he will be presented with. First, we'll add a handler for the /login url, when called to validate a ticket (CAS is implementing the dumb OpenId mode, which means it does not create an association at the beginning of the authentication process. It must then check the received authentication success notification, which is done by one extra HTTP request at the end of the process). Anywhere in the cas-servlet.xml file, add this bean definition :

...

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>

Also, add the indicated lines to the <beans> definition at the top of the file, if they're not already there:

Code Block
languagehtml/xml
<beans xmlns="http://www.springframework.org/schema/beans"
       ...
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="...
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd
       ...">

 

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

...