-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub OAuth fails to authenticate #780
Comments
Hi there! We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created. The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes. |
Is your |
Yes. This has been verified by multiple eyes. |
Could you include more details about your deployment and also the GitHub side of the configuration? Extra eyes won't hurt. :) |
Setup:Currently using Concourse Host machine: Windows Server 2012 R2, CPU: Intel E5-2640 v3, HyperV concourse-web: 2 CPU x 8GB RAM
concourse-worker (2): 2 CPU x 4GB RAM
Configuration:https://gist.github.com/erikatniche/a7ad81c11708195e50ac99e4619719eb I set up a tiered process using (Go) templates to create pipelines dynamically. The entry point is
Hope that helps! Let me know what else you need. |
Thanks! In this case it's more the config around Concourse itself and GitHub that I'd need to eyeball though. This would mean the flags for |
I had this issue confused with #781. My bad! Setting up the #!/bin/sh
apt-get update
apt-get -y install postgresql postgresql-contrib
sudo -u postgres createdb atc
sudo -u postgres psql -d atc -c "CREATE ROLE concourse WITH LOGIN PASSWORD 'concourse'"
wget -O /usr/bin/concourse "https://github.com/concourse/concourse/releases/download/v2.5.1/concourse_linux_amd64"
chmod +x /usr/bin/concourse
GITHUB_CLIENT_ID=$1
GITHUB_CLIENT_SECRET=$2
cat > /etc/init/web.conf << END
description "concourse web instance"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
script
concourse web \
--session-signing-key $(pwd)/session_signing_key \
--tsa-host-key $(pwd)/tsa_host_key \
--tsa-authorized-keys $(pwd)/authorized_worker_keys \
--external-url http://devvm-concourse:8080 \
--postgres-data-source postgres://concourse:concourse@localhost:5432/atc \
--github-auth-client-id $GITHUB_CLIENT_ID \
--github-auth-client-secret $GITHUB_CLIENT_SECRET \
--github-auth-organization <org> \
--basic-auth-username <username> \
--basic-auth-password <password> \
>> /var/log/concourse-web.log 2>&1
end script
END
service web start |
Can you paste the response of |
OK, so the API has it right. Looks like this is probably a bug with just the web UI then. Guessing Thanks; will prioritize this. |
I verified this is an issue with Erl (both the version we're using and latest) Filed sporto/erl#17 Even if this gets fixed upstream, would require us to upgrade to Elm 0.18 to fix it 😢 |
Hello again! All stories related to this issue have been accepted, so I'm going to automatically close this issue. At the time of writing, the following stories have been accepted:
If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary! |
Just updated to 2.7.0 but we still can't use Github OAuth. Created a new team with When trying to log in, we get successfully redirected to Github, where we need to log in / grant our app access to Github. Once this is done, we get redirected back to concourse, with the following call: Request URL: This call just times out after a while. It appears to do nothing at all. |
@pierrebeaucamp make sure your ATC can reach github (or your github instance). it needs to make API calls to it in order to verify that you have access. |
Hi I am still getting these errors. https://cicd-myapp.company-test.com/api/v1/teams/test/auth/methods The third request fails.
|
@richarddowner I don't think that's the same issue as this one ended up being. You don't have an auth URL that lacks a TLD. |
Hi @chendrix, sorry i was referring to @pierrebeaucamp issue, I am seeing the exact same problem he has. And have confirmed @vito suggestion of making sure the ATC (concourse web instance??) can reach github.com |
I see this problem as well but in a slightly different form.... concourse is setting the redirect uri as on the path, eg |
v2.4.0
When I click "login with GitHub" in Chrome, I am sent to an
about:blank
page with no network activity. When I click "login with GitHub" in Firefox, I am sent to a mangled URL:http://:8080devvm-concourse/auth/github?redirect=%2F&team_name=main
.When I fix the URL, it then prompts me for login info and I am able to continue to Concourse as expected. I can also paste the correct URL into Chrome, and it works just fine.
Furthermore, I was able to successfully login with my GitHub account using
fly
and the URL it provides.The text was updated successfully, but these errors were encountered: