mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
* docs: improve authentication page * Update docs/admin/automation.md Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> * Update docs/admin/automation.md Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> * Fix * Fix Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
15 lines
333 B
Markdown
15 lines
333 B
Markdown
# Authentication
|
|
|
|
Long-lived tokens can be generated to perform actions on behalf of your user account:
|
|
|
|
```console
|
|
coder tokens create
|
|
```
|
|
|
|
You can use tokens with the Coder's REST API using the `Coder-Session-Token` HTTP header.
|
|
|
|
```console
|
|
curl 'http://coder-server:8080/api/v2/workspaces' \
|
|
-H 'Coder-Session-Token: *****'
|
|
```
|