4

I am using node.js for my application and I have to do user authentication via google. I have seen passport-google module but I did not get any idea from that and there is no variable for username and password.

One thing is that My application is desktop application .

Mithun Satheesh
27.9k14 gold badges80 silver badges103 bronze badges
asked Jan 23, 2013 at 5:27

2 Answers 2

6

You can either do it through OAuth or OpenID for both cases there are very detail examples on passport.js what else you need

for OAuth Example https://github.com/jaredhanson/passport-google-oauth/blob/master/examples/oauth2/app.js

for OpenID Example (deprecated) https://github.com/jaredhanson/passport-google/blob/master/examples/signon/app.js

I think they are quite self explantory..

tcurdt
16.1k10 gold badges62 silver badges74 bronze badges
answered Jan 23, 2013 at 9:23
Sign up to request clarification or add additional context in comments.

1 Comment

OAuth example seems to have moved here:github.com/jaredhanson/passport-google-oauth
2

googleapis module supports OAuth 2.0, there is a an example on https://github.com/google/google-api-nodejs-client/blob/master/examples/oauth2.js

answered Mar 10, 2013 at 21:13

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.