Fix pagination with secret-key authentication (issue #158)