<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Developers : Dynamically Extending or Modifying the Acegi Security Chain in SBS 4.0 and later : Comments</title>
    <link>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments</link>
    <description>Comments on : Dynamically Extending or Modifying the Acegi Security Chain in SBS 4.0 and later</description>
    <language>en</language>
    <pubDate>Tue, 16 Mar 2010 22:12:57 GMT</pubDate>
    <generator>Jive SBS 4.0.5 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2010-03-16T22:12:57Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>RE: Dynamically Extending or Modifying the Acegi Security Chain in SBS 4.0 and later</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12015</link>
      <description>&lt;!-- [DocumentBodyStart:a9b1ca21-a92a-49c0-afbf-9d386b5304f3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Great write up Mark.&amp;#160; I'm in the process of upgrading from 2.5 -&amp;gt; 4.01&lt;/p&gt;&lt;p&gt;In 2.5 I added filters to the filter chain list like this:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&amp;lt;bean id="filterChainProxy"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;property name="filterInvocationDefinitionSource"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;value&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; PATTERN_TYPE_APACHE_ANT&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /rpc/soap/admin/**=wsRequireSSLFilter, httpSessionContextIntegrationFilter, meshAdminBasicAuthenticationFilter, jiveAuthenticationTranslationFilter&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/value&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/property&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/bean&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;&amp;lt;bean id="meshAdminBasicAuthenticationFilter" class="net.chordiant.mesh.security.auth.MeshAdminBasicAuthenticationFilter"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; ... &lt;/p&gt;&lt;p&gt;&amp;lt;/bean&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;That fired the meshAdminBasicAuthenticationFilter on request to this URI /rpc/soap/admin&lt;/p&gt;&lt;p&gt;No filter initialization code is needed in the plugin init routine.&lt;/p&gt;&lt;p&gt;Will I need to change the plugin behavior in 4.x?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Or is this use case not what you are talking about.&amp;#160; &lt;img height="16px" src="http://www.jivesoftware.com/jivespace/4.0.5/images/emoticons/blush.gif" width="16px"/&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Wayne&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a9b1ca21-a92a-49c0-afbf-9d386b5304f3] --&gt;</description>
      <pubDate>Tue, 16 Mar 2010 22:12:57 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12015</guid>
      <dc:date>2010-03-16T22:12:57Z</dc:date>
      <clearspace:dateToText>3 days, 20 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Dynamically Extending or Modifying the Acegi Security Chain in SBS 4.0 and later</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12020</link>
      <description>&lt;!-- [DocumentBodyStart:93e23052-a631-458e-be5d-24c2ba57a2f0] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It would be advisable to change the plugin filter behavior as I described in order for your plugin to be a good citizen. The purpose of the method is so that a plugin can add it's behavior without having to modify the spring-security.xml file that ships with SBS. Customizing any file within SBS core code not only leaves you exposed to future upgrade problems but also may prevent other third-party code from working correctly.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;By using the programmatic method I described you can keep your meshAdminBasicAuthenticationFilter completely within your plugin. If your plugin is ever removed it will not impact the system.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:93e23052-a631-458e-be5d-24c2ba57a2f0] --&gt;</description>
      <pubDate>Tue, 16 Mar 2010 22:48:39 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12020</guid>
      <dc:date>2010-03-16T22:48:39Z</dc:date>
      <clearspace:dateToText>3 days, 19 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Dynamically Extending or Modifying the Acegi Security Chain in SBS 4.0 and later</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12021</link>
      <description>&lt;!-- [DocumentBodyStart:57ac7b2d-f8d2-4ad4-917f-baad0f5b6d5f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I see, I had put the bean definitions in a plugin specific spring.xml file, but in essence you are correct it is still an overlay of the spring-security.xml file.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Your point is well taken, I'll try making the suggested changes.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Wayne&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:57ac7b2d-f8d2-4ad4-917f-baad0f5b6d5f] --&gt;</description>
      <pubDate>Tue, 16 Mar 2010 23:02:08 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12021</guid>
      <dc:date>2010-03-16T23:02:08Z</dc:date>
      <clearspace:dateToText>3 days, 19 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Dynamically Extending or Modifying the Acegi Security Chain in SBS 4.0 and later</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12023</link>
      <description>&lt;!-- [DocumentBodyStart:896e3fc1-a480-426f-a06e-9ba3532b8460] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Mark,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;One more question.&amp;#160; Under the overlay model I was by-passing authentiction for the following URIs&lt;/p&gt;&lt;p&gt;via these key value pairs&lt;/p&gt;&lt;p&gt;&amp;lt;bean id="filterChainProxy"&amp;gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;property name="filterInvocationDefinitionSource"&amp;gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;value&amp;gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; PATTERN_TYPE_APACHE_ANT&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /styles/**=#NONE#&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /resources/**=#NONE#&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /themes/**=#NONE#&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; /images/**=#NONE#&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ...&lt;/p&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/value&amp;gt;&lt;br/&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/property&amp;gt;&lt;br/&gt;&amp;lt;/bean&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;How would you recommend by-passing authentication for those URIs under the new model?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Wayne&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:896e3fc1-a480-426f-a06e-9ba3532b8460] --&gt;</description>
      <pubDate>Tue, 16 Mar 2010 23:45:36 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12023</guid>
      <dc:date>2010-03-16T23:45:36Z</dc:date>
      <clearspace:dateToText>3 days, 18 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>RE: Dynamically Extending or Modifying the Acegi Security Chain in SBS 4.0 and later</title>
      <link>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12024</link>
      <description>&lt;!-- [DocumentBodyStart:1d02f203-ccf2-4b68-bb80-2091c592a89d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;You could define a AllowAnonymousFilter and map it to the pluginPreFilterChain. The doFilter method would set the authentication context as the guest user and then would return immediately - it would not called chain.doFilter to ensure the filters are not processed.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;#160;&lt;/p&gt;&lt;p&gt;Or are you simply trying to block access to these services altogther? If so, just define a blocking filter that rejects everything.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1d02f203-ccf2-4b68-bb80-2091c592a89d] --&gt;</description>
      <pubDate>Wed, 17 Mar 2010 00:00:44 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/docs/DOC-8840#comments-12024</guid>
      <dc:date>2010-03-17T00:00:44Z</dc:date>
      <clearspace:dateToText>3 days, 18 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

