The quickstarts demonstrate securing WildFly applications using Elytron subsystem and JWT authentication. They provide small examples, that can be used as a reference for your own project.
Prior to running the quickstarts you should read this entire document and have WildFly server set up.
The quickstart README files use the replaceable value WILDFLY_HOME to denote the path to the WildFly installation. When you encounter this value in a README file, make sure you replace it with the actual path to your WildFly installation.
The applications these projects produce are designed to be run on WildFly Application Server 12 or later.
The root folder of each individual quickstart contains a README file with specific details on how to build and run the example. In most cases you do the following:
- Open a terminal and navigate to the root of the JBoss EAP server directory.
- Use the following command to start the JBoss EAP server:
For Linux: WILDFLY_HOME/bin/standalone.sh For Windows: WILDFLY_HOME\bin\standalone.bat
See the README file in each individual quickstart folder for specific details and information on how to run and access the example.
In most cases, you can use the following steps to build the application to test for compile errors or to view the contents of the archive. See the specific quickstart README file for complete details.
-
Open a terminal and navigate to the root directory of the quickstart you want to build.
-
Use the following command if you only want to build the archive, but not deploy it.
$ mvn clean install
This section describes the basic steps to build and deploy an application. See the specific instructions in each quickstart README file for any variations to this process.
-
Make sure you start the WildFly server as described in the quickstart README file.
-
Open a terminal and navigate to the root directory of the quickstart you want to run.
-
Use the following command to build and deploy the archive.
$ mvn clean install wildfly:deploy
Use the following command to undeploy the quickstart.
$ mvn wildfly:undeploy