mirror of
https://github.com/hardillb/node-red-alexa-home-skill-web.git
synced 2025-12-19 00:31:07 +01:00
Getting things clean for AWS
Just checking in a bunch of little changes ahead of moving the whole stack over to AWS from Bluemix
This commit is contained in:
8
index.js
8
index.js
@@ -412,7 +412,7 @@ app.post('/lostPassword', function(req, res, next){
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/auth/start',oauthServer.authorize(function(applicationID, redirectURI,done){
|
||||
app.get('/auth/start',oauthServer.authorize(function(applicationID, redirectURI, done) {
|
||||
oauthModels.Application.findOne({ oauth_id: applicationID }, function(error, application) {
|
||||
if (application) {
|
||||
var match = false, uri = url.parse(redirectURI || '');
|
||||
@@ -432,7 +432,7 @@ app.get('/auth/start',oauthServer.authorize(function(applicationID, redirectURI,
|
||||
} else {
|
||||
done(error);
|
||||
}
|
||||
});
|
||||
});
|
||||
}),function(req,res){
|
||||
var scopeMap = {
|
||||
// ... display strings for all scope variables ...
|
||||
@@ -453,7 +453,9 @@ app.get('/auth/start',oauthServer.authorize(function(applicationID, redirectURI,
|
||||
});
|
||||
|
||||
app.post('/auth/finish',function(req,res,next) {
|
||||
//console.log("/auth/finish user: ", req.user);
|
||||
console.log("/auth/finish user: ", req.user);
|
||||
console.log(req.body);
|
||||
console.log(req.params);
|
||||
if (req.user) {
|
||||
next();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user