1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-24 07:03:03 +02:00

Updated Setting up Authentication (markdown)

Nick Sweeting
2024-05-08 20:21:27 -07:00
parent ee621d0b31
commit 2f45d1b565

@@ -150,12 +150,6 @@ curl -X 'POST' \
-d '{"username": "YOURUSERNAMEHERE", "password": "YOURPASSWORDHERE"}'
```
#### Further Reading
- The ArchiveBox API auth source code: [`archivebox/api/auth.py`](https://github.com/ArchiveBox/ArchiveBox/blob/dev/archivebox/api/auth.py#:~:text=API_AUTH_METHODS) + [`archivebox/api/v1_auth.py`](https://github.com/ArchiveBox/ArchiveBox/blob/dev/archivebox/api/v1_auth.py)
- The [`django-ninja` auth docs](https://django-ninja.dev/guides/authentication/) (powers our API)
- The [Swagger auth docs](https://swagger.io/docs/specification/authentication/) for the interactive API Docs UI
<br/>
> [!TIP]
@@ -239,3 +233,11 @@ curl -X 'GET' \
-u 'YOURUSERNAMEHERE:YOURPASSWORDHERE'
-H 'accept: application/json'
```
<br/>
#### Further Reading
- The ArchiveBox API auth implementation: [`archivebox/api/auth.py`](https://github.com/ArchiveBox/ArchiveBox/blob/dev/archivebox/api/auth.py#:~:text=API_AUTH_METHODS) + [`archivebox/api/v1_auth.py`](https://github.com/ArchiveBox/ArchiveBox/blob/dev/archivebox/api/v1_auth.py)
- The [`django-ninja` auth docs](https://django-ninja.dev/guides/authentication/) (which powers our API)
- The [Swagger auth docs](https://swagger.io/docs/specification/authentication/) for the interactive API Docs UI