Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitffd336b

Browse files
authored
docs: adjust order of options in external-auth (#16943)
from@NickSquangler > ($customer) noticed when setting up external auth with Gitlab that thecommand listed in the docs is in the incorrect order, as `coderexternal-auth <USER_DEFINED_ID> access-token` should be `coderexternal-auth access-token <USER_DEFINED_ID>`[preview](https://coder.com/docs/@external-auth-access-token/admin/external-auth#workspace-cli)<details><summary>coder external-auth access-token --help</summary>```shellcoder external-auth access-token --helpcoder v2.20.0+03b5012USAGE: coder external-auth access-token [flags] <provider> Print auth for an external provider Print an access-token for an external auth provider. The access-token will be validated and sent to stdout with exit code 0. If a valid access-token cannot be obtained, the URL to authenticate will be sent to stdout with exit code 1 - Ensure that the user is authenticated with GitHub before cloning.: $ #!/usr/bin/env sh OUTPUT=$(coder external-auth access-token github) if [ $? -eq 0 ]; then echo "Authenticated with GitHub" else echo "Please authenticate with GitHub:" echo $OUTPUT fi - Obtain an extra property of an access token for additional metadata.: $ coder external-auth access-token slack --extra "authed_user.id"OPTIONS: --extra string Extract a field from the "extra" properties of the OAuth token.———Run `coder --help` for a list of global options.```</details>Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
1 parenta2131a7 commitffd336b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/admin/external-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Inside your Terraform code, you now have access to authentication variables. Ref
5959
Use[`external-auth`](../reference/cli/external-auth.md) in the Coder CLI to access a token within the workspace:
6060

6161
```shell
62-
coder external-auth<USER_DEFINED_ID>access-token
62+
coder external-auth access-token<USER_DEFINED_ID>
6363
```
6464

6565
##Git-provider specific env variables

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp