The doc states that you can use a callback in server.get to render the decision page.
server.get('/authorization', isAuthorized, oauth2.controller.authorization, function(req, res) {
// Render our decision page
// Look into ./test/server for further information
res.render('authorization', {layout: false});
});
server.post('/authorization', isAuthorized, oauth2.controller.authorization);
But the decision page always rendered is the one specified in oauth20.decision.
The file lib/controller/authorization states req.ouath.decision(req, res, client, scope, user, redirectUri)
The doc states that you can use a callback in server.get to render the decision page.
But the decision page always rendered is the one specified in oauth20.decision. The file lib/controller/authorization states
req.ouath.decision(req, res, client, scope, user, redirectUri)
This is an error in the documentation right?