<?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: Web Script and Single Sign On in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154107#M108598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ultimately the same method gets called - AuthenticationHelper.authenticate() but the code path to that function is different. The web-client path goes via code in AuthenticationFilter.java (URL /alfresco/faces/* ) and the web-script path uses code within WebScriptServlet.java (URL /alfresco/wcservice/* )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both work when native Alfresco authentication is used (ie the Alfresco login page). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add in the CASAuthenticationFilter, which replaces the code in the LoginBean.java&amp;nbsp; and AuthenticaionFilter.java, the web-script authentication fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't had a chance to step through the code but it looks like the CASAuthenticationFilter is not doing everything it is supposed to do, and some data is missing from the session by the time the WebScriptServlet sees the request, thus failing the authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm keen to fix the CASAuthenticationFilter so it works with /wcservice so is there anyone who knows what LoginBean.java does that must be replicated in the SSO filters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is it just me and the code…?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 05:33:47 GMT</pubDate>
    <dc:creator>mikewaters</dc:creator>
    <dc:date>2008-06-03T05:33:47Z</dc:date>
    <item>
      <title>Web Script and Single Sign On</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154103#M108594</link>
      <description>We have a requirement to implement single sign on over web scriptsWe want to allow a user of a third party application to click on a link to view a UI based web script and get authenticated without re-entering their credentials.I am going to see if it can be done by implementing one of the Authentic</description>
      <pubDate>Sat, 31 May 2008 10:15:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154103#M108594</guid>
      <dc:creator>mikewaters</dc:creator>
      <dc:date>2008-05-31T10:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Web Script and Single Sign On</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154104#M108595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just want to point out that webscripts are accessible using two methods - /alfresco/service carries its own authentication, and /wcservice uses authentication of the web client.&amp;nbsp; There are definitely examples of SSO-type functionality on the webclient side, i.e. ntlm authentication, etc.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know precisely how the /service authentication works, but since we do single signon with liferay, I am sure you can implement SSO on that protocol as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if your users are already logged into Alfresco UI (not sure if they are) - this could be an easy way to achieve this effect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jun 2008 13:59:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154104#M108595</guid>
      <dc:creator>jbarmash</dc:creator>
      <dc:date>2008-06-01T13:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Web Script and Single Sign On</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154105#M108596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me that the most promising approach is to use an SSO framework like CAS or SiteMinder over /alfresco/wcservlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The standard /alfresco/service web script servlet uses HTTP Basic authentication which means we need to pass the username and password in the authentication headers, which is not an option for us. Firstly we don't have access to the password, since it is held in LDAP. Secondly I don't know how to pass the credentials in a hyperlink or browser redirect. (The user is not already authenticated when the webscript URL is called)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With CAS the first hurdle is that the authentication of /alfresco/wcservlet, is not done with servlet filters but inside the servlet code, so it must work differently from the standard web client authentication which does use filters. My first attempt at implementing CAS works fine for the web client, but not for /alfresco/wcservice.&amp;nbsp; I think it may be that the processing of the web client login page adds some extra information into the session which is not added by the authentication filters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my follow up question is, is there any more information available on wcservice authentication and if so, where? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, is there any source code or documentation about the liferay SSO solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 11:02:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154105#M108596</guid>
      <dc:creator>mikewaters</dc:creator>
      <dc:date>2008-06-02T11:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Web Script and Single Sign On</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154106#M108597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is now getting beyond my area of expertise a bit.&amp;nbsp;&amp;nbsp; Everything we have related to security is underneath here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Category:Security" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Category&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ecurity&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or in code / JavaDocs.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This page (which I think you already saw) is relevant.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Enterprise_Security_and_Authentication_Configuration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Enterprise_Security_and_Authentication_Configuration&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Central_Authentication_Service_Configuration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Central_Authentication_Service_Configuration&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it's strange that code that works for web client does not for wcservice- i thought those were supposed to be equivalent.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:24:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154106#M108597</guid>
      <dc:creator>jbarmash</dc:creator>
      <dc:date>2008-06-02T18:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Web Script and Single Sign On</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154107#M108598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ultimately the same method gets called - AuthenticationHelper.authenticate() but the code path to that function is different. The web-client path goes via code in AuthenticationFilter.java (URL /alfresco/faces/* ) and the web-script path uses code within WebScriptServlet.java (URL /alfresco/wcservice/* )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both work when native Alfresco authentication is used (ie the Alfresco login page). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add in the CASAuthenticationFilter, which replaces the code in the LoginBean.java&amp;nbsp; and AuthenticaionFilter.java, the web-script authentication fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't had a chance to step through the code but it looks like the CASAuthenticationFilter is not doing everything it is supposed to do, and some data is missing from the session by the time the WebScriptServlet sees the request, thus failing the authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm keen to fix the CASAuthenticationFilter so it works with /wcservice so is there anyone who knows what LoginBean.java does that must be replicated in the SSO filters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is it just me and the code…?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 05:33:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154107#M108598</guid>
      <dc:creator>mikewaters</dc:creator>
      <dc:date>2008-06-03T05:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Web Script and Single Sign On</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154108#M108599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tracked down the problem - both CAS and Alfresco use a URL parameter "ticket" as part of the authentication mechanism, and one clashes with the other. As a result Alfresco sees a "ticket" parameter, and fails to validate it because it is a CAS ticket not an alfresco ticket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Heres some background.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?f=9&amp;amp;t=9889&amp;amp;p=32707" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?f=9&amp;amp;t=9889&amp;amp;p=32707&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?f=9&amp;amp;t=8431&amp;amp;p=27829" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?f=9&amp;amp;t=8431&amp;amp;p=27829&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/ALFCOM-705" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/ALFCOM-705&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workaround is to change the Alfresco Java code. In 2 places&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. In BaseServlet.java change the value of ARG_TICKET to something other than "ticket" (eg "alfticket") this should get the download servlet (and others?) working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;private static final String ARG_TICKET&amp;nbsp;&amp;nbsp; = "ticket";&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;2. For web scripts the parameter&amp;nbsp; "ticket" is referenced in WebClientAuthenticatorFactory.java in an inner class method WebClientAuthenticator.authenticate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;String ticket = req.getParameter("ticket");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Change this to the same value and web script calls should get the CAS authentication working, since the Alfresco authentication code will now ignore "ticket"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WARNING -&amp;nbsp; Although the Alfresco authentication checks for "alfticket" it looks suspiciously like the Alfresco code that generates URLs with a&amp;nbsp; "ticket" parameter is elsewhere and will still be using "ticket". So the internal Alfresco Ticket handling might still be broken.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2008 07:53:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-and-single-sign-on/m-p/154108#M108599</guid>
      <dc:creator>mikewaters</dc:creator>
      <dc:date>2008-06-08T07:53:30Z</dc:date>
    </item>
  </channel>
</rss>

