<?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 Authentication in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/authentication/m-p/297018#M250148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am completly new to this area but hope someone can help.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to use a webservice to submit and retrieve documents out of a repository.&amp;nbsp; I am trying to use the RepositoryService but I get an error back and all it says is "no ticket"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I have googled this means I have to logon to get a ticket first, but how do I do that.&amp;nbsp; I have mylogin Id and password but I dont know what I should be using to perform the logon.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read about authenticationutils in various web pages.&amp;nbsp; Is that what I need to access, and if so, where is it&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 10:11:51 GMT</pubDate>
    <dc:creator>irene</dc:creator>
    <dc:date>2014-05-09T10:11:51Z</dc:date>
    <item>
      <title>Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentication/m-p/297018#M250148</link>
      <description>I am completly new to this area but hope someone can help.&amp;nbsp; I have to use a webservice to submit and retrieve documents out of a repository.&amp;nbsp; I am trying to use the RepositoryService but I get an error back and all it says is "no ticket"From what I have googled this means I have to logon to get a ti</description>
      <pubDate>Fri, 09 May 2014 10:11:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentication/m-p/297018#M250148</guid>
      <dc:creator>irene</dc:creator>
      <dc:date>2014-05-09T10:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentication/m-p/297019#M250149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the out-of-the-box webscript to get the authentication ticket for a user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/api/login?u={username}&amp;amp;pw={password" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/login?u={username}&amp;amp;pw={password&lt;/A&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use it to get the ticket for the user to proceed further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 10:37:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentication/m-p/297019#M250149</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-05-09T10:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentication/m-p/297020#M250150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can perform the logon and start a session by using AuthenticationUtils ,and then get repository service using WebServiceFactory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is sample code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;import org.alfresco.webservice.util.AuthenticationUtils;&lt;BR /&gt;import org.alfresco.webservice.util.WebServiceFactory;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;WebServiceFactory.setEndpointAddress("&lt;A href="http://localhost:8080/alfresco/api/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/&lt;/A&gt;");//soapapi&lt;BR /&gt;AuthenticationUtils.startSession("admin", "admin");&lt;BR /&gt;WebServiceFactory.getRepositoryService();//get repository servcie,&lt;BR /&gt;//you can also get other servcie through this factory class,for example WebServiceFactory.getDictionaryService()&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 16:12:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentication/m-p/297020#M250150</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-05-09T16:12:52Z</dc:date>
    </item>
  </channel>
</rss>

