Indeed, no need to define your own login page if you want BASIC authentication.
Check the servlet specification to see how to declare security constraints in 
your web.xml file.

Here is an example:

  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Restricted</web-resource-name>
      Restricted resources
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
      
    <auth-constraint>
      <role-name>Role1</role-name>
    </auth-constraint>

    <user-data-constraint>
      no description
      <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
  </security-constraint>

Thomas

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887017#3887017

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887017


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to