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
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,6 @@ The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal
28
28
reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your
29
29
GitHub provider).
30
30
31
-
32
-
The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal
33
-
reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your
34
-
GitHub provider).
35
-
36
31
You can now add the following code to any template. This will add a button to the workspace setup page which will allow you to authenticate with your provider.
37
32
38
33
```tf
@@ -50,6 +45,14 @@ data "coder_external_auth" "github" {
50
45
51
46
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.
52
47
48
+
### Workspace CLI
49
+
An access token can be accessed within the workspace by using
0 commit comments