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
Copy file name to clipboardExpand all lines: docs/admin/external-auth.md
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,13 @@ You can now add the following code to any template. This will add a button to th
73
73
data "coder_external_auth" "<github|gitlab|azure-devops|bitbucket-cloud|bitbucket-server|etc>" {
74
74
id = "<USER_DEFINED_ID>"
75
75
}
76
+
77
+
# Github Example (CODER_EXTERNAL_AUTH_0_ID="github-auth")
78
+
# makes a github authentication token available at data.coder_external_auth.github.access_token
79
+
data "coder_external_auth" "github" {
80
+
id = "github-auth"
81
+
}
82
+
76
83
```
77
84
78
85
Inside your terraform code, you now have access to authentication variables. Reference the documentation for your chosen provider for more information on how to supply it with a token.
0 commit comments