Skip to content

apply http data source service config to request #492

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

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

Conversation

shekharnwagh
Copy link
Contributor

The generic HTTP data source supports authentication configuration in the service config, including Bearer Token, Basic Auth, and API Key. Authentication headers are now properly applied to outgoing requests based on the configured authentication type -

  • Bearer Token: Adds to Authorization header with value Bearer {token}
  • Basic Auth: Adds to Authorization header with value Basic {base64_encoded_credentials}
  • API Key: Adds to Authorization header if add_to is header, or as a query parameter if add_to is queryparams

@shekharnwagh shekharnwagh self-assigned this May 1, 2025
@shekharnwagh shekharnwagh force-pushed the vipcms-1226-use-generic-http-config branch from 3290192 to 4dc0902 Compare May 1, 2025 00:30
Copy link
Contributor

github-actions bot commented May 1, 2025

Test this PR in WordPress Playground.

The generic http data source supports authentication config in the service config. This was not applied to the request, which now happens.
@shekharnwagh shekharnwagh force-pushed the vipcms-1226-use-generic-http-config branch from 4dc0902 to f7e3291 Compare May 1, 2025 00:33
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.

1 participant