add token auth

This commit is contained in:
2021-06-13 19:41:32 +02:00
parent 51a1898176
commit ab792ab2aa
3 changed files with 52 additions and 3 deletions

View File

@ -52,6 +52,13 @@ curl -s \
http://localhost:5000/users/login | jq
```
```
curl -s \
-D "/dev/stderr" \
-H "Authorization: Bearer 22e6c5fc-8a5a-440e-b1f4-018deb9fd24e" \
http://localhost:5000/users/1/profile
```
### Produktionsumgebung
Für die Produktionsumgebung wird [waitress](https://docs.pylonsproject.org/projects/waitress/en/latest/) benutzt.