This is draft - do not use it now
Creating and using custom authentication module in OpenSSO
This note explains the steps assuming the name of the custom module name as sample.SampleModule.
Compile your SampleModule and SamplePrincipal, the Principal that would be returned by SampleModule.
Jar up the compiled classes into sampleModule.jar. The name of the jar file is not significant.
Create SampleModuleService.xml if you want to specify configuration parameters for your SampleModule instances. The name of the xml file is not significant. However, the name of the service is significant. The name of the service should be
Create SampleModule.properties to specify i18n keys and values used for your module. The name of the file is significant.
Create SampleModule.xml to sepcify the authentication states and pages for your module. If your module does not have any page, create an empty file SampleModule.xml. The name of the file is significant.
1. Login into OpenSSO as amadmin
2. Access the following URL
http://<host>:<port>/opensso/ssoadm.jsp
3. Choose create-svc option
4. Copy and paste the service xml file for your Custom Auth Module (sample attached)
5. To register the custom auth module into the authentication core framework, choose register-auth-module option
6. Enter the complete module class name i.e including the package
7. Copy
7. If you have any property file that stores i18n keys for your module configuration label, copy it to $WAR_DIR/WEB-INF/classes
8. Restart the server 9. Your Custom Auth Module should be listed under types of Authentication modules and once instance is created, it should be
configurable based on what attributes you have listed in your service xml file.

