<?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: Custom authentication in 5.17 REST app in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194316#M147446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recognized this, too. In former versions, you could implement a custom org.activiti.rest.common.filter.RestAuthenticator and set this custom RestAuthenticator in org.activiti.rest.common.application.ActivitiRestApplication.java &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my CustomRestAuthenticator, I need access to the HTTP-Request to get my SSO-Token (this was possible in the org.activiti.rest.common.filter.RestAuthenticator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And now?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 14:25:15 GMT</pubDate>
    <dc:creator>b_schnarr</dc:creator>
    <dc:date>2015-01-30T14:25:15Z</dc:date>
    <item>
      <title>Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194315#M147445</link>
      <description>Hello!I've spend all day long searching posts about custom authentication, but, It seems that in the last version, 5.17, somethings have changed on activiti-rest implementation.I need to generate, after a user success login, a token for a third app. How can I, in this new version, hack the code to i</description>
      <pubDate>Thu, 29 Jan 2015 21:54:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194315#M147445</guid>
      <dc:creator>gleisonsilva</dc:creator>
      <dc:date>2015-01-29T21:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194316#M147446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I recognized this, too. In former versions, you could implement a custom org.activiti.rest.common.filter.RestAuthenticator and set this custom RestAuthenticator in org.activiti.rest.common.application.ActivitiRestApplication.java &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my CustomRestAuthenticator, I need access to the HTTP-Request to get my SSO-Token (this was possible in the org.activiti.rest.common.filter.RestAuthenticator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And now?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 14:25:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194316#M147446</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2015-01-30T14:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194317#M147447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even I am facing the same issue, I used to access the Http Request Object (in CustomRestAuthenticator) to derive request cookie Information and validate in against a service to authenticate my Rest requests.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 5.17 for Implementing same customization in Spring security the advise is to override the authenticationProvider() in SecurityConfiguration. However the Custom AuthenticationProvider has access to only Authentication Object and not Request Object. Hence I am unable to get my request Cookie related Information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been searching for other solutions in Spring Security, implementing a filter seems to be one way but I am still trying to understand where to hook my Cookie based authentication logic. Any pointers some sample approaches will help !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 08:15:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194317#M147447</guid>
      <dc:creator>solanki</dc:creator>
      <dc:date>2015-01-31T08:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194318#M147448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solanki, exactly! The old construct was very simple and effective (method RequestRequiresAuthentication). Now, there seems no way to access the HTTP-Headers in a Custom Spring Authentication-Provider. Activiti-Developers, why did you remove this old construct? And which ways are there to easily access HTTP-Request Parameters in a Spring Authentication-Provider?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 12:07:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194318#M147448</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2015-01-31T12:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194319#M147449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 10:52:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194319#M147449</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2015-02-04T10:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194320#M147450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We didn't remove this option on purpose, but we switched from Restlet to Spring MVC which means the RestAuthenticator is not available anymore. Spring Security should definitely provide a way to solve this. Did you look into the Spring Security documentation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 14:08:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194320#M147450</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-02-04T14:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194321#M147451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at the documentation but I am not able to find a simple approach where I can extract request cookies hook my custom authentication logic and set the authenticated user for Rest call, as we did earlier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are many configuration in spring security, in some sample apporaches I saw we have to -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;Implement a Filter &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;A security context class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;Custom Userdetails/userdetail service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to spring, If possible can you provide one running example where we are using the request object to obtain any authentication information (token etc) and using it to authenticate the Rest call. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Solanki&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 05:41:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194321#M147451</guid>
      <dc:creator>solanki</dc:creator>
      <dc:date>2015-02-06T05:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194322#M147452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently, I try to get this up and running using filters. But I have a very strange problem. Look at this url for my code and for further details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/28368254/infinite-loop-in-custom-spring-security-application" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/28368254/infinite-loop-in-custom-spring-security-application&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas are appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 15:45:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194322#M147452</guid>
      <dc:creator>bens1</dc:creator>
      <dc:date>2015-02-06T15:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194323#M147453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I succeeded in realizing my own custom authentication with the code from the link above with a little modification:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this here, my infinite recursion disappeared:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static final String FILTER_APPLIED = "__spring_security_scpf_applied";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (req.getAttribute(FILTER_APPLIED) != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chain.doFilter(req, res);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; req.setAttribute(FILTER_APPLIED, Boolean.TRUE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, you need to implement a custom filter and a custom AuthenticationManager. The existing BasicAuthenticationProvider stays untouched,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2015 19:52:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194323#M147453</guid>
      <dc:creator>b_schnarr</dc:creator>
      <dc:date>2015-02-08T19:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom authentication in 5.17 REST app</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194324#M147454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, thats very useful info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 22:03:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-authentication-in-5-17-rest-app/m-p/194324#M147454</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-09T22:03:46Z</dc:date>
    </item>
  </channel>
</rss>

