3

I understand the concept of oauth for the most part. I've done quite a bit of research, but I'm having a lot of difficulty understanding how to use oauth to gain access to Gmail. I can't seem to find any concrete documentation for it.

I know there are a lot of node libraries for oauth, which one would you recommend me use? Is there any noob friendly tutorials for using node and oauth?

Just anything in general; I just need somewhere to start so I can understand how to apply oauth with nodejs.

I've used nodejs before, but I can't say I'm an expert in it.

Erwin
4,8113 gold badges34 silver badges42 bronze badges
asked Oct 9, 2012 at 20:07

1 Answer 1

4

First get an access token by following the Web Server Applications flow. You can check out node-oauth to accomplish this.

Then you need an IMAP library that supports Google's XOAUTH2 authentication mechanism. Fortunately there's node-imap, that recently added this.

answered Oct 9, 2012 at 21:18
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.