Files
coder/scripts/apidocgen/markdown-template/security.def
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
365 B
Modula-2
Raw Normal View History

<!-- APIDOCGEN: BEGIN SECTION -->
2023-01-04 19:14:47 +01:00
# Authentication
Long-lived tokens can be generated to perform actions on behalf of your user account:
```shell
2023-01-04 19:14:47 +01:00
coder tokens create
```
You can use tokens with the Coder's REST API using the `Coder-Session-Token` HTTP header.
```console
2023-01-04 19:14:47 +01:00
curl 'http://coder-server:8080/api/v2/workspaces' \
-H 'Coder-Session-Token: *****'
```