Coder.comC
Coder.comโ€ข13mo agoโ€ข
13 replies
Scott

Auth with Github

I'm trying to follow these instructions to get Github auth going so I can use git into a private repo (please correct me, if this isn't what it is meant for):

https://coder.com/docs/admin/external-auth#configure-a-github-oauth-app

However, when I add the code similar to what the instructions offer in my workspace template:

data "coder_external_auth" "github" {
   id = "primary-github"
}


I get this error from the template push.

2025-01-17 11:41:41.481+01:00 Terraform 1.9.8
2025-01-17 11:41:42.335+01:00 Error: Invalid data source
2025-01-17 11:41:42.335+01:00 on main.tf line 38, in data "coder_external_auth" "github":
2025-01-17 11:41:42.335+01:00   38: data "coder_external_auth" "github" {
2025-01-17 11:41:42.335+01:00
2025-01-17 11:41:42.335+01:00 The provider coder/coder does not support data source "coder_external_auth".

๐Ÿค”

Any suggestions on what I might be doing wrong?

Scott
Was this page helpful?