<div dir="ltr">Thank you both, very much!<div><br></div><div>Pointing me at the web.xml was the final piece I needed. I spent some more time trying to understand the bits and bobs in that file and finally understood the URL paths of my sample app, and how they were (or were not, in my case) being reflected in the web.xml.</div><div><br></div><div>I was even able to move my working configuration to a Tomcat server and replicate my success there. Many thanks!!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 11:58 PM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:stian@redhat.com" target="_blank">stian@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Sebastian Lorenz&quot; &lt;<a href="mailto:sebastian.p.lorenz@gmail.com">sebastian.p.lorenz@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Sent: Wednesday, 1 April, 2015 8:52:25 AM<br>
&gt; Subject: [keycloak-user] Fwd:  Help troubleshooting config<br>
&gt;<br>
&gt; Hi Tom,<br>
&gt;<br>
&gt; I&#39;m also quite new to Keycloak and had some trouble setting it up in the<br>
&gt; beginning.<br>
&gt; That&#39;s why I wrote a small tutorial <a href="http://sebplorenz.blogspot.de/" target="_blank">http://sebplorenz.blogspot.de/</a><br>
&gt; Maybe it is of help for you.<br>
&gt;<br>
&gt; Since you are not redirected to Keycloak at all, I would assume that either:<br>
&gt;<br>
&gt; 1. Your web resource is not listed in the &lt;security-constraint&gt; element in<br>
&gt; web.xml or<br>
<br>
</span>I&#39;d say this is the problem - as 2 and 3 would result in errors not leaving the resource unsecured<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; 2. Your &lt;auth-method&gt; is not set to Keycloak in web.xml or<br>
&gt; 3. Keycloak is not configured correctly in your standalone.xml server<br>
&gt; configuration and therefore does not interrupt the access to the resource.<br>
&gt;<br>
&gt; Good Luck. Sebastian<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ---------- Weitergeleitete Nachricht ----------<br>
&gt; From: Thomas LaPorte &lt; <a href="mailto:Thomas.LaPorte@dreamworks.com">Thomas.LaPorte@dreamworks.com</a> &gt;<br>
&gt; To: <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; Cc:<br>
&gt; Date: Tue, 31 Mar 2015 15:05:32 -0700<br>
&gt; Subject: Re: [keycloak-user] Help troubleshooting config<br>
&gt; Thanks to a list member for some debug setup help, I&#39;m getting much more<br>
&gt; information.<br>
&gt;<br>
&gt; Now I can see (and confirm my suspicion), that something is not right and my<br>
&gt; resource is unprotected.<br>
&gt;<br>
&gt; For the example customer-portal app, I see that after the &quot;callback-uri: ...&quot;<br>
&gt; message, I get a &quot;Sending redirect to login page:...&quot; message.<br>
&gt;<br>
&gt; For my app, it goes directly to &quot;AuthenticatedActionsValve.invoke&quot;<br>
&gt;<br>
&gt; -- Tom<br>
&gt;<br>
&gt; On Tue, Mar 31, 2015 at 2:49 PM, Guy Davis &lt; <a href="mailto:guydavis.ca@gmail.com">guydavis.ca@gmail.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi Thomas,<br>
&gt;<br>
&gt; To dial up logging, try adding this to your standalone.xml file in the<br>
&gt; logging subsystem and re-starting your Wildfly instance:<br>
&gt;<br>
&gt; &lt;logger category=&quot;org.keycloak&quot;&gt;<br>
&gt; &lt;level name=&quot;DEBUG&quot;/&gt;<br>
&gt; &lt;/logger&gt;<br>
&gt;<br>
&gt; Then, be sure you have the right configuration in your web.xml of your test<br>
&gt; WAR file. See the docs here for details.<br>
&gt;<br>
&gt; Hope this helps,<br>
&gt; Guy<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Mar 31, 2015 at 3:30 PM, Thomas LaPorte &lt;<br>
&gt; <a href="mailto:Thomas.LaPorte@dreamworks.com">Thomas.LaPorte@dreamworks.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Apologies for cutting off by hitting send prematurely.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Mar 31, 2015 at 2:26 PM, Thomas LaPorte &lt;<br>
&gt; <a href="mailto:Thomas.LaPorte@dreamworks.com">Thomas.LaPorte@dreamworks.com</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Greetings. I&#39;m a first-time user of Keycloak, trying to set up a simple<br>
&gt; demonstration after the examples, however, I&#39;m having 0% success in getting<br>
&gt; my configuration correct enough such that my web resource is protected.<br>
&gt;<br>
&gt; I have reduced my setup all the way down to a basic &quot;HelloWorld.jsp&quot; in a WAR<br>
&gt; file that is deployed into the standalone Wildfly server that is also<br>
&gt; hosting the Keycloak server.<br>
&gt;<br>
&gt; I am convinced that it is a configuration step being missed somewhere, as I<br>
&gt; can always access my URL without intervention from the Keycloak server.<br>
&gt;<br>
&gt; My WAR file consists of the following:<br>
&gt;<br>
&gt; 0 Tue Mar 31 14:20:20 PDT 2015 META-INF/<br>
&gt; 68 Tue Mar 31 14:20:20 PDT 2015 META-INF/MANIFEST.MF<br>
&gt; 0 Tue Mar 31 14:08:34 PDT 2015 WEB-INF/<br>
&gt; 1584 Tue Mar 31 09:47:52 PDT 2015 WEB-INF/web.xml<br>
&gt; 491 Tue Mar 31 14:08:34 PDT 2015 WEB-INF/keycloak.json<br>
&gt; 308 Tue Mar 31 14:20:18 PDT 2015 index.jsp<br>
&gt;<br>
&gt; I have added my application to the demo realm by copying the customer-portal<br>
&gt; application stanza, and replacing the &quot;customer-portal&quot; with my app name:<br>
&gt;<br>
&gt; {<br>
&gt; &quot;name&quot;: &quot;goalkeepers&quot;,<br>
&gt; &quot;enabled&quot;: true,<br>
&gt; &quot;adminUrl&quot;: &quot;/goalkeepers&quot;,<br>
&gt; &quot;baseUrl&quot;: &quot;/goalkeepers&quot;,<br>
&gt; &quot;redirectUris&quot;: [<br>
&gt; &quot;/goalkeepers/*&quot;<br>
&gt; ],<br>
&gt; &quot;secret&quot;: &quot;password&quot;<br>
&gt; }<br>
&gt; At this stage I am just looking for suggestions on how best to troubleshoot<br>
&gt; my configuration? What logging properties can I set to enable more<br>
&gt; debugging? Or where else can I look for some clues as to the errors in my<br>
&gt; configuration?<br>
&gt;<br>
&gt; I fear I am missing something extremely fundamental, but I can&#39;t for the life<br>
&gt; of me see what it is.<br>
&gt;<br>
&gt; - Tom<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</div></div></blockquote></div><br></div>