From e98b5876b8139c00f275846ed04722ec0846f1fb Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Thu, 19 Oct 2023 15:26:04 +0300 Subject: [PATCH] fix(docs): update external-auth docs to use `coder_external_auth` --- docs/admin/external-auth.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/admin/external-auth.md b/docs/admin/external-auth.md index 5b005cfe6e28c..73852a052201a 100644 --- a/docs/admin/external-auth.md +++ b/docs/admin/external-auth.md @@ -158,8 +158,8 @@ The following example will require users authenticate via GitHub and auto-clone a repo into the `~/coder` directory. ```hcl -data "coder_git_auth" "github" { - # Matches the ID of the git auth provider in Coder. +data "coder_external_auth" "github" { + # Matches the ID of the external auth provider in Coder. id = "github" } @@ -168,7 +168,7 @@ resource "coder_agent" "dev" { arch = "amd64" dir = "~/coder" env = { - GITHUB_TOKEN : data.coder_git_auth.github.access_token + GITHUB_TOKEN : data.coder_external_auth.github.access_token } startup_script = <