Skip to content

Remove OAuth2 well-known discovery endpoints - #42

Open
roborourke wants to merge 1 commit into
mainfrom
remove/oauth2-well-known-discovery
Open

roborourke wants to merge 1 commit into
mainfrom
remove/oauth2-well-known-discovery

Conversation

@roborourke

Copy link
Copy Markdown
Collaborator

What does this change?

This removes the OAuth2 discovery endpoints from the plugin: /.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource. They don't fit well as a standalone feature here.

The same functionality is being upstreamed into WP-API/OAuth2 instead, next to the rest of the OAuth2 server code.

Removed:

  • inc/oauth2-discovery.php and its tests
  • The hm_oauth2_discovery_metadata and hm_oauth2_protected_resource_metadata filters, and their README docs
  • The discovery mention in the hm_rest_ability_login_wall_exemptions filter docs
  • The plugin header's description line about discovery

Testing instructions

  • composer lint and composer test pass
  • npm run test:e2e passes (if this touches plugin behaviour)
  • CHANGELOG.md updated under [Unreleased]

🤖 Generated with Claude Code

The OAuth2 authorization-server metadata (RFC 8414) and protected-
resource metadata (RFC 9728) discovery endpoints, served at
/.well-known/oauth-authorization-server and
/.well-known/oauth-protected-resource, don't fit well as a standalone
feature of this plugin. Equivalent functionality is being upstreamed
into WP-API/OAuth2 instead, where it belongs alongside the rest of the
OAuth2 server implementation.

This drops the discovery code, its filters
(hm_oauth2_discovery_metadata, hm_oauth2_protected_resource_metadata),
its mention in the hm_rest_ability_login_wall_exemptions filter docs,
and its tests. The now-moot "serve .well-known with trailing slash"
Unreleased changelog entry is replaced with a Removed entry pointing
at the upstream project.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 16, 2026

Copy link
Copy Markdown

Playwright test results

passed  27 passed

Details

stats  27 tests across 4 suites
duration  49.4 seconds
commit  1632af0

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