Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

MWPW-134761 Authenticated Preview/Publish API calls for restricted sites #54

Merged

Conversation

raga-adbe-gh
Copy link
Collaborator

Moved the helix admin function out of utils to helixUtils. Updated preview/publish to pass the Authorization code, if the key is defined in config.

Below config to be added to .env
HELIX_ADMIN_API_KEYS={"cc": "", "cc-pink": ""}

Checked for below, With Preview Enabled (on CC / CC-Pink)
Non Protected Site (CC-Pink - No Key) - Preview passed
Protected Site (CC) with valid Key - Preview passed
Protected Site (CC) with Invalid/Missing Key - Preview failed and logged in xlsx

Preview/Publish is disabled back till the bulk API is ready.

Resolves: MWPW-134761

Moved the helix admin function out of utils to helixUtils. Updated preview/publish to pass the Authorization code, if the key is defined in config.

Below config to be added to .env
HELIX_ADMIN_API_KEYS={"cc": "<cc key>", "cc-pink": "<cc key>"}

Checked for below, With Preview Enabled (on CC / CC-Pink)
Non Protected Site (CC-Pink - No Key) - Preview passed
Protected Site (CC) with valid Key - Preview passed
Protected Site (CC) with Invalid/Missing Key - Preview failed and logged in xlsx

Preview/Publish is disabled back till the bulk API is fixed.
@sukamat sukamat merged commit ddf8c2f into adobecom:main Sep 7, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants