Info |
---|
Help is available by sending an email to csf-support@mit.edu |
Panel | |||||||
---|---|---|---|---|---|---|---|
|
Panel | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Anchor | | Using X509 Application Certificates with CSF Security version 2 | Using X509 Application Certificates with CSF Security version 2 | ||||||||||||||||
Code Block |
<bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy">
<security:filter-chain-map path-type="ant">
<security:filter-chain pattern="/css/**" filters="logoutFilter" />
<security:filter-chain pattern="/images/**" filters="logoutFilter" />
<security:filter-chain pattern="/js/**" filters="logoutFilter" />
<security:filter-chain pattern="/docs/**" filters="logoutFilter" />
<security:filter-chain pattern="/**" filters="ssoX509SecurityContextPersistenceFilter,
logoutFilter,
ssoX509AuthenticationProcessingFilter,
basicAuthenticationProcessingFilter,
exceptionTranslationFilter,
filterSecurityInterceptor"
/>
</security:filter-chain-map>
</bean>
<bean id="ssoX509SecurityContextPersistenceFilter" class="edu.mit.csf.security.spring.filter.SsoX509SecurityContextPersistenceFilter"/>
<bean id="ssoX509AuthenticationProcessingFilter" class="edu.mit.csf.security.spring.filter.SsoX509AuthenticationProcessingFilter">
<property name="authenticationManager" ref="authenticationManager"/>
<property name="allowedEntities" ref="allowedEntities"/>
</bean> |
{code} # Add the following bean to your application's appicationContext conf xml. |
For Tomcat servers:
\\ \\ *For Tomcat servers:* {code} <bean id="allowedEntities" class="edu.mit.csf.base.configuration.CompactApacheApplicationConfiguration" init-method="init"> <property name="locations"> <list> <value>file:${user.dir}/<application identifier>/allowedEntities.properties</value> </list> </property> </bean> |
{code} Notice that in the <value> line there is a *<application identifier>* entry. |
You must replace the *<application identifier>* with your application identifier. For example: if your application identifier is *addDrop*, then the <value> line would be: {code} <value>file:${user.dir}/addDrop/allowedEntities.properties</value> |
{code} \\ *For OC4J servers:* {code} <bean id="allowedEntities" class="edu.mit.csf.base.configuration.CompactApacheApplicationConfiguration" init-method="init"> <property name="locations"> <list> <value>file:${user.home}/allowedEntities.properties</value> </list> </property> </bean> |
{code} # Create a new allowedEntities.properties file and place it in either the $\{user.dir}/<application identifier> directory for apache/tomcat servers or in the $\{user.home} for OC4J servers. |
The entries for this propery file must be of the following |
<application certificate CN>=yes
Here are two entries for commonly used application certificates:
syntax: \\ \\ *<application certificate CN>=yes* \\ \\ Here are two entries for commonly used application certificates: {code} # for the registrar application certificate registrar.app.mit.edu=yes # for the registrar-test application certificate registrar-test.app.mit.edu=yes {code} |
Panel | ||||||
---|---|---|---|---|---|---|
Things that you should be aware ofThese notes pertain to the ssoX509SecurityContextPersistenceFilter and the ssoX509AuthenticationProcessingFilter.
|