[keycloak-user] Unknown authentication mechanism KEYCLOAK

Kevin Marsden kevinmarsden88 at gmail.com
Wed Feb 22 13:31:13 EST 2017


Good Day.

I am unable to deploy a JAX-RS war to Wildfly 10.1,even after following the
instructions in the documentation to the letter.

I executed the patch script as follows :

jboss-cli.bat --connect --file="adapter-install.cli"
{"outcome" => "success"}
{
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    }
}
{
    "outcome" => "success",
    "result" => [("keycloak" => "1.1.0")],
    "response-headers" => {"process-state" => "reload-required"}
}
{
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    }
}

My standalone.xml has been updated as follows :

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

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

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

My web.xml is as follows :

      <security-constraint>
        <web-resource-collection>
            <web-resource-name>webresources</web-resource-name>
            <url-pattern>/webresources/*</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>user</role-name>
        </auth-constraint>
    </security-constraint>

    <login-config>
        <auth-method>KEYCLOAK</auth-method>
    </login-config>

    <security-role>
        <role-name>user</role-name>
    </security-role>

I would gladly appreciate any help at this stage.

Kind Regards.

Kevin.


More information about the keycloak-user mailing list