[appengine-java] Re: Checking admin priviledges using UserService in a cron/task-queue task execution

2010-12-05 Thread andrew
Thanks Didier. I will look into it while waiting to see if Google can respond on what the UserService returns in this case and if it can be used. My first thought was that it would be pretty easy for someone to construct a request with those headers present and valid values (especially for the

[appengine-java] Re: Checking admin priviledges using UserService in a cron/task-queue task execution

2010-12-04 Thread Didier Durand
Hi, To check if your code is running as a task, you can use the specific http headers added by GAE: QueueName, TaskName, RetryCount. See http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Request_Headers If additionally. you made the right security restrictions, you are