- Issue created by @vipin.mittal18
- First commit to issue fork.
- First commit to issue fork.
- Merge request !35Draft: Resolve #3542913 "Support Key module integration with Acquia Optimize." → (Open) created by rajeshreeputra
- 🇮🇳India ankitv18
ankitv18 → changed the visibility of the branch 3542913-integration-with-key to hidden.
- 🇮🇳India rajeshreeputra Pune
Created MR with following:
- Add key module in dev dependency
- Update configuration form allowing to use the Key module to get api key.
- Manually created a simple authentication key using file key provider and used in config form for key based authentication.
- Added new getCredentials() to retrieve API key and url from keyValue or config as per key module used.
- Verified the functionality.
- Added test coverage for key module integration.
How to use key module with Acquia Optimize:
- Require and install key module.
- Create new key with file key provider or any other, I am using the file key provider to create the
Acquia Optimize credentials
key. - Add required details to file, i.e. api_key and api_url as json.
- Visit
/admin/config/content/acquia-optimize
:- You will see a new checkbox option(Use Key module for API key storage) under the API Key Configuration.
- Check the checkbox option.
- The API Key dropdown field will appear, allowing you to select the key from the list.
- Choose the
Acquia Optimize credentials
key. - Click on Save configurations.
- You will receive a success or error message based on the data in the file path provided in the key.
Remaining work:
- Update Acquia Optimize extention to support key module integration.