Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Secure Delivery API Support #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tommarshall
Copy link

@tommarshall tommarshall commented Jun 11, 2024

Motivation

  • Kontent.ai now offers a "Secure access for Delivery API" feature on project environments, ref: https://kontent.ai/learn/docs/security/secure-access/javascript
  • When enabled the Delivery API requires an Authorization header with a Delivery API key.
  • This change adds support for that, so that the custom element can be used on projects that have "Secure access for Delivery API" enabled.

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

  1. Enable "Secure access for Delivery API" for within a Kontent.ai project environment.
  2. Generate a Delivery API key.
  3. Configure the custom element parameters to include the Delivery API key value as the apiKey in the config object.

* Kontent.ai now offers a "Secure access for Delivery API" feature on
  project environments, ref:
  https://kontent.ai/learn/docs/security/secure-access/javascript
* When enabled the Delivery API requires an Authorization header with a
  Delivery API key.
* This change adds support for that, so that the custom element can be
  used on projects that have "Secure access for Delivery API" enabled.
@tommarshall tommarshall changed the title Add secure Delivery API support Add Secure Delivery API Support Jun 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant