<?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 We want to exclude keyclock authentication and authorization from activiti 7 cloud as we are getting authorized user to our application using other system. Is there any way to do so? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/we-want-to-exclude-keyclock-authentication-and-authorization/m-p/30216#M12856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried different approache but not able to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the approaches i tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;Approach 1 :- extending class RuntimeBundleSecurityAutoConfiguration and instead of KeycloakAuthenticationProcessingFilter i created my custom class where in attempttoauthenticate method I override.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in; text-indent: .5in;"&gt;Approach 2:- excluding the class using @EnableAutoConfiguration(exclude={RuntimeBundleSecurityAutoConfiguration.class })&lt;/P&gt;&lt;P style="margin-left: .5in; text-indent: .5in;"&gt;So it was giving me exception for KeycloakConfigResolver cyclic dependency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&amp;nbsp;Approach 3:- excluding both class using propertry spring.autoconfigure.exclude in application.properties but I was getting error as KeycloakConfigResolver is not autoconfiguration we can not exclude it.&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;Approach 4:- I tried creating a configuration class as suggested by spring boot and tried excluding this class but now I am not getting any exception but somehow flow is going&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;to RuntimeBundleSecurityAutoConfiguration.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #646464;"&gt;@Retention&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(value = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;RUNTIME&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #646464;"&gt;@Target&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(value = { &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #0000c0; font-size: 10.0pt; "&gt;TYPE&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; })&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #646464;"&gt;@Configuration&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #646464;"&gt;@EnableAutoConfiguration&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;(exclude={RuntimeBundleSecurityAutoConfiguration.&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;class&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;,KeycloakConfigResolver.&lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;class&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #646464;"&gt;@EnableWebSecurity&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;public&lt;/STRONG&gt; &lt;STRONG style="color: #7f0055; font-size: 10.0pt; "&gt;@interface&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; color: #646464;"&gt;MyConfiguration&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Mar 2019 04:56:54 GMT</pubDate>
    <dc:creator>deepikavijay</dc:creator>
    <dc:date>2019-03-29T04:56:54Z</dc:date>
    <item>
      <title>We want to exclude keyclock authentication and authorization from activiti 7 cloud as we are getting authorized user to our application using other system. Is there any way to do so?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/we-want-to-exclude-keyclock-authentication-and-authorization/m-p/30216#M12856</link>
      <description>I have tried different approache but not able to do so.Please find the approaches i tried.Approach 1 :- extending class RuntimeBundleSecurityAutoConfiguration and instead of KeycloakAuthenticationProcessingFilter i created my custom class where in attempttoauthenticate method I override.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Fri, 29 Mar 2019 04:56:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/we-want-to-exclude-keyclock-authentication-and-authorization/m-p/30216#M12856</guid>
      <dc:creator>deepikavijay</dc:creator>
      <dc:date>2019-03-29T04:56:54Z</dc:date>
    </item>
  </channel>
</rss>

