An OAuth Server in PHP implemented using MongoDB