<?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 Login To Alfresco API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54134#M20044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this API, I can get the token to do some stuff:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;A class="unlinked"&gt;https://mydomain/alfresco/service/api/login?u=myusername&amp;amp;pw=mypassword&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I go to my Alfresco, I still be prompt for login:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="unlinked"&gt;https://mydomain/share/page/&lt;/A&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a way (iframe cannot since cross domain) to auto login into my Alfresco. My web apps has a download button for files (stored in Alfresco) using this URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;A class="unlinked"&gt;https://mydomain/share/proxy/alfresco/slingshot/node/content/workspace/SpacesStore/9684c587-d068-4afb-b0d6-8b18e2365ea7/TESTING.docx?a=true&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without a live session, the download URL will return 401. This is the main reason why I need the session to be alived.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've&amp;nbsp;also tried this but fail (I got the idea when inspecting Alfresco login). I got error "&lt;SPAN style="color: #4f4f57;"&gt;Something's wrong with this page...&lt;/SPAN&gt;"&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;form action="&lt;A class="unlinked"&gt;https://mydomain/share/page/dologin&lt;/A&gt;" method="post"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;input type="text" name="username" value="myusername"&amp;gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;input type="text" name="password" value="mypassword"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;input type="text" name="success" value="/share/page/"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;input type="text" name="failure" value="/share/page/?error=true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;These also give fail result:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="unlinked"&gt;https://mydomain/share/proxy/alfresco/slingshot/node/content/workspace/SpacesStore/9684c587-d068-4afb-b0d6-8b18e2365ea7/TESTING.docx?a=true&amp;amp;&lt;/A&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;ticket&lt;/STRONG&gt;&lt;/SPAN&gt;=TICKET_587d4559521fcb37846f580c24529a3e81bc1f55&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;A class="unlinked"&gt;https://mydomain/share/proxy/alfresco/slingshot/node/content/workspace/SpacesStore/9684c587-d068-4afb-b0d6-8b18e2365ea7/TESTING.docx?a=true&amp;amp;&lt;/A&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;alf_ticket&lt;/STRONG&gt;&lt;/SPAN&gt;=TICKET_587d4559521fcb37846f580c24529a3e81bc1f55&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2018 01:11:48 GMT</pubDate>
    <dc:creator>coisox</dc:creator>
    <dc:date>2018-07-05T01:11:48Z</dc:date>
    <item>
      <title>Login To Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54134#M20044</link>
      <description>Using this API, I can get the token to do some stuff:https://mydomain/alfresco/service/api/login?u=myusername&amp;amp;pw=mypasswordBut when I go to my Alfresco, I still be prompt for login:https://mydomain/share/page/I need a way (iframe cannot since cross domain) to auto login into my Alfresco. My web</description>
      <pubDate>Thu, 05 Jul 2018 01:11:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54134#M20044</guid>
      <dc:creator>coisox</dc:creator>
      <dc:date>2018-07-05T01:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Login To Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54135#M20045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use tickets obtained from /alfresco to authenticate against /share. Alfresco Share does by default not support ticket based authentication.&lt;/P&gt;&lt;P&gt;If you need some form of auto-login, you should look into setting up external authentication via CAS or similar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 13:57:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54135#M20045</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-07-05T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Login To Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54136#M20046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your clarification. Actually I'm trying to avoid that route (CAS, SSO, LDAP) but it seems I have no other option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, you did say "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;cannot use tickets obtained from /alfresco to authenticate against /share&lt;/SPAN&gt;". Does this means, beside "share", I can put content into normal Alfresco so that I can get it using ticket?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 00:51:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54136#M20046</guid>
      <dc:creator>coisox</dc:creator>
      <dc:date>2018-07-06T00:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Login To Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54137#M20047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have obtained a ticket from /alfresco you can use other ReST APIs on /alfresco to interact with the content of the system using the ticket as your authentication token. You can also use the ticket via CMIS using the special user name "ROLE_TICKET" and the ticket as the password.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:46:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54137#M20047</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-07-06T09:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Login To Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54138#M20048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry sir I'm lost here when you said "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;ReST APIs on &lt;STRONG&gt;/alfresco&lt;/STRONG&gt;". What is this called if its not REST API? It does contain the word "&lt;STRONG&gt;/alfresco&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;A style="border: 0px;"&gt;https://mydomain/share/proxy&lt;STRONG&gt;/alfresco&lt;/STRONG&gt;/slingshot/node/content/workspace/SpacesStore&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2018 19:23:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54138#M20048</guid>
      <dc:creator>coisox</dc:creator>
      <dc:date>2018-07-07T19:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Login To Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54139#M20049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I think I got what you mean. "/alfresco" right after the domain name. Right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2018 19:26:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54139#M20049</guid>
      <dc:creator>coisox</dc:creator>
      <dc:date>2018-07-07T19:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Login To Alfresco API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54140#M20050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct. The /share/proxy/alfresco is just a redirect via the Share application using the Share authentication (which does not support tickets itself).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 20:46:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/login-to-alfresco-api/m-p/54140#M20050</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-07-08T20:46:53Z</dc:date>
    </item>
  </channel>
</rss>

