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_ACCESS_URL: "https://workstations.mydomain.com"
CODER_WILDCARD_ACCESS_URL: "*.deployments.mydomain.com"
CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS: "true"
CODER_OAUTH2_GITHUB_ALLOWED_ORGS: "MyCompany"
CODER_ACCESS_URL: "https://workstations.mydomain.com"
CODER_WILDCARD_ACCESS_URL: "*.deployments.mydomain.com"
CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS: "true"
CODER_OAUTH2_GITHUB_ALLOWED_ORGS: "MyCompany"
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
coder/coder
Provision remote development environments via Terraform - coder/coder
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
Codercord
Codercord4mo ago
Codercord
Codercord4mo ago
<#1384885353072038060>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys4mo ago
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/)
LuCæm
LuCæmOP4mo ago
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
Phorcys
Phorcys4mo ago
those variables are required as well so you should add them back, and then authorize the app in the org
Phorcys
Phorcys4mo ago
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.
LuCæm
LuCæmOP4mo ago
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!
LuCæm
LuCæmOP4mo ago
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?
No description
Codercord
Codercord4mo ago
@Atif closed the thread.

Did you find this page helpful?