Skip to main content

OAuth2 Authentication

OAuth2 is a standard protocol for authorization that provides secure API access.

How It Works

OAuth2 authentication works as follows:

  1. You configure the OAuth2 settings for your connector
  2. The system obtains an access token from the authorization server
  3. This token is included in the Authorization header of each request
  4. The token is automatically refreshed when it expires

Configuration

To configure an HTTP connector with OAuth2 authentication:

  1. Select "OAuth2" from the Authentication dropdown
  2. Enter the following information:
    • Client ID
    • Client Secret
    • Token URL
    • Scope (optional)
  3. The system will handle token acquisition and renewal

OAuth2 Flow

The connector uses the OAuth2 Client Credentials flow:

  1. The system sends a request to the Token URL with the Client ID and Secret
  2. The authorization server returns an access token
  3. The system includes this token in the Authorization header of API requests
  4. When the token expires, the system automatically requests a new one

Example

When a request is sent, the following header is included:

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Security Considerations

When using OAuth2 authentication:

  • Keep your Client ID and Secret secure
  • Use HTTPS for all OAuth2 endpoints
  • Request only the scopes necessary for your integration
  • Implement proper token validation on your receiving end

Testing the Connection

To test an HTTP connector with OAuth2 authentication:

  1. Configure the connector with the appropriate OAuth2 settings
  2. Click "Test Connection"
  3. The system will attempt to obtain a token and make a test request
  4. Verify that the test succeeds
  5. Check the response for any authentication errors

Next: Custom Authentication →