Based on oauth2orize: oauth2 provider example
Shows the basic configuration of the extention grant types. Implementation details of token generation are left to the reader.
$ npm install git://github.com/jaredhanson/oauth2orize-openid.git --save
// for example
var oauth2orize_ext = require('oauth2orize-openid')