Trying to get Git Auth to work for orgs.
Hi all,
Sorry for the basic question, but I'm trying to set up GitHub OAuth using the default Coder OAuth app (just for testing purposes) to allow others to join.
I followed the instructions here: https://coder.com/docs/admin/users/github-auth#default-configuration
My env:
Coder was installed via Docker Compose.
I also came across this related issue: https://github.com/coder/coder/issues/17752.
I'm trying to figure out whether this is a misconfiguration on my part or if it's just something that currently doesn’t work as expected.
Any help or guidance would be greatly appreciated, thanks in advance!
And apologies for this question, it’s been a bit of a rough week 🙇♂️ .
GitHub OAuth Setup Guide | Coder Docs
Set up GitHub OAuth for Coder, enabling GitHub and GitHub Enterprise authentication with OAuth app configuration and Helm deployment steps.
9 Replies
<#1384885353072038060>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
have you added any other env variables?
if not, follow this part and add
CODER_OAUTH2_GITHUB_CLIENT_ID
and CODER_OAUTH2_GITHUB_CLIENT_SECRET
after creating an OAuth app on GitHub (see https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/)I also tried that method and it did authenticate but not with my org in the permission list it showed me
No only coder wildcard and url for coder
those variables are required as well
so you should add them back, and then authorize the app in the org
GitHub Docs
Approving OAuth apps for your organization - GitHub Docs
When an organization member or outside collaborator requests OAuth app access to organization resources, organization owners can approve or deny the request.
Will try that
Thanks for bearing with me
Im just a bit overworked 😅
Hey Phorcys, just wanted to let you know that everything looks like it’s working now!
Really appreciate the guidance and patience!
My discord client does not show me the option to close this thread with the bot. Would you be willing to do that for me?

@Atif closed the thread.