Skip to content

fix(docs): update external-auth docs to use coder_external_auth #10347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(docs): update external-auth docs to use coder_external_auth
  • Loading branch information
matifali authored Oct 19, 2023
commit e98b5876b8139c00f275846ed04722ec0846f1fb
6 changes: 3 additions & 3 deletions docs/admin/external-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand All @@ -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 = <<EOF
if [ ! -d ~/coder ]; then
Expand Down