lib/oauth2.js
function (req, res, next) {
            if (options.decisionPage) {
                var urlObj = {
                    pathname: options.decisionPage,
                    query: {
                        transactionId: req.oauth2.transactionID,
                        userId: req.oauth2.user.id,
                        clientId: req.oauth2.client.id,
                        scope: req.oauth2.req.scope,
                        redirectURI: req.oauth2.redirectURI
                    }
                };
                return res.redirect(url.format(urlObj));
            }
            res.render(options.decisionView || 'dialog',
                {
                    transactionId: req.oauth2.transactionID,
                    user: req.user, client: req.oauth2.client,
                    scopes: req.oauth2.req.scope,
                    redirectURI: req.oauth2.redirectURI
                });
        }
function (req, res, next) {
            if (options.decisionPage) {
                var urlObj = {
                    pathname: options.decisionPage,
                    query: {
                        transactionId: req.oauth2.transactionID,
                        userId: req.oauth2.user.id,
                        clientId: req.oauth2.client.id,
                        scope: req.oauth2.req.scope,
                        redirectURI: req.oauth2.redirectURI
                    }
                };
                return res.redirect(url.format(urlObj));
            }
            res.render(options.decisionView || 'dialog',
                {
                    transactionId: req.oauth2.transactionID,
                    user: req.user, client: req.oauth2.client,
                    scopes: req.oauth2.req.scope,
                    redirectURI: req.oauth2.redirectURI
                });
        }
function ( req , res , next ) { if ( options . decisionPage ) { var urlObj = { pathname : options . decisionPage , query : { transactionId : req . oauth2 . transactionID , userId : req . oauth2 . user . id , clientId : req . oauth2 . client . id , scope : req . oauth2 . req . scope , redirectURI : req . oauth2 . redirectURI } } ; return res . redirect ( url . format ( urlObj ) ) ; } res . render ( options . decisionView || 'dialog' , { transactionId : req . oauth2 . transactionID , user : req . user , client : req . oauth2 . client , scopes : req . oauth2 . req . scope , redirectURI : req . oauth2 . redirectURI } ) ; }
Now try to render the dialog to approve client app's request for permissions
Now try to render the dialog to approve client app s request for permissions