Comparing version 0.0.3 to 0.0.4
11
gdata.js
@@ -19,6 +19,9 @@ var querystring = require('querystring'); | ||
} else if(!req.query.code) { | ||
res.redirect(oauthBase + '/auth?' + querystring.stringify({client_id: clientID , | ||
redirect_uri: redirectURI, | ||
scope: scope, | ||
response_type: 'code'})); | ||
var height = 750; | ||
var width = 980; | ||
resp = "<script type='text/javascript'>var left= (screen.width / 2) - (" + width + " / 2); var top = (screen.height / 2) - (" + height + " / 2); window.open('" + oauthBase + '/auth?' + querystring.stringify({client_id: clientID, redirect_uri: redirectURI, scope: scope, response_type: 'code'}) + "', 'auth', 'menubar=no,toolbar=no,status=no,width=" + width + ",height=" + height + ",toolbar=no,left=' + left + 'top=' + top);</script>"; | ||
res.end(resp + '<a target=_new href=\'' + oauthBase + '/auth?' + querystring.stringify({client_id: clientID , | ||
redirect_uri: redirectURI, | ||
scope: scope, | ||
response_type: 'code'}) + '\'>Authenticate</a>'); | ||
} else { | ||
@@ -25,0 +28,0 @@ doPost({grant_type:'authorization_code', |
{ | ||
"name": "gdata-js", | ||
"description": "Simple OAuth 2.0 GData API client", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": "Simon Murtha-Smith <simon@murtha-smith.com>", | ||
@@ -6,0 +6,0 @@ "keywords": ["google", "gdata"], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19131
456