Saturday, January 2, 2010

Re: How to use web.xml to authenticate a access to a single page

Try with /* url-pattern

On 1 jan, 22:40, Dave <ladjo...@gmail.com> wrote:
> (Newbie) I have a web page that I want to authenticate users before
> they are allowed to access the page. I set the authentication
> parameters in the web.xml but it's not working. I use a hyperlink to
> get this page. The address of this page in the browser ishttp://somewebsite.appspot.com/#page. Fragments of my web.xml is
> below. What am i doing wrong?
>
> <web-app>
>   .......
>
>   <security-constraint>
>         <web-resource-collection>
>             <url-pattern>/*/page</url-pattern>
>         </web-resource-collection>
>         <auth-constraint>
>             <role-name>*</role-name>
>         </auth-constraint>
>         <user-data-constraint>
>             <transport-guarantee>CONFIDENTIAL</transport-guarantee>
>         </user-data-constraint>
>     </security-constraint>
> </web-app>

--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate