[keycloak-dev] Keycloak distribution changes

Stan Silvert ssilvert at redhat.com
Tue Apr 14 20:22:30 EDT 2015


On 4/14/2015 2:28 AM, Stian Thorgersen wrote:
> * Add support to use root-context with server subsystem
>
I tried it out and this already works.  To run the Keycloak server as 
the root context, you just need to change an Undertow setting:
<host name="default-host" alias="localhost" 
default-web-module="main-auth-server.war">

default-web-module should be whatever you named your server in the 
Keycloak subsystem with ".war" appended.  By default, this is 
"main-auth-server.war".

<subsystem xmlns="urn:jboss:domain:keycloak:1.0">
             <auth-server name="main-auth-server">
                 <enabled>true</enabled>
                 <web-context>auth</web-context>
             </auth-server>
         </subsystem>
Whatever you have set for web-context will be ignored.  You could just 
set it to /.

Also Note: If you change the default-web-module after you have already 
booted your server then you will need to wipe out your old keycloak 
database, which will then contain an old invalid redirect url.

Stan


More information about the keycloak-dev mailing list