An oauth2 server written in node.js with mongodb in the back