Added support for Google Talk & OAuth2 #85

Merged
merged 9 commits into from Oct 8, 2012

Projects

None yet

4 participants

@statico

Attached are modifications and an example script which will allow you to use node-xmpp with Google Talk using OAuth2.

To test:

  1. Go to the Google OAuth 2.0 Playground
  2. Input https://www.googleapis.com/auth/googletalk into the "Input your own scopes" field on the left and click "Authorize APIs"
  3. Click "Allow access" on the authorization page
  4. Click "Exchange authorization code for tokens"
  5. Copy the access_token value from the response
  6. Run the echo_bot_oauth.js example:

    node examples/echo_bot_oauth.js 'your.name@gmail.com' 'ya29.AHESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

@astro
node-XMPP member

Great job.

How much in a hurry are you? I'm on holiday til end of this month.

@statico

Thanks! End of the month would be great.

@renatoargh

Ohh! Great! I need this! :)

@datiecher

@statico thanks for adding this feature to node-xmpp! Can definitely put it to some good use.

@astro so how are things going with this PR? Will you be able to review and merge it? Looking forward to use this feature. :)

@astro astro added a commit that referenced this pull request Oct 8, 2012
@astro astro Merge branch 'oauth'
Github pull request #85
712c531
@astro astro merged commit 08da061 into node-xmpp:master Oct 8, 2012
@astro
node-XMPP member

Thanks @statico

Sorry for the delay.

@renatoargh

When is this feature going to be available via NPM? Thank you!

@astro
node-XMPP member

In general there's a lot of cleaning up and testing to be done before the next major node-xmpp release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment