<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Share authentication customization in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-authentication-customization/m-p/281200#M234330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This works. Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 20:42:57 GMT</pubDate>
    <dc:creator>outlandish</dc:creator>
    <dc:date>2013-05-24T20:42:57Z</dc:date>
    <item>
      <title>Share authentication customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-authentication-customization/m-p/281198#M234328</link>
      <description>I need to modify the Share authentication mechanism. When a user attempts to login from the share page, I need to add a check that checks for the user's tenant domain with the prefix of the web address. If username's tenant address matches with the prefix of the web address then the user is allowed</description>
      <pubDate>Tue, 21 May 2013 18:04:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-authentication-customization/m-p/281198#M234328</guid>
      <dc:creator>outlandish</dc:creator>
      <dc:date>2013-05-21T18:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Share authentication customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-authentication-customization/m-p/281199#M234329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this will be a bit tricky, since authentication is done on the Repository tier while the web address will only be available on the Share tier for validation. I think the best way would be to provide a custom Surf LoginController implementation via an override of the "loginController" bean i.e. in custom-slingshot-application-context.xml. The default bean is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="loginController" class="org.springframework.extensions.surf.mvc.LoginController"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="cacheSeconds" value="-1" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="useExpiresHeader"&amp;gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="useCacheControlHeader"&amp;gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="userFactory" ref="user.factory"&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and you need to provide a different implementation class (meaning via Java development). This class has access to the HTTPServletRequest and can compare the tenant suffix of the userName (request parameter) with the public web address. Only if there is a match, a custom implementation can delegate to the default logic (e.g. using a specific subclass which delegates to super).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 10:28:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-authentication-customization/m-p/281199#M234329</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-05-23T10:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Share authentication customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-authentication-customization/m-p/281200#M234330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This works. Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 20:42:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-authentication-customization/m-p/281200#M234330</guid>
      <dc:creator>outlandish</dc:creator>
      <dc:date>2013-05-24T20:42:57Z</dc:date>
    </item>
  </channel>
</rss>

