Restore bearer token section under Installation, remove dead POSTMAN_GUIDE.md link

This commit is contained in:
root 2026-06-24 19:16:25 +00:00
parent 5c9c5d06ef
commit 45a29b7641

View file

@ -72,15 +72,25 @@ For building from source, see the [src/README.md](src/README.md) file.
AUTHELIA_API_DEVELOPMENT_MODE=true sudo ./install-authelia-api.sh AUTHELIA_API_DEVELOPMENT_MODE=true sudo ./install-authelia-api.sh
``` ```
**Get your bearer token:**
- **Docker:** The token is whatever you set as `session.secret` in your `configuration.yml`.
- **Bare metal:** Read it from your existing Authelia configuration:
```bash
grep -A2 "session:" /opt/authelia/configuration.yml | grep "secret:" | awk '{print $2}'
```
Then test the API:
```bash
curl -H "Authorization: Bearer YOUR_TOKEN" http://localhost:8080/api/health
```
## API Testing with Postman ## API Testing with Postman
Postman collection and environment files are provided for API testing: Postman collection and environment files are provided for API testing:
- `authelia-api.postman_collection.json` - Complete API collection - `authelia-api.postman_collection.json` - Complete API collection with all endpoints
- `authelia-api.postman_environment.json` - Environment variables - `authelia-api.postman_environment.json` - Environment variables (base URL, token)
- `POSTMAN_GUIDE.md` - Setup and usage guide
See [POSTMAN_GUIDE.md](POSTMAN_GUIDE.md) for detailed instructions.
## Files in This Repository ## Files in This Repository