[keycloak-user] Help troubleshooting config
Thomas LaPorte
Thomas.LaPorte at dreamworks.com
Tue Mar 31 18:05:32 EDT 2015
Thanks to a list member for some debug setup help, I'm getting much more
information.
Now I can see (and confirm my suspicion), that something is not right and
my resource is unprotected.
For the example customer-portal app, I see that after the "callback-uri:
..." message, I get a "Sending redirect to login page:..." message.
For my app, it goes directly to "AuthenticatedActionsValve.invoke"
-- Tom
On Tue, Mar 31, 2015 at 2:49 PM, Guy Davis <guydavis.ca at gmail.com> wrote:
> Hi Thomas,
>
> To dial up logging, try adding this to your standalone.xml file in the
> logging subsystem and re-starting your Wildfly instance:
>
> <logger category="org.keycloak">
> <level name="DEBUG"/>
> </logger>
>
> Then, be sure you have the right configuration in your web.xml of your
> test WAR file. See the docs here
> <http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html_single/#d4e786>
> for details.
>
> Hope this helps,
> Guy
>
>
> On Tue, Mar 31, 2015 at 3:30 PM, Thomas LaPorte <
> Thomas.LaPorte at dreamworks.com> wrote:
>
>> Apologies for cutting off by hitting send prematurely.
>>
>>
>>
>> On Tue, Mar 31, 2015 at 2:26 PM, Thomas LaPorte <
>> Thomas.LaPorte at dreamworks.com> wrote:
>>
>>> 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.
>>>
>>> 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.
>>>
>>> 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.
>>>
>>> My WAR file consists of the following:
>>>
>>> 0 Tue Mar 31 14:20:20 PDT 2015 META-INF/
>>> 68 Tue Mar 31 14:20:20 PDT 2015 META-INF/MANIFEST.MF
>>> 0 Tue Mar 31 14:08:34 PDT 2015 WEB-INF/
>>> 1584 Tue Mar 31 09:47:52 PDT 2015 WEB-INF/web.xml
>>> 491 Tue Mar 31 14:08:34 PDT 2015 WEB-INF/keycloak.json
>>> 308 Tue Mar 31 14:20:18 PDT 2015 index.jsp
>>>
>>
>> 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:
>>
>> {
>> "name": "goalkeepers",
>> "enabled": true,
>> "adminUrl": "/goalkeepers",
>> "baseUrl": "/goalkeepers",
>> "redirectUris": [
>> "/goalkeepers/*"
>> ],
>> "secret": "password"
>> }
>>
>> 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?
>>
>> I fear I am missing something extremely fundamental, but I can't for the
>> life of me see what it is.
>>
>> - Tom
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150331/ba9a7cb4/attachment.html
More information about the keycloak-user
mailing list