There is a module I developed for nodejs here
This is an fully functional OAuth 2 server implementation, with
support for OpenID Connect specification. Based on
https://github.com/ammmir/node-oauth2-provider.
To install do
npm install openid-connect
If you use expressjs, you could simply do
var oidc = require('openid-connect').oidc();
//load all middleware
app.use(...
//routing
app.get('/authorization', oidc.auth());
and you have your authorization endpoint.
Hope it helps.