<?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: making explorer2 more SSO friendly in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43765#M23921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 09:39:05 GMT</pubDate>
    <dc:creator>heymjo</dc:creator>
    <dc:date>2011-06-07T09:39:05Z</dc:date>
    <item>
      <title>making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43756#M23912</link>
      <description>Hi,I have created a patch that makes the explorer behave nicely when you place it behind an SSO. Typically when users are authenticated in-container to the web application then request.getUserPrincipal() will give you the current user principal. There is not much to it as you will see from the patch</description>
      <pubDate>Tue, 31 May 2011 12:38:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43756#M23912</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-05-31T12:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43757#M23913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my opinion Activiti should externalize identity service more radically. I understand the team wants to deliver complete working out-of-the-box "toy" and must provide own identity service. Unfortunately it is still badly designed: 1. nothing to do with container provided identity ( realms ); and even worse: 2. Pluggability is almost impossible for backends like LDAP. Why not follow something like in Tomcat realms?! Can be implemented also with SQL for having something out-of-the-box but also allow to use existing backends. Who today creates own identity service in every possible system in the company?! I observe and wait patiently for a possibility to connect Acitiviti to external identity backend but still eveluate it as impossible. It is easy to imagine identity backend that doesn't persist passwords today - only a hash. Current Activiti 5.5 version unfortunately needs password in IdentityServiceImpl and CheckPassword so it cannot be used with backends that don't provide passwords.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 19:45:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43757#M23913</guid>
      <dc:creator>p4w3l</dc:creator>
      <dc:date>2011-05-31T19:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43758#M23914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1. nothing to do with container provided identity ( realms );&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Simply because activity does not need to be be used in a container, so independence of that is needed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;2. Pluggability is almost impossible for backends like LDAP.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Might be, feel free to write a decent indepth proposal (preferably in the form of java code) that takes everything into account, so not only solves your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Who today creates own identity service in every possible system in the company?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Maybe you are one of the lucky few where someone else once decided on a one-size-fits-all solution for SSO etc… Many, many companies are not that advanced/progressive etc…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;! I observe and wait patiently for a possibility to connect Acitiviti to external identity backend but still eveluate it as impossible&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Shame on you… feels like complaying and doing nothing… hmmm gives me not so nice feelings..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 00:00:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43758#M23914</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-06-01T00:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43759#M23915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You really encouraged me to go Ron! It is my second ( third if I count jBPM ) to make Activiti work with LDAP and please then make following modification in the source code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;replace execute method in org.activiti.engine.impl.cmd.CheckPassword to the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; public Boolean execute(CommandContext commandContext) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return commandContext.getUserManager().checkPassword(user, password);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;this will delegate user/password check to org.activiti.engine.impl.persistence.entity.UserManager where please add one more method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; public Boolean checkPassword( String user, String password ) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; User user = findUserById( user );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (user!=null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; (password!=null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;&amp;amp; (password.equals(user.getPassword()))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; }&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This will let us override the method in customised UserManager and implement different behaviour like i.e. verification with LDAP bind attempt instead of string compare.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you please create the patch for me or I have to learn all that development cycle stuff myself?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 08:58:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43759#M23915</guid>
      <dc:creator>p4w3l</dc:creator>
      <dc:date>2011-06-01T08:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43760#M23916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, greate to called a motivator &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'll give it a go next week, but creating a real patch is not that hard. Just select both classes in you ide and in the context menu (right click) there must be something about team (eclipse) or something related (netbeans, intellij or whatever) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh and make sure all tests run green &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides that it is also a good idea to create a jira for this (and then attach the patch there) so it won't be forgotten. You may assign that issue to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 10:33:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43760#M23916</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-06-02T10:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43761#M23917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ouch, stupid me… The original post already contained a jira AND a patch…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 21:36:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43761#M23917</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-06-02T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43762#M23918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have published my patch in &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-833" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-833&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It doesn't change any existing functionality in Activiti only delegates login method from IdentityServiceImpl to UserManager. The second one is pluggable with activiti.cfg.xml and allows to customise login now&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is tested with 5.5 and 5.6 ( all test passed with "ant clean distro" ) and works for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Who accepts to incorporate it into next release?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 11:53:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43762#M23918</guid>
      <dc:creator>p4w3l</dc:creator>
      <dc:date>2011-06-06T11:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43763#M23919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Last week, I did some refactoring of the Login mechanism of the Explore2 webapp, to allow pluggable authenticating:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - LoggedInUser is now interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - LoginHandler can be plugged in using spring-contenxt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - LoginHandler exposes authenticate(user, pwd) and authenticate() (for automatic authentication eg. existing session-data)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the SSO patch you suggested can be easilly implemented by a LoginHandler. The other patch (moving check to UserManager) makes sense from a plugability perspective and will take this one on trunk this release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 12:00:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43763#M23919</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-06T12:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43764#M23920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@frederik: Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 15:30:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43764#M23920</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-06-06T15:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: making explorer2 more SSO friendly</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43765#M23921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great, thanks !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 09:39:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/making-explorer2-more-sso-friendly/m-p/43765#M23921</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2011-06-07T09:39:05Z</dc:date>
    </item>
  </channel>
</rss>

