Skip to content

Commit 096326d

Browse files
committed
make lint/fmt
1 parent 625f3ba commit 096326d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/admin/external-auth.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=<OAuth app client secret>
2424
CODER_EXTERNAL_AUTH_0_DISPLAY_NAME="Google Calendar"
2525
CODER_EXTERNAL_AUTH_0_DISPLAY_ICON="https://mycustomicon.com/google.svg"
2626
```
27+
2728
The `CODER_EXTERNAL_AUTH_0_ID` environment variable is used for internal
2829
reference. Therefore, it can be set arbitrarily (e.g., `primary-github` for your
2930
GitHub provider).
@@ -32,7 +33,7 @@ You can now add the following code to any template. This will add a button to th
3233

3334
```tf
3435
data "coder_external_auth" "<github|gitlab|azure-devops|bitbucket-cloud|bitbucket-server|etc>" {
35-
id = "<USER_DEFINED_ID>"
36+
id = "<USER_DEFINED_ID>"
3637
}
3738
3839
# Github Example (CODER_EXTERNAL_AUTH_0_ID="github-auth")
@@ -46,13 +47,13 @@ data "coder_external_auth" "github" {
4647
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.
4748

4849
### Workspace CLI
50+
4951
An access token can be accessed within the workspace by using
5052

51-
```
53+
```shell
5254
coder external-auth <USER_DEFINED_ID> access-token
5355
```
5456

55-
5657
## GitHub
5758

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

0 commit comments

Comments
 (0)