Bearer Token Authentication
Bearer token authentication is a common method for securing HTTP APIs.
How It Works
Bearer token authentication works as follows:
- You provide a token when configuring the connector
- The system includes this token in the
Authorizationheader of each request - The receiving API validates the token before processing the request
Configuration
To configure an HTTP connector with bearer token authentication:
- Select "Bearer Token" from the Authentication dropdown
- Enter your token in the Token field
- The system will automatically add the
Authorization: Bearer YOUR_TOKENheader to requests
Example
When a request is sent, the following header is included:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Token Security
Bearer tokens provide access to your API, so it's important to keep them secure:
- Store tokens securely
- Use tokens with appropriate permissions
- Rotate tokens regularly
- Revoke tokens when they're no longer needed
Testing the Connection
To test an HTTP connector with bearer token authentication:
- Configure the connector with the appropriate URL and token
- Click "Test Connection"
- Verify that the test request succeeds
- Check the response for any authentication errors