Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
SecurityBundle
SecurityBundle
....CrocosSecurityBundlehttps://github.com/crocos/CrocosSecurityBundle
CrocosSecurityBundle
class MyController{    /**      * @Secure      */    public function doAction()    {    }}
/**  * @Secure  */class MyController{     public function doAction()     {     }}
Secure(*)
/**  * @Secure  */class MyController{     /**       * @Secure(disabled=true)       */     public function doAction()     {...
Secure   disabled
/** * @Secure */class AppController {}class FooController    extends AppController {}class BarController   extends AppCont...
Secure
/**  * @Secure  * @SecureConfig(     forward=“Acme:My:login”)  */class MyController{     public function loginAction()    ...
SecureConfig  forwardforward
/** * @Secure * @SecureConfig(domain=“default”) */class UserController {}/** * @Secure * @SecureConfig(domain=“admin”) */c...
SecureConfig   domaindefaultadmin
/** * @Secure * @SecureConfig(auth=“facebook”) */class FacebookController {}
SecureConfig             auth           sessionfacebook       Facebook PHP SDK
SecurityContext               SecurityContextcrocos_security.context(DI       )
$context = $this->get(  ‘crocos_security.context’);$user = $userRepo->find(1);$context->login($user);$context->logout();
login()           IDlogout()
if ($context->isAuthenticated()) {    $user = $context->getUser();}
isAuthenticated()getUser()
GitHubhttps://github.com/crocos/CrocosSecurityBundleREADME
オレオレSecurityバンドル作っちゃいました
Upcoming SlideShare
Loading in …5
×

オレオレSecurityバンドル作っちゃいました

7,193 views

Published on

Published in: Technology, News & Politics
  • Be the first to comment

  • Be the first to like this

オレオレSecurityバンドル作っちゃいました

  1. 1. SecurityBundle
  2. 2. SecurityBundle
  3. 3. ....CrocosSecurityBundlehttps://github.com/crocos/CrocosSecurityBundle
  4. 4. CrocosSecurityBundle
  5. 5. class MyController{ /** * @Secure */ public function doAction() { }}
  6. 6. /** * @Secure */class MyController{ public function doAction() { }}
  7. 7. Secure(*)
  8. 8. /** * @Secure */class MyController{ /** * @Secure(disabled=true) */ public function doAction() { }}
  9. 9. Secure disabled
  10. 10. /** * @Secure */class AppController {}class FooController extends AppController {}class BarController extends AppController {}
  11. 11. Secure
  12. 12. /** * @Secure * @SecureConfig( forward=“Acme:My:login”) */class MyController{ public function loginAction() { }}
  13. 13. SecureConfig forwardforward
  14. 14. /** * @Secure * @SecureConfig(domain=“default”) */class UserController {}/** * @Secure * @SecureConfig(domain=“admin”) */class AdminController {}
  15. 15. SecureConfig domaindefaultadmin
  16. 16. /** * @Secure * @SecureConfig(auth=“facebook”) */class FacebookController {}
  17. 17. SecureConfig auth sessionfacebook Facebook PHP SDK
  18. 18. SecurityContext SecurityContextcrocos_security.context(DI )
  19. 19. $context = $this->get( ‘crocos_security.context’);$user = $userRepo->find(1);$context->login($user);$context->logout();
  20. 20. login() IDlogout()
  21. 21. if ($context->isAuthenticated()) { $user = $context->getUser();}
  22. 22. isAuthenticated()getUser()
  23. 23. GitHubhttps://github.com/crocos/CrocosSecurityBundleREADME

×