Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 23rd, 2013  |  syntax: None  |  size: 3.30 KB  |  views: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. <http auto-config='false' disable-url-rewriting="true" entry-point-ref="casProcessingFilterEntryPoint"
  3.                 access-decision-manager-ref="accessDecisionManager" use-expressions="true">
  4.                 <session-management session-authentication-strategy-ref="sas"/>
  5.                 <custom-filter ref="concurrencyFilter" position="CONCURRENT_SESSION_FILTER" />
  6.                 <custom-filter ref="casFilter" position="CAS_FILTER" />
  7.                 <logout />
  8.         </http>
  9.         <context:property-placeholder location="classpath:${env}.properties" />
  10.         <authentication-manager alias="authenticationManager">
  11.                 <authentication-provider ref="casAuthenticationProvider" />
  12.         </authentication-manager>
  13.  
  14.         <beans:bean id="userDetailsService" class="customJdbcStuff">
  15.                 <beans:property name="dataSource" ref="transactionAwareDataSource" />
  16.                 <beans:property name="usersByUsernameQuery"
  17.                         value="customStuff" />
  18.  
  19.                 <beans:property name="rolePrefix" value="" />
  20.                 <beans:property name="enableGroups" value="true" />
  21.         </beans:bean>
  22.  
  23.         <beans:bean id="casFilter" class="org.springframework.security.cas.web.CasAuthenticationFilter">
  24.                 <beans:property name="proxyGrantingTicketStorage" ref="proxyGrantingTicketStorage" />
  25.                 <beans:property name="proxyReceptorUrl" value="/secure/receptor" />
  26.                 <beans:property name="filterProcessesUrl" value="/j_spring_cas_security_check" />
  27.                 <beans:property name="authenticationManager" ref="authenticationManager" />
  28.                 <beans:property name="sessionAuthenticationStrategy" ref="sas" />
  29.                 <beans:property name="authenticationFailureHandler" ref="authenticationFailureHandler" />
  30.                 <beans:property name="authenticationSuccessHandler" ref="authenticationSuccessHandler" />
  31.         </beans:bean>
  32.  
  33.         <beans:bean id="casProcessingFilterEntryPoint" class="org.springframework.security.cas.web.CasAuthenticationEntryPoint">
  34.                 <beans:property name="loginUrl" value="${cas.server}/cas/login" />
  35.                 <beans:property name="serviceProperties" ref="serviceProperties" />
  36.                 <beans:property name="encodeServiceUrlWithSessionId" value="false" />
  37.         </beans:bean>
  38.  
  39.         <beans:bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties">
  40.                 <beans:property name="service" value="${host.name}/j_spring_cas_security_check" />
  41.                 <beans:property name="sendRenew" value="false" />
  42.         </beans:bean>
  43.  
  44.         <beans:bean id="casAuthenticationProvider" class="org.springframework.security.cas.authentication.CasAuthenticationProvider">
  45.                 <beans:property name="userDetailsService" ref="userDetailsService" />
  46.                 <beans:property name="serviceProperties" ref="serviceProperties" />
  47.                 <beans:property name="ticketValidator">
  48.                         <beans:bean class="customStuff"/>
  49.                 </beans:property>
  50.                 <beans:property name="key" value="somethingSpecial" />
  51.         </beans:bean>
  52.  
  53.         <beans:bean id="proxyGrantingTicketStorage" class="org.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl" />
  54.  
  55.         <beans:bean id="concurrencyFilter" class="org.springframework.security.web.session.ConcurrentSessionFilter">
  56.                 <beans:property name="sessionRegistry" ref="sessionRegistry" />
  57.                 <beans:property name="expiredUrl" value="/concurrentUser.jsp" />
  58.         </beans:bean>
  59.  
  60.         <beans:bean id="sas" class="org.springframework.security.web.authentication.session.ConcurrentSessionControlStrategy">
  61.                 <beans:constructor-arg name="sessionRegistry" ref="sessionRegistry" />
  62.                 <beans:property name="maximumSessions" value="1" />
  63.         </beans:bean>