User Tools

Site Tools


developers:examples:java:client-api-basic:install

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
developers:examples:java:client-api-basic:install [2019/08/01 10:14]
tjotov removed
— (current)
Line 1: Line 1:
-===== SDK Client API - Simple Hello World Application ===== 
- 
-The Java SDK package also includes a simple “Hello World” application, an example of the authentication process in its simplest form. 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, nevertheless all logic is in jsp in the form of scriptlets. 
- 
-==== Installation ==== 
- 
-Steps to install the application as a part of Tomcat: 
- 
-  - Rename the supplied simple web application “Hello World” from api-webapp-[version].war to api-webapp.war. 
-  - Load the api-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 "host" parameter in the file $TOMCAT_HOME/webapps/api-webapp/WEB-INF/classes/config.properties 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-webapp|http://[your_container_ip]:[your_container_port]/api-webapp]] 
- 
-Example of address: 
- 
-[[http://10.20.29.189:8080/api-webapp|http://10.20.29.189:8080/api-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, which automatically initiates the authentication process after being called 
-  * /result.jsp – the page to which the AIM Proxy reroutes the result of authentication; it shows authentication success/failure information, including the basic set of user attributes 
- 
-The minimum sequence of the functional code can be found in the code of these pages. The code is essential for integration of ADUCID<sup>®</sup>   authentication into third-party systems. 
- 
  
developers/examples/java/client-api-basic/install.1564654468.txt.gz · Last modified: 2019/08/01 10:14 by tjotov