Added support for Google Talk & OAuth2 #85

merged 9 commits into from Oct 8, 2012


None yet

4 participants


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 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 '' 'ya29.AHESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

node-XMPP member

Great job.

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


Thanks! End of the month would be great.


Ohh! Great! I need this! :)


@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
@astro astro merged commit 08da061 into node-xmpp:master Oct 8, 2012
node-XMPP member

Thanks @statico

Sorry for the delay.


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

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