Git Product home page Git Product logo

Comments (5)

supertinou avatar supertinou commented on July 30, 2024

Hi @barak-haviv,

Which value is set for the GITHUB_ACCESS_TOKEN_REQUEST_URL key in the client/sample.config.json ?
It should be the address of the NodeJS server (Usually http://localhost:9000/).

Once you are successfully authenticated to Github, Github OAuth is pass an authorization code to the AngularJS app and the AngularJS app reach the NodeJS server and pass this authorization token in order to authenticate the user.
Flow

from angularjs-hubbub.

niroshn avatar niroshn commented on July 30, 2024

i also face same problem .How to solve it ? plz update guideline?

from angularjs-hubbub.

karelbecerra avatar karelbecerra commented on July 30, 2024

Almost same issue. I changed a few things:

Gitup:
home url = http://localhost:9000
call back url = http://localhost:9000

config.json
"GITHUB_REDIRECT_URI": "http://localhost:9000",
"GITHUB_ACCESS_TOKEN_REQUEST_URL": "http://localhost:3000/auth/github",
"SERVER_URL": "http://localhost:3000/"

.env
GITHUB_REDIRECT_URI=http://localhost:9000
GITHUB_ACCESS_TOKEN_REQUEST_URL=http://localhost:3000/auth/github

Steps:
1- ok
2- ok
3- ok
4- ok
5- ok
?? Auth fails however I'm able to see the user row in users.db

from angularjs-hubbub.

carlo-arellano avatar carlo-arellano commented on July 30, 2024

Same issue here. I was able to successfully login on the app but somehow the app is kicking me away going back to login again. I am able to see logs at users.db file. What seems to be the issue here?

from angularjs-hubbub.

supertinou avatar supertinou commented on July 30, 2024

Hi @barak-haviv, @niroshannrsh, @karelbecerra, @aguirre1017
Please ensure that :

  • You have created your own PubNub application and are using your own credentials (publish key, subscribe_key, secret key)
  • The following add-ons are enabled for your PubNub application :
    PRESENCE, ACCESS MANAGER, STORAGE & PLAYBACK and STREAM CONTROLLER.
  • You have created you own Github OAuth2 app here : https://github.com/settings/developers
  • The Authorization callback URL
    screen shot 2016-11-14 at 12 02 13 am

matches exactly the value of the GITHUB_ACCESS_TOKEN_REQUEST_URL field specified in client/config.json and server/.env

Please let me know if it helped or if you are still facing the issue.

from angularjs-hubbub.

Related Issues (8)

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.