Connect/Express middleware for Puavo authentication