|
|||||||
|
|||||||
Quick links |
SimpleSSO Installation Guide
Solution overviewSingle sign on is a mechanism whereby a user authenticates against a central directory and is provided with an access token which is subsequently used as credentials in one or more applications. Many organizations have existing single sign on solutions based around non-Java technology. The SimpleSSO solution is a light, flexible Spring-based architecture to enable Java applications to participate in an existing SSO infrastructure. OutlineThere are three steps to setting up a SimpleSSO solution. Installing SimpleSSO in your application serverConfiguring an SSO providerConfiguring an application for SSOInstalling SimpleSSO in your application serverDeploying SimpleSSO to Tomcat 5.5
Installing SimpleSSO and its dependenciesThe following files need to be placed in {CATALINA_HOME}/server/lib: The following files need to be placed in {CATALINA_HOME}/common/lib: Enabling SimpleSSO in the web application contextThe web application context file is used to configure Tomcat components for a specific web application. In Tomcat 5.5 the name of the context xml file is the path to your web application. The file should be created in {CATALINA_HOME}/conf/Catalina/localhost/myapp.xml by default. Here is an example configured to use Lotus Domino SSO cookies: Installing the sssoContext.xmlThe sssoContext.xml file is a Spring context file that is used by SimpleSSO to configure the environment. It should be placed in {CATALINA_HOME}/server/classes. Now choose an SSOProvider below and configure the required SSOProvider component (Spring bean) in the sssoContext.xml file. Logging and debuggingA successful or unsuccessful authentication will be logged to logs/catalina.*.log. Further debugging can be enabled by adding the following line to {CATALINA_HOME}/conf/logging.properties. Deploying SimpleSSO to Tomcat 5.0An early version compatible with Tomcat 5.0 is in the source repository. The build script is not configured to build this version yet. This version has not been tested recently but should work. Configuration is the same as for Tomcat 5.5 above.
Configuring an SSO providerConfiguring a SimpleSSO provider for testing purposesThe SimpleSSO solution comes with a basic, low security token that can be used for testing purposes. The only parameter that needs to be set is the password parameter. Any user will be able to authenticate with this password. Configuring a SimpleSSO provider for Lotus DominoLotus Domino provides an SSO solution called the LtpaToken. The parameters are as follows:
Configuring an application for SSONow that the server is configured and the SSO provider is configured you can configure each application for SSO. Securing a generic Java web applicationAdd a login config to the web.xml.Create the login form and login error pages.Make sure the login.html and login-error.html pages are available. As a minimum your login form will contain something like the following. Secure all or part of the application with a constraint in the web.xmlDeploy and test the applicationBuild and deploy your war file and deploy to the Tomcat webapps folder. You should be presented with a username and password dialog box. Securing an Atlassian Confluence application
Confluence is an enterprise wiki tool available from Atlassian. Securing the web applicationSecure the confluence web container with a standard \<security-contraint/> as described in the previous section. This will ensure that a SimpleSSO principal is available to the confluence application. Deploy the atlassian jarThe following files need to be placed in /WEB-INF/lib: Configuring a Seraph login filter for SimpleSSOConfluence (and Jira) use the Seraph library to provide authentication. The confluence SimpleSSO plugin consists of a Seraph filter and a Seraph authenticator. Add the following lines to web.xml in the appropriate places. Configuring a Confluence Seraph authenticator for SimpleSSOWhen a Seraph login filter attempts to log a user in it will call the Seraph authenticator. Our Seraph authenticator checks for a valid ISimpleSSOPrincipal on the container. If this user does not have permission to access Confluence they are automatically added to the "confluence-users" group. The /WEB-INF/classes/seraph-config.xml is used to set the authenticator. TestingYou can enable logging with settings in the /WEB-INF/classes/log4j.properties file. |
||||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||||