Strider-CD / strider

Open Source Continuous Integration & Deployment Server
http://strider-cd.github.io/
4.59k stars 432 forks source link

Github Redirect URI Mismatch when trying to Link Github Account #342

Closed pigeonflight closed 10 years ago

pigeonflight commented 10 years ago

I'm running strider on my own server, when I attempt to link to github it alwasy redirects to localhost:3000

Even though my request looks like this:

https://github.com/login/oauth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fmyserver.com%2Fauth%2Fgithub%2Fcallback&scope=repo&client_id=.....

The specific URL that I get back is:

http://localhost:3000/auth/github/callback?error=redirect_uri_mismatch

I'm not sure where to configure the correct callback settings.

niallo commented 10 years ago

Have you created a new Github application? You need to do that, and configure it to redirect to your server. See the docs at https://github.com/Strider-CD/strider#configuring for which variables to configure.

pigeonflight commented 10 years ago

I've now setup a github application and it works. I used docker and in setting my SERVER_NAME variable I had to be very specific including the port number. Once I had that and my PLUGIN_GITHUB_APP_ID and PLUGIN_GITHUB_APP_SECRET it worked. Thanks much.

niallo commented 10 years ago

Excellent, glad you have it working now!