Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CakePHP Online Meetup 2

CakePHP Online Meetup 2

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

More Decks by Jorge M. González Martín

Other Decks in Programming

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. About Jorge González @steinkelz • CakePHP Developer at CakeDC [email protected]

    https:/ /www.cakedc.com • Trainer at Cake Software Foundation https:/ /training.cakephp.org
  4. Quick dev setup when you're not doing things right https:/

    /gist.github.com/steinkel/70e1051e5a60eea9d2e02839d1fe4345 Old, but still functional 6
  5. 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
  6. 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
  7. Q&A