<?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: ALF 2.1 - Bad credentials when using the AuthorityService in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alf-2-1-bad-credentials-when-using-the-authorityservice/m-p/119860#M84485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also facing the same issue with the following 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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Set&amp;lt;String&amp;gt; authorities = m_AuthorityService.getContainingAuthorities(AuthorityType.GROUP, "admin", false);&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a "Bad Credentials" exception when this is called from a JSF Managed bean. However, same piece of code works fine when called from a custom action.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2008 14:13:02 GMT</pubDate>
    <dc:creator>aniruddh</dc:creator>
    <dc:date>2008-01-08T14:13:02Z</dc:date>
    <item>
      <title>ALF 2.1 - Bad credentials when using the AuthorityService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alf-2-1-bad-credentials-when-using-the-authorityservice/m-p/119859#M84484</link>
      <description>Hi all,I have extended the JavaScript API in order to add a functionality that I miss on the People API to check if a user belongs to a specific group.However, whenever I try to call any method on the AuthorityService (injected by Spring), I receive the following exception:Caused by: net.sf.acegisec</description>
      <pubDate>Tue, 08 Jan 2008 12:27:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alf-2-1-bad-credentials-when-using-the-authorityservice/m-p/119859#M84484</guid>
      <dc:creator>claudio_martins</dc:creator>
      <dc:date>2008-01-08T12:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALF 2.1 - Bad credentials when using the AuthorityService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alf-2-1-bad-credentials-when-using-the-authorityservice/m-p/119860#M84485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also facing the same issue with the following 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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Set&amp;lt;String&amp;gt; authorities = m_AuthorityService.getContainingAuthorities(AuthorityType.GROUP, "admin", false);&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I get a "Bad Credentials" exception when this is called from a JSF Managed bean. However, same piece of code works fine when called from a custom action.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 14:13:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alf-2-1-bad-credentials-when-using-the-authorityservice/m-p/119860#M84485</guid>
      <dc:creator>aniruddh</dc:creator>
      <dc:date>2008-01-08T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALF 2.1 - Bad credentials when using the AuthorityService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alf-2-1-bad-credentials-when-using-the-authorityservice/m-p/119861#M84486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might check the following file public-services-security-context.xml. Try to find the bean AuthorityService_security and you will see that for getAuthoritiesForUser method permission is set as ACL_METHOD.ROLE_ADMINISTRATOR. Change this to ACL_ALLOW and you should be able to execute the method without been logged in with admin role&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 16:11:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alf-2-1-bad-credentials-when-using-the-authorityservice/m-p/119861#M84486</guid>
      <dc:creator>dhalupa</dc:creator>
      <dc:date>2008-01-14T16:11:27Z</dc:date>
    </item>
  </channel>
</rss>

