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

#129: Add support for configuring request methods on Protect endpoints #135

Merged
merged 7 commits into from
Feb 23, 2025

Conversation

nicumicle
Copy link
Owner

Issue Link

#129

Types of changes

  • Bug fix
  • New feature

Description

Add a new feature to protect specific endpoints by path, allowing selective access control. For example, this implementation enables you to restrict the POST /wp/wp/posts endpoint (preventing users from creating posts without authentication) while keeping the GET /wp/wp/posts endpoint accessible without authentication.

This MR does not introduce any breaking changes from the previous versions.

Checklist:

  • My code is tested.
  • I wrote tests for the impacted area
  • I ran composer check-plugin locally

@nicumicle nicumicle self-assigned this Feb 23, 2025
@nicumicle nicumicle added the feature-request New feature or request label Feb 23, 2025
@nicumicle nicumicle changed the title #129: Protect endpoints support for configuration request methods #129: Add support for configuration request methods on Protect endpoints Feb 23, 2025
@nicumicle nicumicle changed the title #129: Add support for configuration request methods on Protect endpoints #129: Add support for configuring request methods on Protect endpoints Feb 23, 2025
@nicumicle nicumicle merged commit 315d3b9 into master Feb 23, 2025
7 checks passed
@nicumicle nicumicle deleted the 129-protect-endpoints branch February 23, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant