Skip to main content

Security Configurations

Cloud has the newest features. Some may not be in a release yet; the newest release is Integration 5.1.0.

Choreo Integration lets you configure authentication for integrations deployed as Integration as APIs or AI Agents. Each endpoint is secured with exactly one scheme at a time: API key or OAuth.

Supported security schemes​

SchemeDefault headerDescription
API keyX-API-KeyClients include a static key in a request header. Simple to set up and suitable for service-to-service calls.
OAuthAuthorizationClients obtain an access token and include it as a Bearer token.

The security header name is customizable for either scheme.

Configure security​

  1. Open your integration from the project home.

  2. On the integration overview page, click Configure security in the top-right corner.

    Integration overview page with the Configure security button highlighted

  3. If the integration exposes more than one endpoint, pick one from the Endpoints list.

  4. Select the Security scheme: API key or OAuth.

    Configure security panel with the API key scheme selected

    With OAuth, you also configure a token prefix, the key manager that must have issued the token, optional audiences, whether to forward the token to the backend, and per-operation scopes. See Configure security for an integration as an API for the full OAuth field reference.

  5. Click Apply to save the changes.

info

Changes apply immediately to the Development environment. To apply them to other environments, promote the integration.

Consume a secured API​

You can test the secured endpoint by navigating to the Test > Console page in left navigation.

To consume the API from an external client, first obtain a credential for the enabled scheme from the Developer Portal.

info

The Developer Portal needs to be created and set up from Choreo APIM.

API Key​

  1. In the integration overview, click Developer Portal.

  2. Subscribe to the API by selecting or creating an application.

  3. In your application, click Generate Key under the API Key column.

  4. Copy the generated key and include it in the configured security header of your requests:

    curl --request GET \
    --url <endpoint_url> \
    --header 'api-key: <your_api_key>'

OAuth2​

  1. In the integration overview, click Developer Portal.

  2. Subscribe to the API by selecting or creating an application.

  3. In your application, click Generate Key under the OAuth2 section.

  4. Use the generated credentials to obtain an access token, then include it as a Bearer token:

    curl --request GET \
    --url <endpoint_url> \
    --header 'Authorization: Bearer <access_token>'

What's next​

Was this page helpful?