Versions Compared

Key

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

...

Currently only works with SAML 1.1

  • Client Mods
    • dependencies

      Code Block
    • <dependency>
        <groupId>org.apache.santuario</groupId>
        <artifactId>xmlsec</artifactId>
        <version>1.4.5</version>
      </dependency>
      
      <dependency>
        <groupId>org.opensaml</groupId>
        <artifactId>opensaml</artifactId>
        <version>1.1b</version>
      </dependency>
      
    • org.jasig.cas.client.authentication.Saml11AuthenticationFilter
    • org.jasig.cas.client.validation.Saml11TicketValidationFilter
    • org.jasig.cas.client.util.HttpServletRequestWrapperFilter
    • Add init-param to HttpServletRequestWrapperFilter :

      Code Block
    • <param-name>roleAttribute</param-name>
      <param-value>USER_ROLE</param-value>
      
  • Server Mods

    On deployerConfigContext.xml add :

    Code Block
    
    <bean id="multiRowJdbcPersonAttributeDao" class="org.jasig.services.persondir.support.jdbc.MultiRowJdbcPersonAttributeDao">
       <constructor-arg index="0" ref="dataSource" />
       <constructor-arg index="1" value="select LOGINNAME, 'USER_ROLE' as attr_name, ROLENAME FROM VW_USER_ROLES WHERE {0}" />
       <property name="nameValueColumnMappings">
           <map>
              <entry key="attr_name" value="ROLENAME" />
           </map>
       </property>
       <property name="queryAttributeMapping">
           <map>
             <entry key="username" value="LOGINNAME" />
          </map>
       </property>
    </bean>
    
     
    ...
     
    <bean id="authenticationManager" class="org.jasig.cas.authentication.AuthenticationManagerImpl">
    	<property name="credentialsToPrincipalResolvers">
    		<list>
    			<bean class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver" >
    				<property name="attributeRepository" ref="multiRowJdbcPersonAttributeDao"/>
    			</bean>
    ...
  • Runtime changes
    • in Services Management i.e. /cas/services/ manage.html Edit service to 'Ignore Attribute Management via this Tool'