Restore bearer token section under Installation, remove dead POSTMAN_GUIDE.md link
This commit is contained in:
parent
5c9c5d06ef
commit
45a29b7641
1 changed files with 15 additions and 5 deletions
20
README.md
20
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue