Disable itest module prior to release

This commit is contained in:
Luke Taylor 2009-08-20 14:47:15 +00:00
parent d47abbc35f
commit 2443cf6615
2 changed files with 29 additions and 22 deletions

View File

@ -59,9 +59,9 @@
<section> <section>
<title>Design of the Namespace</title> <title>Design of the Namespace</title>
<para> The namespace is designed to capture the most common uses of the framework and provide <para> The namespace is designed to capture the most common uses of the framework and provide
a simplified and concise syntax for enabling them within an application. The design is a simplified and concise syntax for enabling them within an application. The design is based
largely based around the large-scale dependencies within the framework, and can be divided around the large-scale dependencies within the framework, and can be divided up into the
up into the following areas: <itemizedlist> following areas: <itemizedlist>
<listitem> <listitem>
<para> <para>
<emphasis>Web/HTTP Security</emphasis> - the most complex part. Sets up the filters <emphasis>Web/HTTP Security</emphasis> - the most complex part. Sets up the filters
@ -76,8 +76,7 @@
<listitem> <listitem>
<para> <para>
<emphasis>AuthenticationManager</emphasis> - handles authentication requests from <emphasis>AuthenticationManager</emphasis> - handles authentication requests from
other parts of the framework. A default instance will be registered internally by the other parts of the framework.</para>
namespace.</para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
@ -149,12 +148,14 @@
matches at the top.</para> matches at the top.</para>
</note> </note>
<para> To add some users, you can define a set of test data directly in the namespace: <programlisting language="xml"><![CDATA[ <para> To add some users, you can define a set of test data directly in the namespace: <programlisting language="xml"><![CDATA[
<authentication-manager>
<authentication-provider> <authentication-provider>
<user-service> <user-service>
<user name="jimi" password="jimispassword" authorities="ROLE_USER, ROLE_ADMIN" /> <user name="jimi" password="jimispassword" authorities="ROLE_USER, ROLE_ADMIN" />
<user name="bob" password="bobspassword" authorities="ROLE_USER" /> <user name="bob" password="bobspassword" authorities="ROLE_USER" />
</user-service> </user-service>
</authentication-provider> </authentication-provider>
</authentication-manager>
]]> ]]>
</programlisting></para> </programlisting></para>
<sidebar> <sidebar>
@ -166,11 +167,11 @@
<para>The <literal>&lt;authentication-provider&gt;</literal> element creates a <para>The <literal>&lt;authentication-provider&gt;</literal> element creates a
<classname>DaoAuthenticationProvider</classname> bean and the <classname>DaoAuthenticationProvider</classname> bean and the
<literal>&lt;user-service&gt;</literal> element creates an <literal>&lt;user-service&gt;</literal> element creates an
<classname>InMemoryDaoImpl</classname>. A <literal>ProviderManager</literal> bean is <classname>InMemoryDaoImpl</classname>. All <literal>authentication-provider</literal>
always created by the namespace processing system and the elements must be within the <literal>authentication-manager</literal> element, which
<classname>DaoAuthenticationProvider</classname> is automatically registered with it. creates a <classname>ProviderManager</classname> and registers the authentication
You can find more detailed information on the beans that are created in the <link providers with it. You can find more detailed information on the beans that are created in
xlink:href="#appendix-namespace">namespace appendix</link>. </para> the <link xlink:href="#appendix-namespace">namespace appendix</link>. </para>
</sidebar> </sidebar>
<para> The configuration above defines two users, their passwords and their roles within the <para> The configuration above defines two users, their passwords and their roles within the
application (which will be used for access control). It is also possible to load user application (which will be used for access control). It is also possible to load user
@ -265,12 +266,16 @@
If you have a custom implementation of Spring Security's If you have a custom implementation of Spring Security's
<classname>UserDetailsService</classname>, called "myUserDetailsService" in your <classname>UserDetailsService</classname>, called "myUserDetailsService" in your
application context, then you can authenticate against this using <programlisting language="xml"><![CDATA[ application context, then you can authenticate against this using <programlisting language="xml"><![CDATA[
<authentication-manager>
<authentication-provider user-service-ref='myUserDetailsService'/> <authentication-provider user-service-ref='myUserDetailsService'/>
</authentication-manager>
]]> ]]>
</programlisting> If you want to use a database, then you can use <programlisting language="xml"><![CDATA[ </programlisting> If you want to use a database, then you can use <programlisting language="xml"><![CDATA[
<authentication-manager>
<authentication-provider> <authentication-provider>
<jdbc-user-service data-source-ref="securityDataSource"/> <jdbc-user-service data-source-ref="securityDataSource"/>
</authentication-provider> </authentication-provider>
</authentication-manager>
]]> ]]>
</programlisting> Where "securityDataSource" is the name of a </programlisting> Where "securityDataSource" is the name of a
<classname>DataSource</classname> bean in the application context, pointing at a database <classname>DataSource</classname> bean in the application context, pointing at a database
@ -278,7 +283,9 @@
data tables</link>. Alternatively, you could configure a Spring Security data tables</link>. Alternatively, you could configure a Spring Security
<classname>JdbcDaoImpl</classname> bean and point at that using the <classname>JdbcDaoImpl</classname> bean and point at that using the
<literal>user-service-ref</literal> attribute: <programlisting language="xml"><![CDATA[ <literal>user-service-ref</literal> attribute: <programlisting language="xml"><![CDATA[
<authentication-manager>
<authentication-provider user-service-ref='myUserDetailsService'/> <authentication-provider user-service-ref='myUserDetailsService'/>
</authentication-manager>
<beans:bean id="myUserDetailsService" <beans:bean id="myUserDetailsService"
class="org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl"> class="org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl">

View File

@ -19,7 +19,7 @@
<module>taglibs</module> <module>taglibs</module>
<module>portlet</module> <module>portlet</module>
<module>samples</module> <module>samples</module>
<module>itest</module> <!--module>itest</module-->
</modules> </modules>
<description>Spring Security</description> <description>Spring Security</description>