Giter VIP home page Giter VIP logo

Comments (9)

aeneasr avatar aeneasr commented on June 26, 2024 1

Oh boy, looks like this is related to PassportJS, my eternal impossible-to-debug enemy. Not sure why passport is killing the request on callback...

from examples-archive.

aeneasr avatar aeneasr commented on June 26, 2024

I can reproduce this.

from examples-archive.

aeneasr avatar aeneasr commented on June 26, 2024

Hm...the CLI works fine hydra token user --client-id example-auth-code --client-secret secret --endpoint http://localhost:4444 --port 5555, not sure what's going on here...

from examples-archive.

aeneasr avatar aeneasr commented on June 26, 2024

Actually, I think this might have to do with how the browser handles cookies...are you in incognito mode or something?

from examples-archive.

aeneasr avatar aeneasr commented on June 26, 2024

I found the issue, if you call http://127.0.0.1:4477 it redirects you to localhost which then causes the cookies to fail because the host does not have the cookies. If you call http://localhost:4477/ then it works.

from examples-archive.

axife avatar axife commented on June 26, 2024

I have not used incognito mode. But it was Chrome not safari. Safari was used when hydra started and opened some URL automatically. I am not following you. When I open http://127.0.0.1:4477 it gives just HTML page with link and final error was on http://localhost:4477/auth/callback?code=SBOIQzPSKeMy3GmtzcCOV3H0cTBfRuYzY7zlZlNvPwA.Sm5hL36-kRH2Vq9w1DYfG9BYLdkFM5UwVEW5GViAI60&scope=offline%20openid%20articles.read&state=Z2VgU7vQAmSTIsBSsGI7DrV9

from examples-archive.

aeneasr avatar aeneasr commented on June 26, 2024

Yup, you need to open http://localhost:4477, not http://127.0.0.1:4477

from examples-archive.

axife avatar axife commented on June 26, 2024

It fixed it. Thanks!

from examples-archive.

aeneasr avatar aeneasr commented on June 26, 2024

Nice :)

from examples-archive.

Related Issues (16)

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.