[keycloak-user] missing autodetect-bearer-only from secure-deployment xsd?

David Delbecq david_delbecq at trimble.com
Tue Feb 14 10:24:23 EST 2017


Hello,

i tried to enabled "autodetect bearer only" feature in my application, so
that soap requests get proper reply. however, it seems you can only set
this value inside keycloak.json, not inside the adapter subsystem config.
Worse, if an adapter subsystem config is done, keycloak.json is ignored.

Is this a bug i should report or am i missing some documentation?

So far i looked here:
https://github.com/keycloak/keycloak/blob/master/adapters/oidc/wildfly/wildfly-subsystem/src/main/resources/schema/wildfly-keycloak_1_1.xsd
https://github.com/keycloak/keycloak/pull/3663
https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/java-adapter-config.html

When i set my adapter config like this:
               <secure-deployment name="my.war">
                    <realm>${authRealm}</realm>
                   ....
                    <autodetect-bearer-only>true</autodetect-bearer-only>
                </secure-deployment>


I get this error from wildfly
[Host Controller] 16:21:20,175 ERROR [org.jboss.as.host.controller]
(Controller Boot Thread) WFLYHC0033: Caught exception during boot:
org.jboss.as.controller.persistence.ConfigurationPersistenceException:
WFLYCTL0085: Failed to parse configuration
[Host Controller]       at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
[Host Controller]       at
org.jboss.as.host.controller.DomainModelControllerService.boot(DomainModelControllerService.java:643)
[Host Controller]       at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:271)
[Host Controller]       at java.lang.Thread.run(Thread.java:745)
[Host Controller] Caused by: javax.xml.stream.XMLStreamException: Unknown
secure-deployment tag autodetect-bearer-only
[Host Controller]       at
org.keycloak.subsystem.adapter.extension.KeycloakSubsystemParser.readDeployment(KeycloakSubsystemParser.java:107)


-- 
<http://www.trimble.com/>
David Delbecq
Software engineer, Transport & Logistics
Geldenaaksebaan 329, 1st floor | 3001 Leuven
+32 16 391 121 <+32%2016%20391%20121> Direct
david.delbecq at trimbletl.com
<http://www.trimbletl.com/>


More information about the keycloak-user mailing list