Permalink
Browse files

Fixing issues

  • Loading branch information...
1 parent 94647ae commit ab44ed0a3e695b94a0474520597bbd0a79f6f376 @jrgleason committed Aug 23, 2012
Showing with 12 additions and 7 deletions.
  1. +7 −5 lib/google/interface.js
  2. +4 −1 lib/google/oauth.js
  3. +1 −1 package.json
View
@@ -294,12 +294,14 @@ exports.callbackHandler = function(req,res,next){
exports.getUserInformation = function(req, res, next){
console.log("FROM UserInfo: "+req.session.access_token);
- if(req.err == undefined){
+ //if(req.err == undefined){
+ console.log("Getting Info")
googleProvider.getUserInformation(req.session.access_token, next, req.session)
- }
- else{
- return next()
- }
+ //}
+ // else{
+ // console.log(err)
+ // return next()
+ // }
}
exports.logout = function(req, res, next){
View
@@ -117,7 +117,7 @@ GoogleProvider.prototype.revokeToken = function (authToken, response, callback){
res.body += chunk;
})
res.on('end', function() {
- console.log("Log Out is :"+res.body)
+ //console.log("Log Out is :"+res.body)
callback();
})
})
@@ -126,6 +126,7 @@ GoogleProvider.prototype.revokeToken = function (authToken, response, callback){
}
GoogleProvider.prototype.getUserInformation = function(accessToken, callback, session){
+ //console.log("Inside Get User Information")
var options = {
host: GOOGLE_DOMAINS.APIS,
port: SSL_PORT,
@@ -141,7 +142,9 @@ GoogleProvider.prototype.getUserInformation = function(accessToken, callback, se
res.body += chunk;
})
res.on('end', function() {
+ //console.log("User Info Response: "+res.body)
session.userinfo = JSON.parse(res.body);
+ //console.log("User Info Response: "+JSON.stringify(session.userinfo))
callback();
})
})
View
@@ -1,6 +1,6 @@
{
"name": "bullettrain",
- "version": "1.0.11",
+ "version": "1.0.12",
"description": "Simple Ecommerce",
"keywords": [
"OpenShift",

0 comments on commit ab44ed0

Please sign in to comment.