Prime Home SSO implementation

From DocWiki

Jump to: navigation, search

(This page is a work in progress. Need to learn about tags that will format the .xml properly.

The two .xml files on this page are key to SSO implementation for Prime Home. For full details, see the LDAP and SSO Implementation Tutorial.


This Spring context configuration file for the SSO module can be accessed from this link and added to your system. You will not need to change the contents of this file unless you need to use both SSO and LDAP. This file is loaded from the classpath, by default, so be sure to specify a classpath URL for the value (as shown above).

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="" xmlns:xsi="" xsi:schemaLocation="">

   <bean id="preAuthUserDetailsService" class=""/>
   <bean id="preAuthProvider" class="">
       <property name="preAuthenticatedUserDetailsService" ref="preAuthUserDetailsService"/>
   <bean id="providerManager" class="">
       <property name="providers">
               <ref local="preAuthProvider"/>
   <bean id="roleMapper" class="com.clearaccess.acs.auth.impl.AuthorityMapperImpl">
       <constructor-arg index="0" ref="roleMapper.configuration"/>
   <bean id="domainMapper" class="com.clearaccess.acs.auth.impl.AuthorityMapperImpl">
       <constructor-arg index="0" ref="domainMapper.configuration"/>



This file contains the role and domain mappings for the single sign-on service and is also available to copy at this link and added to your system. You will need to modify this, as needed, to map the roles and domains your users need access to.

{code:xml} <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="" xmlns:xsi=""

      xmlns:aop="" xmlns:tx=""

<util:map id="roleMapper.configuration" key-type="java.lang.String" value-type="java.util.List"> <entry key="admin"> <util:list> <value>administrator</value> </util:list> </entry> <entry key="csr"> <util:list> <value>csr</value> </util:list> </entry> </util:map>

<util:map id="domainMapper.configuration" key-type="java.lang.String" value-type="java.util.List"> <entry key="west"> <util:list> <value>AD_ISLAND_1</value> <value>AD_ISLAND_2</value> </util:list> </entry> <entry key="east"> <util:list> <value>AD_ISLAND_3</value> <value>AD_ISLAND_4</value> </util:list> </entry> </util:map>

</beans> {code}

Rating: 0.0/5 (0 votes cast)

Personal tools