added some comments

This commit is contained in:
Mike Bannister
2012-07-29 20:39:35 -04:00
committed by Nick Martin
parent 03b7706134
commit ca609e5918
2 changed files with 6 additions and 0 deletions

View File

@@ -82,6 +82,8 @@ var querystring = __meteor_bootstrap__.require("querystring");
var config = Meteor.accounts[serviceName];
var oauth = new OAuth(config);
// If we get here with a callback url we need a request token to
// start the logic process
if (req.query.callbackUrl) {
// Get a request token to start auth process
@@ -91,6 +93,9 @@ var querystring = __meteor_bootstrap__.require("querystring");
res.writeHead(302, {'Location': redirectUrl});
res.end();
// If we get here without a callback url we've just
// returned from authentication via the oauth provider
} else {
// XXX does checking for the verifier really make sense?

View File

@@ -12,6 +12,7 @@
options: {
// XXX Figure out what to do here
email: identity.screen_name + '@OAUTH1_TWITTER',
// XXX Do we want to keep the accessTokenSecret also?
services: {twitter: {id: identity.id, accessToken: oauth.accessToken}}
},
extra: {name: identity.name}