2016-05-11 02:48:33 +00:00
2016-12-12 20:20:58 +00:00
=== Downloading, Building, and Deploying Application Code
2016-05-11 02:48:33 +00:00
2016-06-09 08:14:10 +00:00
The project and code for the application you are going to secure is available in link:{{book.quickstartRepo}}[Red Hat Developers GitHub]. You will need the following
2016-05-11 02:48:33 +00:00
installed on your machine and available in your PATH before you can continue:
* Java JDK 8
* Apache Maven 3.1.1 or higher
2016-08-19 13:14:47 +00:00
* Git
2016-05-11 02:48:33 +00:00
2016-12-01 16:08:55 +00:00
You can obtain the code by cloning the repository at {{book.quickstartRepo}}. Use the branch matching the version of Red Hat Single Sign-On in use. Follow these steps to download the code, build it,
2017-02-14 14:31:18 +00:00
and deploy it. Make sure your {{book.appserver.name}} application server is started before you run these steps.
2016-05-11 02:48:33 +00:00
2016-06-02 09:46:44 +00:00
.Clone Project
2016-06-09 10:09:53 +00:00
[source, subs="attributes"]
2016-05-11 02:48:33 +00:00
----
2016-06-09 08:14:10 +00:00
$ git clone {{book.quickstartRepo}}
2016-08-19 13:14:47 +00:00
$ cd redhat-sso-quickstarts/app-profile-jee-vanilla
2016-05-11 02:48:33 +00:00
$ mvn clean wildfly:deploy
----
2016-06-09 08:14:10 +00:00
You should see some text scroll down in the application server console window. After the application is successfully deployed go to:
2016-05-11 02:48:33 +00:00
http://localhost:8080/vanilla
2016-06-09 08:14:10 +00:00
.Application Login Page
2016-05-11 02:48:33 +00:00
image:../../{{book.images}}/app-login-page.png[]
If you open up the application's _web.xml_ file you would see that the application is secured via `BASIC` authentication.
If you click on the login button on the login page, the browser
will pop up a BASIC auth login dialog.
2016-06-09 08:14:10 +00:00
.Application Login Dialog
2016-05-11 02:48:33 +00:00
image:../../{{book.images}}/client-auth-required.png[]
2016-06-09 08:22:27 +00:00
The application is not secured by any identity provider, so anything you enter in the dialog box will result in a `Forbidden` message being
sent back by the server. The next section describes how you can take this deployed application and secure it.