Giter Site home page Giter Site logo

oauth-playlist's Introduction

oauth-playlist's People

Contributors

mohammedfaragallah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oauth-playlist's Issues

app.js just hangs after signing in with google

Hi @iamshaunjp ,

Awesome videos on OAuth! I watched all 20 videos today and learnt a great deal.
I wanted to try running the finished app on my mac, but all the code in the different branches
gets stuck after signing into google. I tried branch lesson-15, and branch lesson-21.

It gets stuck here after I login successfully with google:

image

And if I try again to login, I don't get the google login dialog, and it just gets stuck:

image

Not sure why this is happening. When I use my google client id and secret with a small demo app that showcases passport-google-oauth20, it doesn't hang. So I know my credentials are good.

Any idea why it is getting stuck?

Any help is appreciated.

No code on repo?

I was directed here from your excellent YouTube list but I do not see any code? Only a README.md?

Code was already redeemed

Hello! I got a problem with the call back function, when i log in to my google account the page load for 3 minutes and return this error :

{ TokenError: Code was already redeemed.
at Strategy.OAuth2Strategy.parseErrorResponse (/Users/julien/Desktop/Dev/Node/passport/node_modules/passport-oauth2/lib/strategy.js:329:12)
at Strategy.OAuth2Strategy._createOAuthError (/Users/julien/Desktop/Dev/Node/passport/node_modules/passport-oauth2/lib/strategy.js:376:16)
at /Users/julien/Desktop/Dev/Node/passport/node_modules/passport-oauth2/lib/strategy.js:166:45
at /Users/julien/Desktop/Dev/Node/passport/node_modules/oauth/lib/oauth2.js:191:18
at passBackControl (/Users/julien/Desktop/Dev/Node/passport/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage. (/Users/julien/Desktop/Dev/Node/passport/node_modules/oauth/lib/oauth2.js:157:7)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
name: 'TokenError',
message: 'Code was already redeemed.',
code: 'invalid_grant',
uri: undefined,
status: 500 }

I have tried everything since 2days to resolve this error but the problem persists ...๏ปฟ
Thanks for your help ๐Ÿ™‚

Cookie Not Working

After login the first time, my user should be saved and the next time that I revisit the site it shouldn't ask my credentials again, but it keeps asking me to log in with Google and give permission to access to my data.

InternalOAuthError: Failed to obtain access token

`InternalOAuthError: Failed to obtain access token
at Strategy.OAuth2Strategy._createOAuthError (D:\nodejsServer\oauth-playlist\node_modules\passport-oauth2\lib\strategy.js:379:17)
at D:\nodejsServer\oauth-playlist\node_modules\passport-oauth2\lib\strategy.js:166:45
at D:\nodejsServer\oauth-playlist\node_modules\oauth\lib\oauth2.js:191:18
at ClientRequest. (D:\nodejsServer\oauth-playlist\node_modules\oauth\lib\oauth2.js:162:5)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at connectErrorNT (net.js:1021:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

After cloning the repo if I try to access the features inside lesson-15 branch then this error pops out.
Please help me out!!
Thanks`

lesson-12 Passport error: TokenError: Bad Request

This is related to this issue.

The error starts appearing on the lesson-12 branch.

After clicking the Google account to authenticate with, the app spins for a while before showing the below error:

TokenError: Bad Request
    at Strategy.OAuth2Strategy.parseErrorResponse (C:\Users\milliken\Documents\GitHub\learning\oauth-playlist\node_modules\passport-oauth2\lib\strategy.js:329:12)
    at Strategy.OAuth2Strategy._createOAuthError (C:\Users\milliken\Documents\GitHub\learning\oauth-playlist\node_modules\passport-oauth2\lib\strategy.js:376:16)
    at C:\Users\milliken\Documents\GitHub\learning\oauth-playlist\node_modules\passport-oauth2\lib\strategy.js:166:45
    at C:\Users\milliken\Documents\GitHub\learning\oauth-playlist\node_modules\oauth\lib\oauth2.js:191:18
    at passBackControl (C:\Users\milliken\Documents\GitHub\learning\oauth-playlist\node_modules\oauth\lib\oauth2.js:132:9)
    at IncomingMessage.<anonymous> (C:\Users\milliken\Documents\GitHub\learning\oauth-playlist\node_modules\oauth\lib\oauth2.js:157:7)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1081:12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.