Skip to content

Commit 42c21d4

Browse files
authored
fix(docs): update external-auth docs to use coder_external_auth (#10347)
1 parent f677c44 commit 42c21d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/admin/external-auth.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ The following example will require users authenticate via GitHub and auto-clone
158158
a repo into the `~/coder` directory.
159159

160160
```hcl
161-
data "coder_git_auth" "github" {
162-
# Matches the ID of the git auth provider in Coder.
161+
data "coder_external_auth" "github" {
162+
# Matches the ID of the external auth provider in Coder.
163163
id = "github"
164164
}
165165
@@ -168,7 +168,7 @@ resource "coder_agent" "dev" {
168168
arch = "amd64"
169169
dir = "~/coder"
170170
env = {
171-
GITHUB_TOKEN : data.coder_git_auth.github.access_token
171+
GITHUB_TOKEN : data.coder_external_auth.github.access_token
172172
}
173173
startup_script = <<EOF
174174
if [ ! -d ~/coder ]; then

0 commit comments

Comments
 (0)