Git Product home page Git Product logo

Comments (16)

headwinds avatar headwinds commented on June 2, 2024 1

@aurelient awesome thank you - that also worked for me

Sadly, I wasn't quick enough to think to check here last night when I couldn't access my block but then I remembered in the morning primed with coffee. I really appreciate all the work you've done - It's one of my favourite sandboxes!

with errors like this, it might be nice to consider adding a common error screen which captures the error message that @curran shared as well as mentioning places to visit for advice like checking github issues. The home page could also benefit from a section like:

Having issues?

If you encounter any problems, please check our Github issues page and report the issue if it doesn't already exist.

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024 1

ok redirecting http to https is fixed 🎉 #225

not quite out of the woods on this one though. @enjalot when I click login, I see this error:

screen shot 2018-12-02 at 11 52 21 pm

AuthorizationError: The redirect_uri MUST match the registered callback URL for this application.
   at Strategy.OAuth2Strategy.authenticate (/home/ubuntu/blockbuilder/node_modules/passport-github/node_modules/passport-oauth2/lib/strategy.js:131:25)
   at attempt (/home/ubuntu/blockbuilder/node_modules/passport/lib/middleware/authenticate.js:348:16)
   at authenticate (/home/ubuntu/blockbuilder/node_modules/passport/lib/middleware/authenticate.js:349:7)
   at Layer.handle [as handle_request] (/home/ubuntu/blockbuilder/node_modules/express/lib/router/layer.js:95:5)
   at next (/home/ubuntu/blockbuilder/node_modules/express/lib/router/route.js:131:13)
   at Route.dispatch (/home/ubuntu/blockbuilder/node_modules/express/lib/router/route.js:112:3)
   at Layer.handle [as handle_request] (/home/ubuntu/blockbuilder/node_modules/express/lib/router/layer.js:95:5)
   at /home/ubuntu/blockbuilder/node_modules/express/lib/router/index.js:277:22
   at Function.process_params (/home/ubuntu/blockbuilder/node_modules/express/lib/router/index.js:330:12)
   at next (/home/ubuntu/blockbuilder/node_modules/express/lib/router/index.js:271:10)

from blockbuilder.

enjalot avatar enjalot commented on June 2, 2024 1

I got the error when I logged out and logged in again.
I'm wondering if we need to provide the full URI for the callbackURL here:

callbackURL: '/auth/github/callback'

so perhaps it should be "https://blockbuilder.org/auth/github/callback" instead of "/auth/github/callback"

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024

thanks for reporting this @curran

it looks like we need to pass an https redirect_uri to github during the oauth dance for https sessions.

related to #225 - if we redirect http to https, then I think we could just always use the https uri as the redirect_uri

from blockbuilder.

ymoran00 avatar ymoran00 commented on June 2, 2024

Happened too - can't login.

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024

hoping to have some bandwidth to fix this one soon.

from blockbuilder.

enjalot avatar enjalot commented on June 2, 2024

Ok, I've updated the redirect link on the github app to use https. We should probably deploy the redirect to https @micahstubbs

from blockbuilder.

eduardosuela avatar eduardosuela commented on June 2, 2024

Still getting the Authentication error. Yikes : ((

Congrats, by the way for the app

from blockbuilder.

aurelient avatar aurelient commented on June 2, 2024

@eduardosuela did you try loading blockbuilder with https:// instead of http:// ?

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024

@enjalot ack, will deploy the redirect to https this weekend. related issue for that #225

from blockbuilder.

eduardosuela avatar eduardosuela commented on June 2, 2024

@aurelient it works fine in https

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024

I like the idea of better error handling, and perhaps a FAQ entry too 💡

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024

@enjalot curious, can you check/update the redirect link on the github app one more time?

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024

weird, in an incognito tab, the redirect link seems to work fine. I see the github login page 🤔

screen shot 2018-12-02 at 11 57 30 pm

but then when I try to login, after I submit my github credentials it fails with the same AuthorizationError: The redirect_uri MUST match the registered callback URL for this application.

screen shot 2018-12-03 at 12 11 56 am

from blockbuilder.

enjalot avatar enjalot commented on June 2, 2024

This should work now, please confirm

from blockbuilder.

micahstubbs avatar micahstubbs commented on June 2, 2024

I am now able to log in with github on mobile Chrome. nice work @enjalot!

will close this one as fixed, and re-open if @curran @Fil or others report problems logging in later.

from blockbuilder.

Related Issues (20)

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.