hi stian,

iam referring to the documentation here http://keycloak.github.io/docs/userguide/pdf/keycloak-reference-guide-en-US.pdf

can i know which part is the old config?

Regards,
CK Yap

On 16 Oct 2015, at 5:58 PM, Stian Thorgersen <sthorger@redhat.com> wrote:

You're using the old config format. Please refer to http://keycloak.github.io/docs/userguide/html/ch08.html#jboss-adapter

On 16 October 2015 at 11:47, Chen Keong Yap <chenkeong.yap@izeno.com> wrote:
Hi,

Iam unable to secure war file using jboss subsytem. Can please advise?


error :

Message: Unexpected element '{urn:jboss:domain:keycloak:1.1}subsystem'
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:1199)
at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:457)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:144)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:106)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more


snippet of standalone.xml

<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
           <web-context>auth</web-context>
         </subsystem> 
         <subsystem xmlns="urn:jboss:domain:keycloak:1.1">
  <secure-deployment name="WAR MODULE NAME.war">
    <realm>demo</realm>
    <realm-public-key>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsy3CI+Un3CTFC/yoMzXNb7+Zm2gExw7khOduINB6wVIZpx+BT60DtXqcr0jZgxsO06ITL1/whVwHBx8G0KNG+t3McoYjXtEgkU5q0F+UA97M863Sg/762dC/2os7KiD/WVreXxA4wuueil/PPGj8YS0EUacx28yOhbhIIbva/jEWCtgKS3r/H6OtxZNM0lE0taimKlNT7NfLTBm/XH6IsdF75QD2WKTdzMHrd92zBg7lzHvp+/tZ7JwGhlR/+9N8O2qnPZWKVub7Wgum30trV8slFhWsneraosG2mnmeJLuIkNtev2gYvuNc5i8uZuKUnrdz2CUWEbViEReWm3uWRwIDAQAB</realm-public-key>
    <auth-server-url>http://localhost:8080/auth</auth-server-url>
    <bearer-only>true</bearer-only>
    <ssl-required>EXTERNAL</ssl-required>
    <resource>http://localhost:8080/jasperserver-pro/</resource>
</secure-deployment>
</subsystem> 
    </profile>

_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user