Skip to main content

Bearer Token Authentication

Bearer token authentication is a common method for securing HTTP APIs.

How It Works​

Bearer token authentication works as follows:

  1. You provide a token when configuring the connector
  2. The system includes this token in the Authorization header of each request
  3. The receiving API validates the token before processing the request

Configuration​

To configure an HTTP connector with bearer token authentication:

  1. Select "Bearer Token" from the Authentication dropdown
  2. Enter your token in the Token field
  3. The system will automatically add the Authorization: Bearer YOUR_TOKEN header 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:

  1. Configure the connector with the appropriate URL and token
  2. Click "Test Connection"
  3. Verify that the test request succeeds
  4. Check the response for any authentication errors

Next: OAuth2 Authentication →