Configure multiple paths in Adobe Granite Bearer Authentication Handler for AEM

✨ This content is AI generated and could be inaccurate. Generative AI Terms

This article explains how to configure multiple API paths in the Adobe Granite Bearer Authentication Handler OSGi configuration to enable OAuth authentication for several endpoints in Adobe Experience Manager.

Description description

Environment

  • Adobe Experience Manager (AEM), all versions

Symptoms

When configuring the Adobe Granite Bearer Authentication Handler for OAuth, only a single API path appears to be accepted in the Path property. Attempts to add multiple paths are unclear, and only one path is recognized. No error messages or stack traces are reported.

Cause

The Path property in the OSGi configuration supports multiple values only when each path is entered on a separate line. Entering multiple paths in a single line or separated by commas will not work as intended.

Resolution resolution

Follow the steps below to resolve the issue.

  1. Access the AEM Web Console at https://<aem-host>:<port>/system/console/configMgr.

  2. Search for “Adobe Granite Bearer Authentication Handler” and click to edit the configuration.

  3. In the Path property field, add multiple paths by entering each path on a separate line (press Enter after each path).

    • Example:

    • /api/v1/resource1

    • /api/v1/resource2

    • /api/v2/resource3

  4. Save the configuration.

  5. Verify that all specified paths are listed as separate entries after saving.

  6. Test API requests to each path to confirm OAuth authentication is enforced as expected.

recommendation-more-help
experience-cloud-kcs-help-kbarticles