[keycloak-dev] JBoss_Keycloak_"404 - Not Found"
Naga Vijay
nagausb2 at gmail.com
Wed Nov 13 09:52:28 EST 2019
As I haven't heard back from anyone, I have logged this -
https://issues.jboss.org/browse/KEYCLOAK-12036
Thanks
Naga
On Wed, Nov 13, 2019 at 5:43 AM Naga Vijay <nagausb2 at gmail.com> wrote:
>
> Hello,
>
> Did anyone get a chance to look into this? I am wondering whether I am
> facing a bug. Keycloak realm, user, client definition are all in place. And
> the adapter has been installed into JBoss EAP instance. Here's web.xml in
> the hello.war ...
>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
>
> version="3.0">
>
>
>
> <module-name>basicauth</module-name>
>
>
>
> <security-constraint>
>
> <web-resource-collection>
>
> <url-pattern>/*</url-pattern>
>
> </web-resource-collection>
>
> <auth-constraint>
>
> <role-name>*</role-name>
>
> </auth-constraint>
>
> </security-constraint>
>
>
>
> <login-config>
>
> <auth-method>KEYCLOAK</auth-method>
>
> <realm-name>MyRealm</realm-name>
>
> </login-config>
>
>
>
> <security-role>
>
> <role-name>*</role-name>
>
> </security-role>
> </web-app>
>
> And here's keycloak.json alongside web.xml ...
>
> {
>
> "realm": "MyRealm",
>
> "auth-server-url": "http://localhost:8180/auth",
>
> "ssl-required": "external",
>
> "resource": "dkc",
>
> "public-client": true,
>
> "confidential-port": 0,
>
> "enable-cors" : true
> }
>
> http://localhost:8080/hello gives "404 - Not Found" instead of showing
> keycloak login page.
>
> What am I missing?
>
> Thanks
> Naga
>
> On Tue, Nov 12, 2019 at 9:24 PM Naga Vijay <nagausb2 at gmail.com> wrote:
>
>>
>> (+) keycloak-dev
>>
>> On Tue, Nov 12, 2019 at 7:56 PM Naga Vijay <nagausb2 at gmail.com> wrote:
>>
>>>
>>> Hello,
>>>
>>> Can someone help me with this?
>>>
>>> ==============
>>> Environment -
>>> ==============
>>>
>>> 1. OS - Mac OS X
>>> 2. JBoss EAP 7.1
>>>
>>> 3. Keycloak 7.0.1
>>>
>>> ==============
>>> Issue -
>>> ==============
>>>
>>> . Getting "404 - Not Found" for a simple hello.war (with KEYCLOAK as the
>>> auth-method in its web.xml) when accessing http://localhost:8080/hello
>>>
>>> ==============
>>> Attachments -
>>> ==============
>>>
>>> 1. kc.json - export dump of keycloak database/configuration
>>> 2. hello.war - the simple war tested with
>>>
>>> Let me know if you need any other info.
>>>
>>> Thanks
>>>
>>> Naga
>>>
>>>
>>>
More information about the keycloak-dev
mailing list