Obtain an access token
Request
Your BOOM username
Your BOOM password
Response
JWT access token for authenticating requests
Token type, always
BearerToken expiration time in seconds (default: 604800 seconds / 7 days)
Using the access token
Include the access token in theAuthorization header of your requests:
Error responses
Invalid credentials
If the username or password is incorrect, you’ll receive a 401 Unauthorized response:Invalid request
For malformed requests, you’ll receive a 400 Bad Request response:Token expiration
JWT tokens expire after 7 days by default. This can be configured inconfig.yaml:
Configuration
Authentication settings are configured via environment variables:Secret key for signing JWT tokens. Must be set for security.
Username for the default admin account (default:
admin)Password for the default admin account. Must be set.
Email for the default admin account (default:
[email protected])Security best practices
- Store tokens securely and never expose them in client-side code
- Use HTTPS in production to encrypt token transmission
- Rotate your secret key periodically
- Set a strong admin password
- Request new tokens before they expire to maintain uninterrupted access