<?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: Problems writing an SSO plugin for Alfresco Share 3.3g in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problems-writing-an-sso-plugin-for-alfresco-share-3-3g/m-p/230679#M183809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using OpenSSO for authentication or any other method for that matter is totally doable if the basics are understood properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) Share never ever fully authenticates a user. All that authentication plugins can do is forward credentials to the underlying repository and that repository is responsible for the authentication. (Note: NOT the web client, although it provides some of the hooks.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) SSO filters of Share have to work in conjunction with endpoint connectors to allow SSO and normal login behaviour depending on the entry point of the user. A SSO filter alone will not work if the endpoint connector (including its authenticator) can't retain the authenticated session on the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c) Authentication filters of the repository / web client applications have to allow for the possibility of SSO and password logins. Usually the documentation/tutorials on that matter follow a SSO-only or login-only approach where both methods can not co-exist. I can not speak to the SourceSense plugin though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need should be these components (based on my experience with the matter of backporting some SPNEGO fixes from 3.3 to 3.2 and enabling co-existence of SSO and login):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) A filter for Alfresco Share that takes the SSO token, authenticates against the repository by passing it in a call to "/touch" and sets the external authentication flag in the session. Use the SSOAuthenticationFilter as a rough guideline for your implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) An authenticator for Alfresco Share endpoint connections that checks both the ticket in the connector session and the external authentication flag when determining if a user has already been authenticated. Simply extend the AlfrescoAuthenticator here. (Only this authenticator will later allow your users to both use SSO or normal login.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should not need to explicitly call authenticate or login on the UserFactory or the AuthenticationUtil at all for this to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Oct 2010 16:41:13 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2010-10-16T16:41:13Z</dc:date>
    <item>
      <title>Problems writing an SSO plugin for Alfresco Share 3.3g</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-writing-an-sso-plugin-for-alfresco-share-3-3g/m-p/230678#M183808</link>
      <description>I am writing an OpenSSO plugin for Alfresco Share. My spec is to check for the presence and validity of an SSO token in a cookie; if the cookie is not there, or is expired, the user should login to Share in the normal way, but if the cookie is present, and contains a valid token, then the user shoul</description>
      <pubDate>Fri, 08 Oct 2010 03:36:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-writing-an-sso-plugin-for-alfresco-share-3-3g/m-p/230678#M183808</guid>
      <dc:creator>metadaddy</dc:creator>
      <dc:date>2010-10-08T03:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problems writing an SSO plugin for Alfresco Share 3.3g</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problems-writing-an-sso-plugin-for-alfresco-share-3-3g/m-p/230679#M183809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using OpenSSO for authentication or any other method for that matter is totally doable if the basics are understood properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) Share never ever fully authenticates a user. All that authentication plugins can do is forward credentials to the underlying repository and that repository is responsible for the authentication. (Note: NOT the web client, although it provides some of the hooks.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) SSO filters of Share have to work in conjunction with endpoint connectors to allow SSO and normal login behaviour depending on the entry point of the user. A SSO filter alone will not work if the endpoint connector (including its authenticator) can't retain the authenticated session on the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c) Authentication filters of the repository / web client applications have to allow for the possibility of SSO and password logins. Usually the documentation/tutorials on that matter follow a SSO-only or login-only approach where both methods can not co-exist. I can not speak to the SourceSense plugin though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need should be these components (based on my experience with the matter of backporting some SPNEGO fixes from 3.3 to 3.2 and enabling co-existence of SSO and login):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) A filter for Alfresco Share that takes the SSO token, authenticates against the repository by passing it in a call to "/touch" and sets the external authentication flag in the session. Use the SSOAuthenticationFilter as a rough guideline for your implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) An authenticator for Alfresco Share endpoint connections that checks both the ticket in the connector session and the external authentication flag when determining if a user has already been authenticated. Simply extend the AlfrescoAuthenticator here. (Only this authenticator will later allow your users to both use SSO or normal login.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should not need to explicitly call authenticate or login on the UserFactory or the AuthenticationUtil at all for this to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 16:41:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problems-writing-an-sso-plugin-for-alfresco-share-3-3g/m-p/230679#M183809</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2010-10-16T16:41:13Z</dc:date>
    </item>
  </channel>
</rss>

