<div dir="ltr">Hi everyone,<div><br></div><div>I am experimenting &quot;too many redirects&quot;/infinite loops issues in the browser when I try to connect with social providers. I am also getting internal server error on Chrome via google account (Caused by: java.lang.NoClassDefFoundError: org/keycloak/broker/provider/BrokeredIdentityContext). It might be my configuration, but I did everything &quot;by the book&quot;:</div><div><br></div><div># realm Require SSL:none</div><div><br></div><div>#nginx</div><div><div style="color:rgb(80,0,80);font-size:12.8px"><div>http {</div><div>        gzip on;</div><div>        gzip_proxied any;</div><div>        #gzip_proxied no-cache no-store private expired auth;</div><div>        gzip_types text/plain text/html text/css application/json application/x-javascript  application/xml application/xml+rss text/javascript application/javascript text/x-js;</div><div>        #gzip_min_length 1000;</div><div><br></div><div><br></div><div>        server_tokens off; #hides nginx version and OS running on</div><div>        include /etc/nginx/mime.types;</div><div><br></div><div><br></div><div>        upstream tomcat_server {</div><div>                server localhost:8080;</div><div>        }</div><div>        upstream keycloak_server {</div><div>                server localhost:8180;</div><div>        }</div><div><br></div><div>        server {</div><div>                listen 80;</div><div>                server_name <a href="http://podcastmania.ro/" target="_blank">podcastmania.ro</a>;</div><div>                return 301 https://$host$request_uri;</div><div>        }</div><div><br></div><div>        server {</div><div><br></div><div>                listen 443 ssl;</div><div><br></div><div>                server_name <a href="http://podcastmania.ro/" target="_blank">podcastmania.ro</a> <a href="http://www.podcastmania.ro/" target="_blank">www.podcastmania.ro</a>;</div><div><br></div><div>           ssl_certificate /etc/nginx/ssl/nginx.crt;</div><div>           ssl_certificate_key /etc/nginx/ssl/nginx.key;</div></div><div style="color:rgb(80,0,80);font-size:12.8px"><div>         location / {</div><div>                root /opt/tomcat/webapps/ROOT;</div><div>                try_files $uri /maintenance.html @tomcat;</div><div>            }</div><div><br></div><div>            location @tomcat {</div><div>                proxy_pass <a href="http://tomcat_server/" target="_blank">http://tomcat_server</a>;</div><div><br></div><div>                proxy_set_header Host $host; #to change the &quot;Host&quot; header set by default to $proxy_host to $host - the originating host request</div><div>                proxy_set_header X-Real-IP          $remote_addr;</div><div>                proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;</div><div>                proxy_set_header X-Forwarded-Proto  $scheme;</div><div>            }</div><div><br></div><div><br></div><div>            location /auth/ {</div><div>                root   /opt/keycloak/standalone/configuration/themes/keycloak/;</div><div>                try_files $uri @keycloak;</div><div>            }</div><div><br></div><div>             location @keycloak {</div><div>                proxy_pass <a href="http://keycloak_server/" target="_blank">http://keycloak_server</a>;</div><div><br></div><div>                proxy_set_header Host               $host;</div><div>                proxy_set_header X-Real-IP          $remote_addr;</div><div>                proxy_set_header X-Forwarded-For    $proxy_add_x_forwarded_for;</div><div>                proxy_set_header X-Forwarded-Proto  $scheme;</div><div>                proxy_set_header X-Forwarded-Port   443;</div><div>            }</div><div><br></div><div><br></div><div>        }</div></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"># standalone.xml</div><div style="color:rgb(80,0,80);font-size:12.8px"><div>        &lt;subsystem xmlns=&quot;urn:jboss:domain:undertow:2.0&quot;&gt;</div><div>            &lt;buffer-cache name=&quot;default&quot;/&gt;</div><div>            &lt;server name=&quot;default-server&quot;&gt;</div><div>                &lt;http-listener name=&quot;default&quot; socket-binding=&quot;http&quot; <b>redirect-socket=&quot;proxy-https&quot;  proxy-address-forwarding=&quot;true&quot;</b>/&gt;</div><div>                &lt;host name=&quot;default-host&quot; alias=&quot;localhost&quot;&gt;</div><div>                    &lt;location name=&quot;/&quot; handler=&quot;welcome-content&quot;/&gt;</div><div>                    &lt;filter-ref name=&quot;server-header&quot;/&gt;</div><div>                    &lt;filter-ref name=&quot;x-powered-by-header&quot;/&gt;</div><div>                &lt;/host&gt;</div><div>            &lt;/server&gt;</div></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px"><div>    &lt;socket-binding-group name=&quot;standard-sockets&quot; default-interface=&quot;public&quot; port-offset=&quot;${jboss.socket.binding.port-offset:100}&quot;&gt;</div><div>        &lt;socket-binding name=&quot;management-http&quot; interface=&quot;management&quot; port=&quot;${jboss.management.http.port:9990}&quot;/&gt;</div><div>        &lt;socket-binding name=&quot;management-https&quot; interface=&quot;management&quot; port=&quot;${jboss.management.https.port:9993}&quot;/&gt;</div><div>        &lt;socket-binding name=&quot;ajp&quot; port=&quot;${jboss.ajp.port:8009}&quot;/&gt;</div><div>        &lt;socket-binding name=&quot;http&quot; port=&quot;${jboss.http.port:8080}&quot;/&gt;</div><div>        &lt;socket-binding name=&quot;https&quot; port=&quot;${jboss.https.port:8443}&quot;/&gt;</div><div>        &lt;socket-binding name=&quot;txn-recovery-environment&quot; port=&quot;4712&quot;/&gt;</div><div>        &lt;socket-binding name=&quot;txn-status-manager&quot; port=&quot;4713&quot;/&gt;</div><div><b>        &lt;socket-binding name=&quot;proxy-https&quot; port=&quot;443&quot;/&gt;</b></div><div>         &lt;outbound-socket-binding name=&quot;mail-smtp&quot;&gt;</div><div>            &lt;remote-destination host=&quot;localhost&quot; port=&quot;25&quot;/&gt;</div><div>        &lt;/outbound-socket-binding&gt;</div><div>    &lt;/socket-binding-group&gt;</div></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div></div><div style="color:rgb(80,0,80);font-size:12.8px"># app:spring security configuration</div><div style="color:rgb(80,0,80);font-size:12.8px"><pre style="color:rgb(0,0,0);font-family:Menlo;font-size:9pt"><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">context</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:component-scan </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">base-package</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.keycloak.adapters.springsecurity&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:authentication-manager </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">alias</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;authenticationManager&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:authentication-provider </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakAuthenticationProvider&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:authentication-manager</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">id</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;adapterDeploymentContext&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.keycloak.adapters.springsecurity.AdapterDeploymentContextBean&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">value</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;classpath:keycloak.json&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">id</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakAuthenticationEntryPoint&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationEntryPoint&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">id</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakAuthenticationProvider&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">id</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakPreAuthActionsFilter&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.keycloak.adapters.springsecurity.filter.KeycloakPreAuthActionsFilter&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">id</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakAuthenticationProcessingFilter&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.keycloak.adapters.springsecurity.filter.KeycloakAuthenticationProcessingFilter&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;authenticationManager&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;authenticationManager&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">id</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakLogoutHandler&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.keycloak.adapters.springsecurity.authentication.KeycloakLogoutHandler&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;adapterDeploymentContext&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">id</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;logoutFilter&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.springframework.security.web.authentication.logout.LogoutFilter&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;logoutSuccessUrl&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">value</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;handlers&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">list</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>      <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">ref </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">bean</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakLogoutHandler&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>      <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">list</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">property </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;logoutRequestMatcher&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">class</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;org.springframework.security.web.util.matcher.AntPathRequestMatcher&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>      <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;pattern&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">value</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/sso/logout**&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>      <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">constructor-arg </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">name</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;httpMethod&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">value</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;GET&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>    <span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">property</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">bean</span><span style="background-color:rgb(239,239,239)">&gt;</span><br><br><span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:http </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">auto-config</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;false&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">use-expressions</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;true&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">entry-point-ref</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakAuthenticationEntryPoint&quot;</span><span style="background-color:rgb(239,239,239)">&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:custom-filter </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakPreAuthActionsFilter&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">before</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;LOGOUT_FILTER&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:custom-filter </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;keycloakAuthenticationProcessingFilter&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">before</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;FORM_LOGIN_FILTER&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/users/registration&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;permitAll&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/users/registration/confirm-email&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;permitAll&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/users/registration/confirmed&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;permitAll&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/users/password-forgotten&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;permitAll&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/users/password-forgotten/confirm-email&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;permitAll&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/users/password-forgotten/confirmed&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;permitAll&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/users/**/*&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;hasRole(&#39;ROLE_USER&#39;)&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:intercept-url </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">pattern</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;/**&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">access</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;permitAll&quot;</span><span style="background-color:rgb(239,239,239)">/&gt;</span><br>  <span style="background-color:rgb(239,239,239)">&lt;</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:custom-filter </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">ref</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;logoutFilter&quot; </span><span style="color:rgb(0,0,255);font-weight:bold;background-color:rgb(239,239,239)">position</span><span style="color:rgb(0,128,0);font-weight:bold;background-color:rgb(239,239,239)">=&quot;LOGOUT_FILTER&quot; </span><span style="background-color:rgb(239,239,239)">/&gt;</span><br><span style="background-color:rgb(239,239,239)">&lt;/</span><span style="color:rgb(102,14,122);font-weight:bold;background-color:rgb(239,239,239)">security</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">:http</span><span style="background-color:rgb(239,239,239)">&gt;</span><br></pre></div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">Has anyone faced similar issues?</div><div style="color:rgb(80,0,80);font-size:12.8px"><br></div><div style="color:rgb(80,0,80);font-size:12.8px">Thanks,</div><div style="color:rgb(80,0,80);font-size:12.8px">Adrian</div></div>