User Tools

Site Tools


developers:examples:java:web-platform-hello-world

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
developers:examples:java:web-platform-hello-world [2016/10/26 08:12]
127.0.0.1 external edit
— (current)
Line 1: Line 1:
-====== Java SDK Web Platform Hello World Application ====== 
- 
-See all [[developers:examples:java:start|Java Examples]] 
- 
-The Java SDK package also includes a "Hello World" application based on Web Platform, an example of the authentication process in its simplest form including QR code integration. It is a standard Java web application that can be placed in any web container supporting servlet 3.0. The Tomcat web container will be used here. The application is provided including source files. 
- 
-==== Preconditions ==== 
- 
-If full application functionality is expected, the following needs to be arranged: 
- 
-  * PEIG must be running (ADUCID<sup>®</sup>   client side) 
-  * Valid identity must exist in ADUCID<sup>®</sup>   Server Kit, must have personal factor and be approved 
- 
-==== Installation ==== 
- 
-Steps to install the application as a part of Tomcat: 
- 
-  - **Install Tomcat adapter** 
-  - Rename the supplied web application “Hello World” from api-web-webapp-[version].war to api-web-webapp.war. 
-  - Load the api-web-webapp.war web archive to Tomcat (to the $TOMCAT_HOME/webapps directory). 
-  - Run Tomcat so that the installed sample web application unpacks to the subdirectory api-webapp in $TOMCAT_HOME/webapps directory. 
-  - Stop Tomcat. 
-  - Set the "aimUrl" context parameter in the file $TOMCAT_HOME/webapps/api-webapp/WEB-INF/web.xml to the machine address (including port), where the AIM and AIM-Proxy applications are running. If the parameter is not configured, the application won’t work properly. 
-  - Run Tomcat. 
- 
-After the installation, the application will be available on: 
- 
-[[http://[your_container_ip]:[your_container_port]/api-web-webapp|http://[your_container_ip]:[your_container_port]/api-web-webapp]] 
- 
-Example of address: 
- 
-[[http://10.20.29.189:8080/api-web-webapp|http://10.20.29.189:8080/api-web-webapp]] 
- 
-If you install the sample application in Linux/Unix OS, stop the iptables service or modify its configuration. 
- 
-Then the following pages will be available: 
- 
-  * /index.jsp, access also via / – freely accessible page, contains links to start ADUCID<sup>®</sup>   authentication and integrated QR code 
-  * /loggedIn.jsp – the page to which the Web Platform reroutes the result of authentication; it shows authentication success 
-  * /error.jsp – the page to which the Web Platform reroutes the result of authentication; it shows authentication failure 
- 
-<font 11.0pt/11;;inherit;;inherit>The minimum sequence of the functional code and configuration can be found in the application source code. The code is essential for integration of ADUCID<sup>®</sup> authentication into third-party systems.</font> 
- 
-== index.jsp page == 
- 
-{{:developers:examples:java:web-platform-hello-world1.png?nolink&800x370}} 
- 
-== loggedIn.jsp page == 
- 
-{{:developers:examples:java:web-platform-hello-world2.png?nolink&800x369}} 
- 
-== error.jsp page == 
- 
-{{:developers:examples:java:web-platform-hello-world3.png?nolink&800x369}} 
- 
  
developers/examples/java/web-platform-hello-world.1477469533.txt.gz · Last modified: 2016/10/26 08:12 by 127.0.0.1