<p dir="ltr">Sounds as if the last line from adapter-install.cli (<a href="https://github.com/keycloak/keycloak/blob/master/distribution/adapters/shared-cli/adapter-install.cli">https://github.com/keycloak/keycloak/blob/master/distribution/adapters/shared-cli/adapter-install.cli</a>) wasn't executed.</p>
<p dir="ltr">It should result in the following line in your standalone.xml:</p>
<p dir="ltr"><subsystem xmlns="urn:jboss:domain:keycloak:1.1"/></p>
<div class="gmail_quote">On Nov 25, 2015 20:37, "Stian Thorgersen" <<a href="mailto:sthorger@redhat.com">sthorger@redhat.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try following:<div><a href="http://blog.keycloak.org/2015/10/getting-started-with-keycloak-securing.html" target="_blank">http://blog.keycloak.org/2015/10/getting-started-with-keycloak-securing.html</a><br></div><div><br></div><div>And see if you can get it working.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 November 2015 at 18:58, Rens Verhage <span dir="ltr"><<a href="mailto:Rens.Verhage@topicus.nl" target="_blank">Rens.Verhage@topicus.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unfortunately, installing the adapter didn’t solve my problem. After installing the adapter, I ran the adapter-install.cli script and checked that the following has been added to my standalone.xml configuration:<br>
<br>
Under extensions:<br>
<br>
<extension module="org.keycloak.keycloak-adapter-subsystem”/><br>
<br>
There is a subsystem added in the profiles section:<br>
<br>
<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1"><br>
<web-context>auth</web-context><br>
</subsystem><br>
<br>
Also, the following security-domain has been added within the <subsystem xmlns=“urn:jobs:domain:security:1.2”> element:<br>
<br>
<security-domain name="keycloak"><br>
<authentication><br>
<login-module code="org.keycloak.adapters.jboss.KeycloakLoginModule" flag="required"/><br>
</authentication><br>
</security-domain><br>
<br>
Still, I get the same “UT010039: Unknown authentication mechanism KEYCLOAK” error. Could there be more configuration that I have missed?<br>
<br>
By the way, my first attempt was based on the video tutorials by Bill Burke, they seem to be outdated.<br>
<span><font color="#888888"><br>
<br>
/Rens<br>
</font></span><div><div><br>
<br>
> On Nov 23, 2015, at 10:05, Rens Verhage <<a href="mailto:Rens.Verhage@topicus.nl" target="_blank">Rens.Verhage@topicus.nl</a>> wrote:<br>
><br>
> Ah, I didn’t install the adapter. I was under the impression that everything in the download with wildfly container would be pre-configured. Having read the adapter chapter, I understand why this assumption was wrong.<br>
><br>
> Thanks!<br>
><br>
><br>
>> On Nov 23, 2015, at 09:46, Marek Posolda <<a href="mailto:mposolda@redhat.com" target="_blank">mposolda@redhat.com</a>> wrote:<br>
>><br>
>> You also need to enable adapter subsystem in standalone.xml :<br>
>><br>
>> <extension module="org.keycloak.keycloak-adapter-subsystem"/<br>
>><br>
>><br>
>><br>
>> Take a look at docs (especially adapter part) for more details.<br>
>><br>
>> Marek<br>
>><br>
>><br>
>> On 22/11/15 18:53, Rens Verhage wrote:<br>
>>> Hi all,<br>
>>><br>
>>> I’m having some trouble securing a test application with Keycloak. I downloaded the keycloak-1.6.1.Final.zip. First thing I did was changing the datasource to PostgreSQL and in Keycloak configured my realm and generated a keycloak.json file.<br>
>>><br>
>>> I copied keycloak.json to the WEB-INF folder of my war project and edited my web.xml, I added this:<br>
>>><br>
>>> <login-config><br>
>>> <auth-method>KEYCLOAK</auth-method><br>
>>> <realm-name>PDC</realm-name><br>
>>> </login-config><br>
>>><br>
>>> <security-role><br>
>>> <role-name>admin</role-name><br>
>>> </security-role><br>
>>> <security-role><br>
>>> <role-name>user</role-name><br>
>>> </security-role><br>
>>><br>
>>> Upon boot however, Wildfly logs the following error:<br>
>>><br>
>>> "WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./pdc-web" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./pdc-web: java.lang.RuntimeException: java.lang.RuntimeException: UT010039: Unknown authentication mechanism KEYCLOAK<br>
>>> Caused by: java.lang.RuntimeException: java.lang.RuntimeException: UT010039: Unknown authentication mechanism KEYCLOAK<br>
>>> Caused by: java.lang.RuntimeException: UT010039: Unknown authentication mechanism KEYCLOAK”}}<br>
>>><br>
>>> The only hint to fix this error that I could find was to make sure that the Keycloak subsystem is enabled in standalone/configuration/standalone.xml, which is the case as I didn’t change the default config:<br>
>>><br>
>>> <server xmlns="urn:jboss:domain:3.0"><br>
>>> <extensions><br>
>>> ...<br>
>>> <extension module="org.keycloak.keycloak-server-subsystem"/><br>
>>> ...<br>
>>> </extensions><br>
>>> …<br>
>>> </server><br>
>>><br>
>>> As my experience with Wildfly and knowledge of Keycloak is limited, what could be the problem here?<br>
>>><br>
>>><br>
>>> Regards,<br>
>>> Rens Verhage<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> keycloak-user mailing list<br>
>>> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
>>> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
<br>
<br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></div></div></blockquote></div><br></div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div>