...
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="handlerMappingC" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> <prop key="/logout">logoutController</prop> ... <prop key="/openid/*">openIdProviderController</prop> ... <bean id="openIdProviderController" class="org.jasig.cas.support.openid.web.OpenIdProviderController" p:loginUrl="${server.prefix}/login"/> |
Add the OpenID entry in the unique id generator map (since CAS 4.0)
Since CAS 4.0, the OpenID entry in the unique id generator map is no more defined by default in the CAS server.
The OpenID entry should be added to the uniqueIdGenerators.xml file :
Code Block | ||||
---|---|---|---|---|
| ||||
<util:map id="uniqueIdGeneratorsMap">
...
<entry
key="org.jasig.cas.support.openid.authentication.principal.OpenIdService"
value-ref="serviceTicketUniqueIdGenerator" />
</util:map> |
Update webflow
CAS uses a spring webflow to describe the the authentication process. We need to change it a little bit to allow CAS to switch to OpenId authentication if it recognizes one. This is done in the login-webflow.xml fie. After the on-start element just add these two blocks :
...