Skip to content

Feature/44492 cake4 - #2

Merged
ACampanario merged 66 commits into
CakeDC:1.next-cake4from
ACampanario:feature/44492-cake4
Nov 19, 2026
Merged

ACampanario merged 66 commits into
CakeDC:1.next-cake4from
ACampanario:feature/44492-cake4

Conversation

@ACampanario

@ACampanario ACampanario commented Nov 19, 2026 •

Copy link
Copy Markdown

Ports 2.1.1 to CakePHP 4.5+ and replaces the 1.next-cake4 prototype. Tag 1.1.0 after merge. Do not reuse 1.0.0: it is the CakePHP 5 code tagged by mistake.

Not ported (needs CakePHP 5): OAuth 2.1, which means the oauth and external auth modes, the protected resource metadata, the scope policy and assertMcpInsufficientScope(). Only host mode remains. Any other mode fails at bootstrap. The README lists this under "Not available in 1.x".

Main changes from 2.1.1:

  • PSR-17 factories from laminas-diactoros, CakePHP 4 log scope semantics in mcp check, PHPUnit 9 and Authentication 2.
  • Requires psr/log ^2 || ^3.
  • PHP 8.2 and 8.3 only, because laminas-diactoros 2.x does not install on PHP 8.4.

Verified:

  • 235 tests pass with the highest and lowest dependencies.
  • phpcs and PHPStan level 8 pass.
  • The MCP conformance suite passes: 80/80 and 152/152.

ajibarra and others added 24 commits October 16, 2026 16:15
Reject null, false and scalar identities from Mcp.auth.identity, expand
oauth test scopes with the declared resource's implies, add
McpConfig::rbacPermissions(), make mcp check read the cakedc/users
authenticators and guard the oauth plugin class.
 2.x: rebuild on mcp/sdk and OAuth 2.1 support
- One 2.0.0 entry for the rewrite and OAuth 2.1 (the 1.0.0 tag was this code by mistake).
- mcp check reads Token authenticators of cakedc/cakephp-oauth-server 1.0.0 that protect several resources.
- Install docs for the stable oauth packages on Packagist; CI checks them out at 1.0.0.
…authentication, cakedc/auth and migrations, drop the OAuth and JWT dependencies, and run CI on 1.next-cake4 with PHP 8.2 to 8.4
…5: only host mode is left, any other Mcp.auth.mode fails at bootstrap and in mcp check, and the OAuth tests, fixtures and docs are deleted
…, no Plugin::setCollection(), read multiple console options from their raw value; PHPStan level 8 and phpcs pass
…: data providers as annotations, the command runner for console tests, Authentication 2 identifiers and laminas-diactoros factories; mcp check and the docs follow the CakePHP 4 log scopes (false takes only unscoped messages)
…/log 1, which CakePHP 4.5 still allows with the lowest dependencies
…ion 2 identifiers and CakePHP 4 queries in the examples, what is not available in 1.x, and the 1.1.0 changelog
…diactoros 2.x, which does not install on PHP 8.4; the controller docblock names host mode only, and the changelog marks the 2.x entries as that line's history
@ACampanario
ACampanario requested a review from steinkel November 19, 2026 13:31
Comment thread composer.json Resolved
@ACampanario
ACampanario merged commit 089cdf5 into CakeDC:1.next-cake4 Nov 19, 2026
5 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.

3 participants