Hello Robert,
Thanks for the reply.
Here is the portion of my web.xml which defines URL of the servlet
used by tasks and restricts it to ADMIN.
<security-constraint>
        <web-resource-collection>
            <url-pattern>/sendInvitation</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
</security-constraint>


On Mar 30, 8:27 pm, Robert Kluin <[email protected]> wrote:
> I suspect you've got a configuration problem.  You might want to
> carefully review the docs on configuring theadminonly login.
>  http://code.google.com/appengine/docs/java/taskqueue/overview.html#Se...
>
> If you still can't get it, I would post back including the appropriate
> parts of your config.
>
> Robert
>
>
>
>
>
>
>
> On Wed, Mar 30, 2011 at 04:51, Java_GAE <[email protected]> wrote:
> > Hello Friends,
> > I am facing following problem in my application:
>
> > 1. I created a Servlet which can be accessed by any logged in user.
> > This Servlet adds tasks in a queue.
> > 2. Servlet used by the tasks is restricted forAdminonly in web.xml.
> > 3. Tasks executed properly when I log in asAdminbut not when with
> > normal Google Account.
> > 4. I am surprised because Google Docs forTaskQueue Service says that
> > tasks can accessAdminonly URLs.
> > 5. My understanding from this Docs is - "tasks will get executed
> > irrespective of who is adding them -Adminor other user".
> > 6. If not how to protecttaskURLs from within web.xml as the same
> > Docs says that tasks cannot access URLs restricted with * role.
>
> > Any help will be appreciated.
> > Thanks in advance.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to