<?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: How to call authenticated web scripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221114#M174244</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I believe you need to pass a ticket on your url.&amp;nbsp; Add "?ticket=ticketinformation" to the end of the url.&amp;nbsp; You get the ticket information in javascript:&amp;nbsp; var ticket = session.getTicket()&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks for the reply, unfortunately this didn't change the behavior at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the URL that I'm building:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/authenticatedTabs?guest=false&amp;amp;ticket=TICKET_89ee48cb97ce2b18291e67c4b2a42a0bfdee3575&amp;amp;selectedTab=home&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the URL that connect is trying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;http ://localhost:8080/alfresco/s/authenticatedTabs?guest=false&amp;amp;ticket=TICKET_89ee48cb97ce2b18291e67c4b2a42a0bfdee3575&amp;amp;selectedTab=home&amp;amp;guest=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see that I tried adding guest=false to the URL to try to stop it from adding guest=true to the end, but it didn't affect it at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 21:07:58 GMT</pubDate>
    <dc:creator>sgartner</dc:creator>
    <dc:date>2010-03-04T21:07:58Z</dc:date>
    <item>
      <title>How to call authenticated web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221112#M174242</link>
      <description>I have enabled the remote object in my Alfresco and so I can call external and internal URLs from my web script like this:var tabWebScriptUrl = "/authenticatedTabs";// Initiate a remote connectorvar connector = remote.connect("alfresco");try&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the tabs&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = connector.call(tabWe</description>
      <pubDate>Thu, 04 Mar 2010 08:24:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221112#M174242</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2010-03-04T08:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call authenticated web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221113#M174243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe you need to pass a ticket on your url.&amp;nbsp; Add "?ticket=ticketinformation" to the end of the url.&amp;nbsp; You get the ticket information in javascript:&amp;nbsp; var ticket = session.getTicket()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Addressability" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/URL_Addressability&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Security_and_Authentication" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Security_and_Authentication&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 13:45:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221113#M174243</guid>
      <dc:creator>stevegreenbaum</dc:creator>
      <dc:date>2010-03-04T13:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to call authenticated web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221114#M174244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I believe you need to pass a ticket on your url.&amp;nbsp; Add "?ticket=ticketinformation" to the end of the url.&amp;nbsp; You get the ticket information in javascript:&amp;nbsp; var ticket = session.getTicket()&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks for the reply, unfortunately this didn't change the behavior at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the URL that I'm building:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/authenticatedTabs?guest=false&amp;amp;ticket=TICKET_89ee48cb97ce2b18291e67c4b2a42a0bfdee3575&amp;amp;selectedTab=home&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the URL that connect is trying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;http ://localhost:8080/alfresco/s/authenticatedTabs?guest=false&amp;amp;ticket=TICKET_89ee48cb97ce2b18291e67c4b2a42a0bfdee3575&amp;amp;selectedTab=home&amp;amp;guest=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see that I tried adding guest=false to the URL to try to stop it from adding guest=true to the end, but it didn't affect it at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 21:07:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221114#M174244</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2010-03-04T21:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to call authenticated web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221115#M174245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One thing to try… alf_ticket=ticketinformation&amp;nbsp; instead of ticket=…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen references to one being valid in some circumstances.&amp;nbsp; For /service, alf_ticket may work. Not sure, but worth a try.&amp;nbsp; I usually put the ticket parameter at the end of the url….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 21:53:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221115#M174245</guid>
      <dc:creator>stevegreenbaum</dc:creator>
      <dc:date>2010-03-04T21:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to call authenticated web scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221116#M174246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One thing to try… alf_ticket=ticketinformation&amp;nbsp; instead of ticket=…..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;This was the, uh, ticket!&amp;nbsp; Thank you Steve!&amp;nbsp; I was able to give you two points for both useful messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One addition that I discovered however, is that I do have to add guest=false to the url as well as the alf_ticket.&amp;nbsp; If I just have the alf_ticket on there I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Web Script ui_templates/authenticatedTabs.get requires user authentication; however, a guest has attempted access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 22:29:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-authenticated-web-scripts/m-p/221116#M174246</guid>
      <dc:creator>sgartner</dc:creator>
      <dc:date>2010-03-04T22:29:55Z</dc:date>
    </item>
  </channel>
</rss>

