User authentication for Prodigy web app

In case anyone stumbles upon this before I get a chance to finish writing up our solution for this… We were able to setup an authentication app in express.js that utilizes http-proxy-middleware to proxy requests to prodigy after the user is authenticated. The prodigy application only accepts incoming requests from the proxy application which prevents unauthorized users from accessing the app. Excluding the authentication portions of the code the only thing needed to proxy requests to prodigy was:

var options = {
    target: 'http://prodigy:8080', // target host
    pathRewrite: {
        '^/proxy' : '/'     // rewrite path
    },
};
var prodigyProxy = proxy(options);
app.use('/proxy', prodigyProxy);
app.use('**', prodigyProxy);