Fixed. I modified the wrong file. I changed standalone.xml instead of for my environment I need to change standalone-full.xml.

 

User error!

 

Thanks, Graeme

 

From: keycloak-user-bounces@lists.jboss.org [mailto:keycloak-user-bounces@lists.jboss.org] On Behalf Of Graeme Collis
Sent: Thursday, 14 August 2014 10:09 AM
To: 'keycloak-user@lists.jboss.org'
Subject: [keycloak-user] Issue with login-config KEYCLOAK

 

I have the Keycloak auth war successfully running and have been able to create Realms, Users, Apps.

 

I now want to redirect the login from webapp to Keycloak.

 

I have followed the  instructions to add the JBoss Adapter here:-

http://docs.jboss.org/keycloak/docs/1.0-beta-4/userguide/html/ch07.html#d4e547

 

I am using JBoss EAP 6.1

I added the modules by unzipping the adapters into ${JBOSS_HOME}/modules

 

I have updated the standalone.xml files to add the extension

<extension module="org.keycloak.keycloak-as7-subsystem"/>

I have added the subsystem

<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>

 

I have added the security domain

                <security-domain name="keycloak">

                  <authentication>

                    <login-module code="org.keycloak.adapters.jboss.KeycloakLoginModule" flag="required"/>

                  </authentication>

                </security-domain>

 

Yet my webapp won’t deploy as it cannot find KEYCLOAK.

JBWEB001034: Cannot configure an authenticator for method KEYCLOAK

   <login-config>

     <auth-method>KEYCLOAK</auth-method>

     <realm-name>demo</realm-name>

   </login-config>

 

I have also used Keycloak to create the keycloak.json and put it in my WEB-INF folder.

 

Any ideas on the steps I may have missed.

 

Thanks,

 

Graeme