You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Rainer Worbis <wo...@nextra.at> on 2000/08/02 09:31:15 UTC
Security check for web app
Hi,
i want to protect a whole webapp with an security check - this is what i put
into the web.xml of the app.
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
_
<auth-constraint>
_
<role-name>demo</role-name> _
</auth-constraint>
_
</security-constraint>
_
- nothing seems to happen. When i try to change this (for example) into
<url-pattern>/image/*</url-pattern>
all accesses to the image directory are checked.
So am i doing something wrong or is it really not possible to protect a
whole webapp ?
Thanks,
Rainer Worbis
Re: Security check for web app
Posted by Johan Peeters <jo...@alcatel.be>.
I had a problem with this earlier when I was running tomcat 3.1. 3.2b2 improved
matters.
Best of luck,
Yo
Rainer Worbis wrote:
> Hi,
>
> i want to protect a whole webapp with an security check - this is what i put
> into the web.xml of the app.
>
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>Protected Area</web-resource-name>
> <url-pattern>/*</url-pattern>
> </web-resource-collection>
> _
> <auth-constraint>
> _
> <role-name>demo</role-name> _
> </auth-constraint>
> _
> </security-constraint>
> _
>
> - nothing seems to happen. When i try to change this (for example) into
>
> <url-pattern>/image/*</url-pattern>
>
> all accesses to the image directory are checked.
>
> So am i doing something wrong or is it really not possible to protect a
> whole webapp ?
>
> Thanks,
> Rainer Worbis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
--
Johan Peeters mailto:johan.peeters@alcatel.be
Software Architect - Net Commerce
Alcatel - Gen. De Wittelaan 11 A bus 1 - 2800 Mechelen - Belgium
Phone: +32 15 29 3427 Fax: +32 3 240 4800
Re: Security check for web app
Posted by pranab <pr...@pla-net.net>.
Hi,
There is something which should be considered when securing the
webapp.
i.e <login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/login/login.html</form-login-page>
<form-error-page>/login/loginerror.html</form-error-page>
</form-login-config>
</login-config>
if you secure everything you might be securing the login and login
error URL's.
In that case BASIC authentication should be used.From your mail it is
not clear
what authentication method you have used.
PKD
Rainer Worbis wrote:
>
> Hi,
>
> i want to protect a whole webapp with an security check - this is what i put
> into the web.xml of the app.
>
> <security-constraint>
> <web-resource-collection>
> <web-resource-name>Protected Area</web-resource-name>
> <url-pattern>/*</url-pattern>
> </web-resource-collection>
> _
> <auth-constraint>
> _
> <role-name>demo</role-name> _
> </auth-constraint>
> _
> </security-constraint>
> _
>
> - nothing seems to happen. When i try to change this (for example) into
>
> <url-pattern>/image/*</url-pattern>
>
> all accesses to the image directory are checked.
>
> So am i doing something wrong or is it really not possible to protect a
> whole webapp ?
>
> Thanks,
> Rainer Worbis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org