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