AIV SSO
AIV allow single sign on option so that AIV can be integrated with third party application as an integrated solution. In this exercise you will learn to implement simple Single sign on code which will validate users against CSV file.
AIV allow configuring external security so that you do have to redefine users and roles within AIV application, to use external security you need to implement a java interface.
In this Document you will learn to implement simple Single sign on and external security which will validate users against CSV file. Sample Project File for SSO and External security can be downloaded from below link:
Data file you required: (a.) AIV SSO jar file (b.) External Security jar file (c.) SSO and External security project files
- Download Files and extract in your local storage folder. you will see a two folder:
- AIV External Security
- AIV SSO
- Import both these projects in eclipse to make path changes in this sample project.
- Now expand AIV external security project, and expand files folder. This files folder contains csv files which contains user, role and user-role mapping sample information and other .properties files which will be used in case when your user data resides in database.
NOTE: This csv contains sample data information of users for demo purpose, you can change csv file to work with your user data. But make sure changes you made in users.csv file should be horizontally implemented in all other csv files wherever required.
- To change path of this csv files in your project, expand src folder and open ExternalSecurityCSVImpl class file available in com.aiv.externalsecurity package.
- Provide path of csv files here at variable BASE_PATH as shows in below image,
- Save this class file, now expand AIV sso project folder and open AIVSSOImpl class, provide valid path to store log files.
NOTE: Please find Code explanation of SSO class given on below link:
Also Please find code explanation of External security project on below link: https://aivhub-my.sharepoint.com/:w:/p/bhaumik/EXb3it4RMIZEiEDBIfpO9z8BerPZyncBKtsBjbatvQ1oXA?e=ejCiKL
- Save this file and export this file as a jar file and save it in local storage.
- Do the same with external security, export AIV External security project as jar file and store it in local storage.
- In order to use it, you need enable SSO and External security from AIV Configuration page.
- Click on Hamburger menu and Go to Administration à AIV Configuration section, Click the checkbox of External Security, as shown in figure.
- Select the Secure Radio Button of Editable User Properties and Editable Roles Properties.
- nter in Security class name: com.aiv.externalsecurity.ExternalSecurityCSVImpl
- Enter in Admin Users: Admin
- Enter in Admin Roles: Administrator
- Select the Check box of User Defaults and Roles Defaults, as shown in figure.
- Paste External Security & SSO JAR File into location [C:\AIV\apache-tomcat\webapps\aiv\WEB-INF\lib].
- Click on SSO Configuration check box, it will enable SSO Configuration setting into AIV, as shown in figure.
- Enter in class name: com.aiv.sso.AIVSSOImpl, as shown in figure. [It impairments SSO Jar File class path]
- Restart the AIV, Open AIV\apache-tomcat-8.5.57\bin Double-click on Shutdown Windows Batch file.
- When the shutdown Windows Batch file finish it’s Execution, Find start-up Windows Batch file, double-click on start-up file.
- Once server started, Login into AIV, Go to Administration àUser section you will find some new users added into AIV. As shown in figure.