Returns 404 on authentication entity not found