<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Tom,</div><div><br></div><div>I'm also quite new to Keycloak and had some trouble setting it up in the beginning. </div><div>That's why I wrote a small tutorial <a href="http://sebplorenz.blogspot.de/" target="_blank">http://sebplorenz.blogspot.de/</a> <br></div><div>Maybe it is of help for you.</div><div><br></div><div>Since you are not redirected to Keycloak at all, I would assume that either:</div><div><br></div><div>1. Your web resource is not listed in the <security-constraint> element in web.xml or</div><div>2. Your <auth-method> is not set to Keycloak in web.xml or</div><div>3. Keycloak is not configured correctly in your standalone.xml server configuration and therefore does not interrupt the access to the resource.</div><div><br></div><div>Good Luck. Sebastian</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">---------- Weitergeleitete Nachricht ----------<br>From: Thomas LaPorte <<a href="mailto:Thomas.LaPorte@dreamworks.com" target="_blank">Thomas.LaPorte@dreamworks.com</a>><br>To: <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>Cc: <br>Date: Tue, 31 Mar 2015 15:05:32 -0700<br>Subject: Re: [keycloak-user] Help troubleshooting config<br><div dir="ltr">Thanks to a list member for some debug setup help, I'm getting much more information.<div><br></div><div>Now I can see (and confirm my suspicion), that something is not right and my resource is unprotected.</div><div><br></div><div>For the example customer-portal app, I see that after the "callback-uri: ..." message, I get a "Sending redirect to login page:..." message.</div><div><br></div><div>For my app, it goes directly to "AuthenticatedActionsValve.invoke"</div><div><br></div><div>-- Tom</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 2:49 PM, Guy Davis <span dir="ltr"><<a href="mailto:guydavis.ca@gmail.com" target="_blank">guydavis.ca@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Thomas,<div><br></div><div>To dial up logging, try adding this to your standalone.xml file in the logging subsystem and re-starting your Wildfly instance:<div><br></div><div><div> <logger category="org.keycloak"></div><div> <level name="DEBUG"/></div><div> </logger></div><div><br></div></div><div>Then, be sure you have the right configuration in your web.xml of your test WAR file. See the <a href="http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html_single/#d4e786" target="_blank">docs here</a> for details.</div></div><div><br></div><div>Hope this helps,<br>Guy</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Mar 31, 2015 at 3:30 PM, Thomas LaPorte <span dir="ltr"><<a href="mailto:Thomas.LaPorte@dreamworks.com" target="_blank">Thomas.LaPorte@dreamworks.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Apologies for cutting off by hitting send prematurely.<div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Mar 31, 2015 at 2:26 PM, Thomas LaPorte <span dir="ltr"><<a href="mailto:Thomas.LaPorte@dreamworks.com" target="_blank">Thomas.LaPorte@dreamworks.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Greetings. I'm a first-time user of Keycloak, trying to set up a simple demonstration after the examples, however, I'm having 0% success in getting my configuration correct enough such that my web resource is protected.<div><br></div><div>I have reduced my setup all the way down to a basic "HelloWorld.jsp" in a WAR file that is deployed into the standalone Wildfly server that is also hosting the Keycloak server.</div><div><br></div><div>I am convinced that it is a configuration step being missed somewhere, as I can always access my URL without intervention from the Keycloak server.</div><div><br></div><div>My WAR file consists of the following:</div><div><br></div><div><div><font face="monospace, monospace"> 0 Tue Mar 31 14:20:20 PDT 2015 META-INF/</font></div><div><font face="monospace, monospace"> 68 Tue Mar 31 14:20:20 PDT 2015 META-INF/MANIFEST.MF</font></div><div><font face="monospace, monospace"> 0 Tue Mar 31 14:08:34 PDT 2015 WEB-INF/</font></div><div><font face="monospace, monospace"> 1584 Tue Mar 31 09:47:52 PDT 2015 WEB-INF/web.xml</font></div><div><font face="monospace, monospace"> 491 Tue Mar 31 14:08:34 PDT 2015 WEB-INF/keycloak.json</font></div><div><font face="monospace, monospace"> 308 Tue Mar 31 14:20:18 PDT 2015 index.jsp</font></div></div></div></blockquote><div><br></div></div></div><div>I have added my application to the demo realm by copying the customer-portal application stanza, and replacing the "customer-portal" with my app name:</div><div><br></div><div><font face="monospace, monospace"> {</font></div><div><font face="monospace, monospace"> "name": "goalkeepers",</font></div><div><font face="monospace, monospace"> "enabled": true,</font></div><div><font face="monospace, monospace"> "adminUrl": "/goalkeepers",</font></div><div><font face="monospace, monospace"> "baseUrl": "/goalkeepers",</font></div><div><font face="monospace, monospace"> "redirectUris": [</font></div><div><font face="monospace, monospace"> "/goalkeepers/*"</font></div><div><font face="monospace, monospace"> ],</font></div><div><font face="monospace, monospace"> "secret": "password"</font></div><div><font face="monospace, monospace"> }</font></div><div> </div></div>At this stage I am just looking for suggestions on how best to troubleshoot my configuration? What logging properties can I set to enable more debugging? Or where else can I look for some clues as to the errors in my configuration?</div><div class="gmail_extra"><br></div><div class="gmail_extra">I fear I am missing something extremely fundamental, but I can't for the life of me see what it is.</div><div class="gmail_extra"><br></div><div class="gmail_extra">- Tom</div></div>
<br></div></div>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">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></blockquote></div><br></div>
</blockquote></div><br></div>
</blockquote></div><br></div></div>
</div><br></div>