A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
About the security and role in web.xml
Joined: Mar 03, 2009
Sep 10, 2010 05:36:15
That's must be a stupid question...
This is my web.xml
<security-constraint> <display-name>TestDisplayName</display-name> <web-resource-collection> <web-resource-name>TestWebResourceName</web-resource-name> <url-pattern>/ServletTest</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>Employee</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>NONE</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>TestRealm</realm-name> </login-config>
That works perfect, i saw the popup window, but where should I set the passwords and roles?
btw, i use
Joined: Oct 14, 2008
Sep 10, 2010 06:14:42
That's specific to the server you're using; check the JBoss documentation.
Joined: Nov 04, 2009
Sep 10, 2010 08:44:48
If you are using production server, you can use LDAP or database, where your real user security info is stored. Then you can use it rather then depending on memory realm of the server!
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Joined: Aug 06, 2009
Sep 10, 2010 10:13:01
As mentioned by Lester, its available in the documentation.
I agree. Here's the link:
subject: About the security and role in web.xml
Problems with FORM Authentication
Form Authentication not working
Return to HTTP from HTTPS
Adding users and roles
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014