Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.41 KB

external_auth.md

File metadata and controls

42 lines (28 loc) · 1.41 KB
page_title subcategory description
coder_external_auth Data Source - terraform-provider-coder
Use this data source to require users to authenticate with an external service prior to workspace creation. This can be used to pre-authenticate external services https://coder.com/docs/admin/external-auth in a workspace. (e.g. Google Cloud, Github, Docker, etc.)

coder_external_auth (Data Source)

Use this data source to require users to authenticate with an external service prior to workspace creation. This can be used to pre-authenticate external services in a workspace. (e.g. Google Cloud, Github, Docker, etc.)

Example Usage

provider "coder" {}


data "coder_external_auth" "github" {
  id = "github"
}

data "coder_external_auth" "azure-identity" {
  id       = "azure-identiy"
  optional = true
}

Schema

Required

  • id (String) The ID of a configured external auth provider set up in your Coder deployment.

Optional

  • optional (Boolean) Authenticating with the external auth provider is not required, and can be skipped by users when creating or updating workspaces

Read-Only

  • access_token (String) The access token returned by the external auth provider. This can be used to pre-authenticate command-line tools.