From 45a29b7641ebad0e8d08cd8162e2fa545a731bb4 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 24 Jun 2026 19:16:25 +0000 Subject: [PATCH] Restore bearer token section under Installation, remove dead POSTMAN_GUIDE.md link --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7bb1026..ca3ca91 100644 --- a/README.md +++ b/README.md @@ -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 ``` +**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 Postman collection and environment files are provided for API testing: -- `authelia-api.postman_collection.json` - Complete API collection -- `authelia-api.postman_environment.json` - Environment variables -- `POSTMAN_GUIDE.md` - Setup and usage guide - -See [POSTMAN_GUIDE.md](POSTMAN_GUIDE.md) for detailed instructions. +- `authelia-api.postman_collection.json` - Complete API collection with all endpoints +- `authelia-api.postman_environment.json` - Environment variables (base URL, token) ## Files in This Repository