[keycloak-user] Unknown authentication mechanism KEYCLOAK

Bruno Oliveira bruno at abstractj.org
Wed Feb 22 15:26:28 EST 2017


Hi Kevin, have you configured the adapter? See:
https://keycloak.gitbooks.io/securing-client-applications-guide/content/v/2.2/topics/oidc/java/jboss-adapter.html

On Wed, Feb 22, 2017 at 3:31 PM Kevin Marsden <kevinmarsden88 at gmail.com>
wrote:

> 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.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list