How to create secure-deployment using CLI

Solution Verified - Updated -

Issue

        <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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content