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

Add client_id to accounts/oauth_access_token #90

Merged

Conversation

n7studios
Copy link
Contributor

Summary

Adds the client_id parameter with the OAuth client ID when calling accounts/oauth_access_token to fetch an access token using a v3 API Key and Secret, ensuring the access token obtained is for the correct OAuth app.

PR for the API change here.

Testing

  • testGetAccessTokenByAPIKeyAndSecretWithInvalidClientID: Test that an expected WP_Error is returned when an invalid OAuth client ID is specified.
  • testGetAccessTokenByAPIKeyAndSecretWithBlankClientID: Test that an expected WP_Error is returned when a blank OAuth client ID is specified.

Checklist

@n7studios n7studios added the enhancement New feature or request label Mar 11, 2025
@n7studios n7studios self-assigned this Mar 11, 2025
@n7studios n7studios requested review from a team, noelherrick and corydhmiller and removed request for a team March 11, 2025 02:28
@n7studios n7studios marked this pull request as ready for review March 11, 2025 02:28
@n7studios n7studios merged commit e3c1c41 into tests-use-ubuntu-latest Mar 12, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants