Des tonnes de modifications notamment VIM / Couleurs / typos
This commit is contained in:
41
notes/documentation/authentication.md
Normal file
41
notes/documentation/authentication.md
Normal file
@ -0,0 +1,41 @@
|
||||
---
|
||||
title: "Authentication Guide"
|
||||
date: "10-11-2025"
|
||||
last_modified: "10-11-2025:19:21"
|
||||
tags: ["documentation", "api", "security"]
|
||||
---
|
||||
|
||||
# Authentication
|
||||
|
||||
## Current Status
|
||||
|
||||
⚠️ No authentication currently implemented.
|
||||
|
||||
## Future Implementation
|
||||
|
||||
### JWT Tokens
|
||||
|
||||
```
|
||||
POST /api/auth/login
|
||||
{
|
||||
"username": "user",
|
||||
"password": "pass"
|
||||
}
|
||||
|
||||
Response:
|
||||
{
|
||||
"token": "eyJhbGc..."
|
||||
}
|
||||
```
|
||||
|
||||
### Bearer Token
|
||||
|
||||
```
|
||||
Authorization: Bearer eyJhbGc...
|
||||
```
|
||||
|
||||
## Security
|
||||
|
||||
- HTTPS only in production
|
||||
- Reverse proxy with nginx
|
||||
- Rate limiting
|
||||
Reference in New Issue
Block a user