<?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: Alfresco+Liferay+Cas=SSO in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296873#M250003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok i will try&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2016 06:55:00 GMT</pubDate>
    <dc:creator>abhishek2341</dc:creator>
    <dc:date>2016-05-19T06:55:00Z</dc:date>
    <item>
      <title>Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296871#M250001</link>
      <description>Hi Forum , let me tell u i am liferay developer and i'm having one requirement regarding Alfresco , so it almost completed but i/m stuck in the middle of my project so i reallyie need a expert opinion in this , kindly help me to clear this.As my requirement is i had integrated the alfresco in lifera</description>
      <pubDate>Thu, 12 May 2016 10:27:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296871#M250001</guid>
      <dc:creator>abhishek2341</dc:creator>
      <dc:date>2016-05-12T10:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296872#M250002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Abhishek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When integrating with Liferay, Alfresco is configured to use the external authentication system, which is basically a way for Alfresco to allow authentication to be delegated to an external system - basically if that system gives Alfresco a username, Alfresco will treat that user as authenticated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, as far as I know, by default Alfresco expects a header to be supplied on the request containing the user id of the authenticated user - unless you've changed this in the external authentication subsystem properties, this will be the header "X-Alfresco-Remote-User".&amp;nbsp; If this header is present and contains a user that Alfresco recognises, then you get logged in - otherwise login page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally (I think), when Share is running as a portlet in Liferay it generally gets the screen name from the remoteUser value of the current request (from the portlet's user-principal-strategy: screenName).&amp;nbsp; It then set's the "X-Alfresco-Remote-User" header on all requests from the Share running within Liferay to Alfresco, thus meeting the external authentication requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, it sounds like Share is not sending the correct header on the request to Alfresco, so Alfresco is redirecting for authentication.&amp;nbsp; It may be that because of the involvement of CAS in the mix here that the remoteUser value is unavailable to the share portlet for some reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possibility is that the header is being sent but the username being included on the header doesn't match what Alfresco expects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest next steps to take would be to verify whether or not the header exists on request from Share to Alfresco and whether it contains the right value.&amp;nbsp; Possibly use a network analyser like Wireshark if Liferay and Alfresco are running on different systems, or if you can, attaching a remote debugging session will allow to see a lot.&amp;nbsp; Classes to look at would be org.alfresco.web.site.servlet.SSOAuthenticationFilter&amp;nbsp; on the Share side and org.alfresco.web.app.servlet.DefaultRemoteUserMapper on the Alfresco side&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 23:09:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296872#M250002</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-05-18T23:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296873#M250003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok i will try&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 06:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296873#M250003</guid>
      <dc:creator>abhishek2341</dc:creator>
      <dc:date>2016-05-19T06:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296874#M250004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i got this error when i enter the Credentials&amp;nbsp; in liferay cas login page &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;username- admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;password- admin &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; alfresco username and passwrod is same &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but i got this error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(liferay eclipse console ) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2016-05-19 09:54:23,254&amp;nbsp; INFO&amp;nbsp; [webscripts.connector.RemoteClient] [http-bio-9080-exec-1] Exception calling (POST) &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/remoteadm/create/alfresco/site-data/extensions/default-persisted-extension.xml?s=sitestore" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/remoteadm/create/alfresco/site-data/extensions/default-persisted-extension.xml?s=sitestore&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; 2016-05-19 09:54:23,254&amp;nbsp; INFO&amp;nbsp; [webscripts.connector.RemoteClient] [http-bio-9080-exec-1] Error status 500 Connection reset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; java.net.SocketException: Connection reset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.net.SocketInputStream.read(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.net.SocketInputStream.read(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what does it realliye mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and alfresco-global.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;authentication.chain=alfrescoNtlm1:alfrescoNtlm,external1:external &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;external.authentication.proxyUserName=alfresco-system&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;external.authentication.enabled=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;external.authentication.defaultAdministratorUserNames=admin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;external.authentication.proxyHeader=X-Alfresco-Remote-User&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But still nothing goona work still i have to do login.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 11:30:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296874#M250004</guid>
      <dc:creator>abhishek2341</dc:creator>
      <dc:date>2016-05-19T11:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296875#M250005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Abhishek, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said previously you need to check whether the header is being set on the calls to Alfresco (not Share), and whether it contains what you think it should.&amp;nbsp; You should not be setting external.authentication.proxyUserName=alfresco-system - that should be set to empty unless you are using SSL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apart from the that, there's very little config that is done in Alfresco to make things work.&amp;nbsp; As I mentioned above, if the user's screen name is available via a getRmoteUser call, then the Share portlet will pick it up and send the correct header to Alfresco.&amp;nbsp; If it is not available, there's nothing you can configure in Alfresco to change that.&amp;nbsp; You would have to identify what's happening in CAS/Liferay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 12:47:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296875#M250005</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-05-19T12:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296876#M250006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah correct sir that is what i am trying to do getRemoteUser , but how excatly i can do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how would i can do so that it can authenticate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kindly tell me the steps . from today whole day i did configurations but nothing gonna exactly it works..where i have to do modifications&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;already i tried a lot. but sign in again issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1- what exactly i have to put in global.properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2- what exactly i have to put in config.xml file in alfresco and liferay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kindly tell me above this. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 12:56:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296876#M250006</guid>
      <dc:creator>abhishek2341</dc:creator>
      <dc:date>2016-05-19T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296877#M250007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how eaxctly i have to do or modified &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;need to check whether the header is being set on the calls to Alfresco ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 13:04:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296877#M250007</guid>
      <dc:creator>abhishek2341</dc:creator>
      <dc:date>2016-05-19T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296878#M250008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah sir i followed your steps and put the x-alfresco-remote-user now i get the share portlet directly logged in but one problem comes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i started the liferay server , it will take some time , after few minutes i see that share portlet is directly logged in but the when i tried to logout then in setting logout button is missing. i dont know why ?? kindly have a look in screenshot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sir finally my logion happened kindly tell me how to logout so that i will recheck sso is working or not ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 12:51:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296878#M250008</guid>
      <dc:creator>abhishek2341</dc:creator>
      <dc:date>2016-05-20T12:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296879#M250009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Abhishek, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The logout button is not displayed when you are signed in using external authentication.&amp;nbsp; Authentication is being handled by an external entity (CAS in your case), it controls whether the user is treated as authenticated or not. Alfresco has no say in this, authentication is delegated fully to the external system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to log the user out, you log out via CAS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 17:11:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296879#M250009</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-05-20T17:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296880#M250010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yeah i get that one but how to logout from cas, as because when i put the filter tag in liferay/tomcat/webapp/share/web.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this code &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;filter&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;filter-name&amp;gt;CAS Single Sign Out Filter&amp;lt;/filter-name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;filter-class&amp;gt;org.jasig.cas.client.session.SingleSignOutFilter&amp;lt;/filter-class&amp;gt;&lt;BR /&gt;&amp;lt;/filter&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;filter-mapping&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;filter-name&amp;gt;CAS Single Sign Out Filter&amp;lt;/filter-name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;BR /&gt;&amp;lt;/filter-mapping&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;listener&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;listener-class&amp;gt;org.jasig.cas.client.session.SingleSignOutHttpSessionListener&amp;lt;/listener-class&amp;gt;&lt;BR /&gt;&amp;lt;/listener&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;/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;then my portlet suddenly Unavailable , what should i do now sir as because it is not been authentication via cas , if i changed the custom-config.xnl file and manually if i logout then if i want to login again then again login page come….??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how to logout when i click on logout button in liferay . &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kindly tell me , login happened only logout is been left&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 May 2016 09:55:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296880#M250010</guid>
      <dc:creator>abhishek2341</dc:creator>
      <dc:date>2016-05-21T09:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco+Liferay+Cas=SSO</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296881#M250011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;steven.okennedy _&lt;/B&gt;&amp;nbsp; &lt;A __default_attr="73095" __jive_macro_name="user" _jive_internal="true" data-id="73095" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/abhishek2341" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;, Can you please help me with the steps to set&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;x-alfresco-remote-user in the header? I'm facing the&amp;nbsp;same issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 13:59:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-liferay-cas-sso/m-p/296881#M250011</guid>
      <dc:creator>user140911</dc:creator>
      <dc:date>2018-01-11T13:59:52Z</dc:date>
    </item>
  </channel>
</rss>

