My file include/api/http.php was:
$dispatcher = patterns('',
url_post("^/tickets.(?P<format>xml|json|email)$", array('api.tickets.php:TicketApiController','create')),
url('^/tasks/', patterns('',
url_post("cron$", array('api.cron.php:CronApiController', 'execute'))
))
);
That's correct? had a pattern to handle tickets and tasks but not auth? That can cause problem with oauth2?