Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.63 KB

MigrationGuide.md

File metadata and controls

43 lines (34 loc) · 1.63 KB

Migration Guide

1.x to 2.x

  • Change namespace of Rules to CakeDC\Auth\Rbac\Rules, for example CakeDC\Auth\Rbac\Rules\Owner

3.x to 4.x

In this version we're using the cakephp/authentication and cakephp/authorization.

Please check Authentication and Authorization sections.

  • Added Authentication features with social, two-factor, form and cookie authenticators

  • Added Authorization features

  • Added social identifier

  • Added social middleware

  • Added one-time password middleware

  • Added rbac policy

  • Added superuser policy

  • Added social namespace compatible with OAuth1 and OAuth2 with many providers

    • Amazon
    • Facebook
    • Google
    • Instagram
    • Linkedin
    • Pinterest
    • Tumblr
    • Twitter
  • Removed ApiKeyAuthenticate in favor of cakephp/authentication TokenAuthenticator

  • Removed RememberMeAuthenticate.php in favor of CookieAuthenticator

  • Removed SimpleRbacAuthorize.php if favor of RbacPolicy with Request Authorization Middleware

  • Removed SuperuserAuthorize.php in favor of SuperuserPolicy

4.x to 5.x

  • Required cakephp 4
  • Renamed \CakeDC\Auth\Test\BaseTraitTest to \CakeDC\Auth\Test\BaseTestTrait