You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# generated by https://github.com/hashicorp/terraform-plugin-docs
3
+
page_title: "coder_external_auth Data Source - terraform-provider-coder"
4
+
subcategory: ""
5
+
description: |-
6
+
Use this data source to require users to authenticate with an external provider prior to workspace creation. This can be used to pre-authenticate external services in a workspace.
7
+
---
8
+
9
+
# coder_external_auth (Data Source)
10
+
11
+
Use this data source to require users to authenticate with an external provider prior to workspace creation. This can be used to pre-authenticate external services in a workspace.
12
+
13
+
14
+
15
+
<!-- schema generated by tfplugindocs -->
16
+
## Schema
17
+
18
+
### Required
19
+
20
+
-`id` (String) The ID of a configured external auth provider set up in your Coder deployment.
21
+
22
+
### Read-Only
23
+
24
+
-`access_token` (String) The access token returned by the external auth provider. This can be used to pre-authenticate command-line tools.
// externalAuthDataSource returns a schema for an external authentication data source.
13
+
funcexternalAuthDataSource() *schema.Resource {
14
+
return&schema.Resource{
15
+
Description: "Use this data source to require users to authenticate with an external provider prior to workspace creation. This can be used to pre-authenticate external services in a workspace.",
Copy file name to clipboardExpand all lines: provider/gitauth.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ import (
12
12
// gitAuthDataSource returns a schema for a Git authentication data source.
13
13
funcgitAuthDataSource() *schema.Resource {
14
14
return&schema.Resource{
15
-
Description: "Use this data source to require users to authenticate with a Git provider prior to workspace creation. This can be used to perform an authenticated `git clone` in startup scripts.",
15
+
DeprecationMessage: "Use the `coder_external_auth` data source instead.",
16
+
Description: "Use this data source to require users to authenticate with a Git provider prior to workspace creation. This can be used to perform an authenticated `git clone` in startup scripts.",
0 commit comments