C
Coder.comā€¢2w ago
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"
}
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".
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
7 Replies
Codercord
Codercordā€¢2w ago
<#1329764444523335750>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcysā€¢2w ago
hey @Scott, which version of the Coder provider are you running?
Scott
ScottOPā€¢2w ago
You mean the Coder server? If yes, it's the latest. Ahh... Provider. Hmm.. wait. Oof. šŸ¤¦šŸ»ā€ā™‚ļø It's very old. I'll update tomorrow and yeah, that is more than likely the problem. Thanks once more @Phorcys
Phorcys
Phorcysā€¢2w ago
yeah that makes sense you'll probably have to edit your template as we have deprecated some of the resources mainly this -> https://discord.com/channels/747933592273027093/1313784155561000961/1314263213227118604
Scott
ScottOPā€¢7d ago
Ok. I got everything fixed, sort of. Using Git in VSCode to push to origin always requests a password entry. Do you by chance know how to fix that? It seems to be the Coder extension calling for the password. I can do the same git command in the terminal and everything works as expected. I fixed the issue with the password via git config credential.helper store, even though I'm not storing anything in it, it seems something with VSCode and the Coder extension needs it to be there so the password isn't requested. šŸ¤·šŸ»
Phorcys
Phorcysā€¢7d ago
pretty weird but good to know, thanks!
Codercord
Codercordā€¢7d ago
@Phorcys closed the thread.

Did you find this page helpful?