How to create secure-deployment using CLI
Issue
- We want to secure EAP applications via adapter subsystem configuration. Reading the documentation the following stanza should be added to the
keycloak-adapter-subsystem
:
<subsystem xmlns="urn:jboss:domain:keycloak:1.1">
<secure-deployment name="WAR MODULE NAME.war">
<realm>demo</realm>
<auth-server-url>http://localhost:8081/auth</auth-server-url>
<ssl-required>external</ssl-required>
<resource>customer-portal</resource>
<credential name="secret">password</credential>
</secure-deployment>
</subsystem>
- How can this be done using the CLI interface?
- JBoss EAP does not initialize when added to
standalone.xml
input<secure-deployment name="example.war">
with your tags.
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[304,12]
Message: JBAS014789: Unexpected element '{urn:jboss:domain:1.4}secure-deployment' encountered
Environment
- Red Hat Single Sign-On (RH-SSO)
- 7.x
- EAP Java Adapters
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.