CakePHP Online Meetup 2

CakePHP Online Meetup 2

Presentation used in the second cakephp online meetup May 20, 2020

Transcript

  1. CakePHP Online Meetup 2 Yes, we did it again Hosted

    by: Mark Story, Mark Scherer, Jorge González
  2. CakePHP Meetup 2 - 'Baking a new plugin and TDD

    for it' by Mark Scherer ~1h - 'Authorization plugin' by Jorge González ~1h - 'Pro-Debug with Xdebug + stepping through in IDE' by Jorge González ~20m - Mark Story will be around too and might be talking about common-table-expressions...
  3. Baking a new plugin And TDD for it @dereuromark, I

    choose you!
  4. About Jorge González @steinkelz • CakePHP Developer at CakeDC jorge.gonzalez@cakedc.com

    https:/ /www.cakedc.com • Trainer at Cake Software Foundation https:/ /training.cakephp.org
  5. Authorization Plugin • Project setup, quick existing authentication review https:/

    /github.com/CakeDC/cakephp4-unit-tests/tree/meetup 5
  6. Quick dev setup when you're not doing things right https:/

    /gist.github.com/steinkel/70e1051e5a60eea9d2e02839d1fe4345 Old, but still functional 6
  7. Authorization plugin - Plugin setup - Basic concepts - Middleware

    - Resolver - Policy - Component 7
  8. Creating policies - Plugin setup - Basic concepts - Middleware

    - Resolver - Policy - Component 8
  9. Code example - Add authorization for admin/tournaments - You can

    add new tournaments - You can browse tournaments you are in - You can view/edit tournaments you are in - Superadmin can only delete tournaments 9
  10. What if you only need RBAC - You don't want/care

    about fine grained permissions - You need endpoint RBAC decorated with some rules - THEN, consider some RBAC alternative - Like cakedc/auth - Like dereuromark/cakephp-tinyauth 10
  11. Step by step debugging • Using your IDE to debug

    issues 11
  12. @markstory, I choose you!

  13. Lightning Talks

  14. Q&A

  15. Thank you for attending!