Coder Social home page Coder Social logo

Comments (13)

niallo avatar niallo commented on May 12, 2024

Hi,

For Github OAuth to be happy, all the URLs must match - the URLs in the config.js and the Github OAuth application. Common culprits for mismatch are the protocol (http vs https).

Please verify they all match up.

from strider.

ralfschimmel avatar ralfschimmel commented on May 12, 2024

They seem to match:

config.js contains:

// Server URL on the Internet
var sm = exports.strider_server_name = "https://strider-topicus.herokuapp.com/";

And Github app contains:

https://dl.dropbox.com/u/6675617/Screen%20Shot%202012-11-06%20at%2011.46.42%20.png

from strider.

ralfschimmel avatar ralfschimmel commented on May 12, 2024

Tested both http and https on all vars

from strider.

niallo avatar niallo commented on May 12, 2024

Can you try removing the trailing slash in the server name and seeing if that fixes it?

e.g.

var sm = exports.strider_server_name = "https://strider-topicus.herokuapp.com";

If that solves the issue, we can patch Strider to be less brittle in this regard.

from strider.

ralfschimmel avatar ralfschimmel commented on May 12, 2024

Indeed, that is the problem. I will not close it, seems to me you should fix this :-)

btw. now it works like a charm, first build + deploy is a fact, awesome work

from strider.

niallo avatar niallo commented on May 12, 2024

Yep, will definitely fix. Acknowledge the setup process is more annoying than it could be. I am working to improve this (web-based installer).

Glad Strider is working for you!

from strider.

acreeger avatar acreeger commented on May 12, 2024

This seems to be a redirect_uri_mismatch - is fixing this as simple as stripping the trailing slash where it is used in auth.js?

from strider.

niallo avatar niallo commented on May 12, 2024

Probably. Can you check the value of exports.strider_server_name in config.js on Heroku? (heroku run cat config.js or similar)

from strider.

acreeger avatar acreeger commented on May 12, 2024

Not sure I follow you... The contents of config.js in heroku is identical to what is commited to the repo. When the github connection breaks, strider_server_name has a trailling slash, and when I remove it, all is good.

I'm pretty sure I'm missing your point 😄

from strider.

niallo avatar niallo commented on May 12, 2024

I removed the trailing slash from config.js in master a moment ago. The web installer should write a value without a trailing slash, too.

So I just wanted to verify that was indeed the cause of your problem. Thanks for confirming!

from strider.

acreeger avatar acreeger commented on May 12, 2024

Ahh, got it. By the way, I used the manual install process (just so I could learn how this is all working). I'm just about to do a pull request that simply does a .replace(/\/+$/,"") to kill trailing slashes on line 115 in auth.js - this will handle the situation when someone changes the config manually. Or is that not a good idea?

from strider.

niallo avatar niallo commented on May 12, 2024

👍 +1 Yeah, I think that change definitely makes sense

from strider.

acreeger avatar acreeger commented on May 12, 2024

Ok, testing it out. Keep your eye out for a pull request.

On 25 January 2013 00:15, niallo [email protected] wrote:

+1 Yeah, I think that change definitely makes sense


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-12691722.

from strider.

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.