Skip to content

Commit 92a6d37

Browse files
manually integrate code-review suggestion
1 parent 45ad599 commit 92a6d37

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/admin/external-auth.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal
2828
reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your
2929
GitHub provider).
3030

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-
3631
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.
3732

3833
```tf
@@ -50,6 +45,14 @@ data "coder_external_auth" "github" {
5045

5146
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.
5247

48+
### Workspace CLI
49+
An access token can be accessed within the workspace by using
50+
51+
```
52+
coder external-auth <USER_DEFINED_ID> access-token
53+
```
54+
55+
5356
## GitHub
5457

5558
> If you don't require fine-grained access control, it's easier to configure a

0 commit comments

Comments
 (0)