github authentication
It appears the devcontainer setup only supports cloning using https. However, for private repos I can't get github authentication to work.
In the coder web dashboard I can see I've connected github to my coder account.
And it seems like I should add something like the following to my template
data "coder_external_auth" "github" {
id = "github"
}
However, as soon as I do this when I push the template I get an error "Error: external auth provider "github" is not configured
"
export CODER_EXTERNAL_AUTH_0_TYPE="github"
export CODER_EXTERNAL_AUTH_0_CLIENT_ID=some_id
export CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=some_secret
export GOOGLE_APPLICATION_CREDENTIALS=/home/j/e/templates/gcp_auth.json
export TF_LOG="trace"
export TF_LOG_PATH=/tmp/terraform.log
coder server \
--oauth2-github-allowed-orgs=someorg \
--access-url https://someurl \
--enable-terraform-debug-mode
