mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
added some comments
This commit is contained in:
committed by
Nick Martin
parent
03b7706134
commit
ca609e5918
@@ -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?
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user