Hello,
I'm trying to do a simple security example with WSAD 4.1.1
Test Enviornment. I have setup the web.xml as shown below. What I can't figure out is where I configure the login names and passwords that can be used to login to that role. Since I'm just trying to do a trivial example, I would prefer the simplest manner of specifying the login names and passwords for the role.
Thanks for the help,
Victor Peters
<security-constraint>
<web-resource-collection>
<web-resource-name>RestrictedResources</web-resource-name>
<description>Resources accessible to only to the SuperUser.</description>
<url-pattern>/view-restricted.html</url-pattern>
<url-pattern>/ShowUser</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint>
<description></description>
<role-name>SuperUser</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<description>A simple restricted-access user role.</description>
<role-name>SuperUser</role-name>
</security-role>