<?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: Avoid valid security context Exception in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292198#M245328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i used the alfresco webscript api i have to pass the username and password and I am using single sign on functionality.So it is not possible for me to get usename or password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any solution to get user ticket withour providing username and password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 06:56:50 GMT</pubDate>
    <dc:creator>rutaveejshah</dc:creator>
    <dc:date>2014-01-24T06:56:50Z</dc:date>
    <item>
      <title>Avoid valid security context Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292196#M245326</link>
      <description>Hello Everyone!I am creating a web script to get alfresco session ticket.When i call that web script without user authentication it was giving me error like net.sf.acegisecurity.AuthenticationCredentialsNotFoundException - A valid SecureContext was not provided in the RequestContext.Is there anyway</description>
      <pubDate>Sat, 18 Jan 2014 14:00:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292196#M245326</guid>
      <dc:creator>rutaveejshah</dc:creator>
      <dc:date>2014-01-18T14:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid valid security context Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292197#M245327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why do you write a custom webscript to get user ticket? I didn't think it would be necessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After you login with any user using webscript api,you can get the ticket,and during the session you can use it do whatever you want to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 06:46:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292197#M245327</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-01-23T06:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid valid security context Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292198#M245328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i used the alfresco webscript api i have to pass the username and password and I am using single sign on functionality.So it is not possible for me to get usename or password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any solution to get user ticket withour providing username and password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 06:56:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292198#M245328</guid>
      <dc:creator>rutaveejshah</dc:creator>
      <dc:date>2014-01-24T06:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid valid security context Exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292199#M245329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rutaveejshah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe, In your SSO once user is authenticated you must be executing your webscript with - "wcservice" so script gets executed with same/current user's session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get ticket in your script with js api &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;${session.ticket}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; which calls&amp;nbsp; ServiceRegistry.getAuthenticationService().getCurrentTicket();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 05:41:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/avoid-valid-security-context-exception/m-p/292199#M245329</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2014-01-27T05:41:28Z</dc:date>
    </item>
  </channel>
</rss>

