Skip to content

Fix Github authentication#601

Merged
bnfinet merged 1 commit intovouch:masterfrom
mig5:mig/fix-github-auth
Jul 23, 2025
Merged

Fix Github authentication#601
bnfinet merged 1 commit intovouch:masterfrom
mig5:mig/fix-github-auth

Conversation

@mig5
Copy link
Copy Markdown
Contributor

@mig5 mig5 commented Jul 23, 2025

Fixes #600

I don't fully understand my own fix! But from what I can gather:

  1. It's not necessary to tack on access_token as a query parameter to the API endpoints (I'm not sure if that's the underlying cause)

  2. Subtle change to the PrepareTokensAndClient in the provider - opts... was not being passed in. I have a feeling this was the true cause, that being it wasn't passing the ...oauth2.AuthCodeOption to that function and hence the 400 (the auth code was missing?) ? Maybe?

Anyway, with these changes, it's working for me now. I am using a simple config that is just 'whitelisting' my own Github username - didn't test teamWhiteList.

Note: ./do.sh test is failing but due to a separate test to due with TestValidateRequestHandlerPerf. I suspect it's a known, existing issue.

@bnfinet bnfinet merged commit 6cf86ad into vouch:master Jul 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Changes to Github OAuth flow for PKCE?

2 participants