mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-29 03:24:07 +00:00
doc: clarify how to create users and tokens
Signed-off-by: AJ ONeal <aj@therootcompany.com>
This commit is contained in:
parent
0d99234914
commit
a4cb1e3bfd
@ -6,10 +6,17 @@ I created this for integrations like Google Sheets (both loading and retrieving
|
|||||||
|
|
||||||
1. Setup some users and/or tokens and/or "guest"
|
1. Setup some users and/or tokens and/or "guest"
|
||||||
```sh
|
```sh
|
||||||
|
# create the ./credentials.tsv
|
||||||
csvauth init
|
csvauth init
|
||||||
csvauth store --roles '/' 'my-admin-user'
|
|
||||||
csvauth store --roles '/' --token 'an-admin-token'
|
# create a Basic Auth credential 'my-admin-user' with Full Access
|
||||||
csvauth store --roles 'GET:/public/ POST:/dropbox/' --ask-password 'guest'
|
csvauth store --roles '/' my-admin-user
|
||||||
|
|
||||||
|
# create a Bearer Token credential with the id 'an-admin-token' with Full Access
|
||||||
|
csvauth store --roles '/' --token an-admin-token
|
||||||
|
|
||||||
|
# create a limited Guest user (no password) with access to specific routes
|
||||||
|
csvauth store --roles 'GET:/public/ POST:/dropbox/' --ask-password guest
|
||||||
```
|
```
|
||||||
2. Stand up the proxy behind the TLS Proxy \
|
2. Stand up the proxy behind the TLS Proxy \
|
||||||
(snirouter, [Caddy](https://webinstall.dev/caddy), Traefik, Nginx+certbot, etc)
|
(snirouter, [Caddy](https://webinstall.dev/caddy), Traefik, Nginx+certbot, etc)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user