Configuring custom authmodule

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.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact