Source

osuser / example / manager / WEB-INF / web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
	<!-- Standard Web App stuff -->
	<display-name>OSUser manager web-app</display-name>

	<welcome-file-list>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>

	<security-constraint>
		<web-resource-collection>
			<web-resource-name>test</web-resource-name>
			<description>OSUser Test</description>
			<url-pattern>/test/*</url-pattern>
			<http-method>GET</http-method>
		</web-resource-collection>
		<auth-constraint>
			<description>Foobars Role</description>
			<role-name>foobars</role-name>
		</auth-constraint>
		<user-data-constraint>
			<description>No Description</description>
			<transport-guarantee>NONE</transport-guarantee>
		</user-data-constraint>
	</security-constraint>
	<login-config>
		<auth-method>BASIC</auth-method>
		<realm-name>OSUser Manager Test</realm-name>
	</login-config>
	<security-role>
		<description>Normal users </description>
		<role-name>foobars</role-name>
	</security-role>

	<!-- EJB References -->
	<ejb-ref>
		<ejb-ref-name>ejb/osuser/Manager</ejb-ref-name>
		<ejb-ref-type>Entity</ejb-ref-type>
		<home>com.opensymphony.user.provider.ejb.UserManagerHome</home>
		<remote>com.opensymphony.user.provider.ejb.UserManagerSession</remote>
		<ejb-link>osuser.jar#UserManager</ejb-link>
	</ejb-ref>
	<!-- END EJB references -->

	<!-- Environment Entries -->
	<!-- END Environment Entries -->

	<!-- Security Settings -->
	<!-- END Security Settings -->
</web-app>