コード例 #1
0
 /**
  * Gets the 'security.firewall.map.context.main' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance.
  */
 protected function getSecurity_Firewall_Map_Context_MainService()
 {
     $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $b = $this->get('security.token_storage');
     $c = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $d = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $e = $this->get('http_kernel');
     $f = $this->get('security.authentication.manager');
     $g = new \Symfony\Component\HttpFoundation\RequestMatcher('^/adminQuizs');
     $h = new \Symfony\Component\Security\Http\AccessMap();
     $h->add($g, array(0 => 'ROLE_USER'), NULL);
     $i = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $i->createUser(new \Symfony\Component\Security\Core\User\User('user', 'userpass', array(0 => 'ROLE_USER')));
     $i->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'adminpass', array(0 => 'ROLE_ADMIN')));
     $j = new \Symfony\Component\Security\Http\HttpUtils($d, $d);
     $k = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $j, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($j, '/'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'logout'));
     $k->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler());
     $l = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($j, array());
     $l->setOptions(array('login_path' => '/login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false));
     $l->setProviderKey('main');
     $m = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($e, $j, array(), $a);
     $m->setOptions(array('login_path' => '/login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'));
     return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($h, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $i, 1 => $this->get('security.user.provider.concrete.main')), 'main', $a, $c), 2 => $k, 3 => new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $f, new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate'), $j, 'main', $l, $m, array('check_path' => 'login_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $c, NULL), 4 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '566e9bc216e399.45424227', $a, $f), 5 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $h, $f)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $j, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($e, $j, '/login', false), NULL, NULL, $a, false));
 }
コード例 #2
0
 protected function getSecurity_User_Provider_Concrete_InMemoryService()
 {
     $this->services['security.user.provider.concrete.in_memory'] = $instance = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('user', 'userpass', array(0 => 'ROLE_USER')));
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'adminpass', array(0 => 'ROLE_ADMIN')));
     return $instance;
 }
コード例 #3
0
 protected function getSecurity_User_Provider_Concrete_InMemoryService()
 {
     $this->services['security.user.provider.concrete.in_memory'] = $instance = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('ryan', '$2a$12$LCY0MefVIEc3TYPHV9SNnuzOfyr2p/AXIGoQJEDs4am4JwhNz/jli', array(0 => 'ROLE_USER')));
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('admin', '$2a$12$cyTWeE9kpq1PjqKFiWUZFuCRPwVyAZwm4XzMZ1qPUFl7/flCM3V0G', array(0 => 'ROLE_ADMIN')));
     return $instance;
 }
コード例 #4
0
 /**
  * Gets the 'security.user.provider.concrete.in_memory' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * This service is private.
  * If you want to be able to request this service from the container directly,
  * make it public, otherwise you might end up with broken code.
  *
  * @return \Symfony\Component\Security\Core\User\InMemoryUserProvider A Symfony\Component\Security\Core\User\InMemoryUserProvider instance.
  */
 protected function getSecurity_User_Provider_Concrete_InMemoryService()
 {
     $this->services['security.user.provider.concrete.in_memory'] = $instance = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('mathilde', 'mouton', array(0 => 'ROLE_ADMIN')));
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('benjamin', 'gaga', array(0 => 'ROLE_ADMIN')));
     return $instance;
 }
コード例 #5
0
 protected function getSecurity_Firewall_Map_Context_MainService()
 {
     $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $b = $this->get('security.context');
     $c = $this->get('fos_user.user_provider.username');
     $d = $this->get('event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $e = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $f = $this->get('http_kernel');
     $g = $this->get('security.authentication.manager');
     $h = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin');
     $i = new \Symfony\Component\Security\Http\AccessMap();
     $i->add($h, array(0 => 'ROLE_ADMIN'), NULL);
     $j = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $j->createUser(new \Symfony\Component\Security\Core\User\User('user', 'userpass', array(0 => 'ROLE_USER')));
     $j->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'adminpass', array(0 => 'ROLE_ADMIN')));
     $k = new \Symfony\Component\Security\Http\HttpUtils($e, $e);
     $l = new \Symfony\Component\Security\Http\RememberMe\TokenBasedRememberMeServices(array(0 => $c), 'chouchou', 'main', array('name' => 'REMEMBERME', 'lifetime' => 31536000, 'path' => '/', 'domain' => NULL, 'secure' => false, 'httponly' => true, 'always_remember_me' => false, 'remember_me_parameter' => '_remember_me'), $a);
     $m = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $k, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($k, '/accueil'), array('csrf_parameter' => '_csrf_token', 'intention' => 'logout', 'logout_path' => 'fos_user_security_logout'));
     $m->addHandler($l);
     $n = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($k, array());
     $n->setOptions(array('login_path' => 'fos_user_security_login', 'always_use_default_target_path' => true, 'default_target_path' => '/admin', 'target_path_parameter' => '_target_path', 'use_referer' => false));
     $n->setProviderKey('main');
     $o = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $k, array(), $a);
     $o->setOptions(array('login_path' => 'fos_user_security_login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'));
     $p = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, $this->get('security.authentication.session_strategy'), $k, 'main', $n, $o, array('check_path' => 'fos_user_security_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'intention' => 'authenticate', 'post_only' => true), $a, $d, NULL);
     $p->setRememberMeServices($l);
     return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($i, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $j, 1 => $c), 'main', $a, $d), 2 => $m, 3 => $p, 4 => new \Symfony\Component\Security\Http\Firewall\RememberMeListener($b, $l, $g, $a, $d, true), 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '5638b663aa0283.33037473', $a, $g), 6 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $i, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $k, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($f, $k, 'fos_user_security_login', false), NULL, NULL, $a));
 }
コード例 #6
0
 /**
  * Gets the 'security.user.provider.concrete.in_memory' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * This service is private.
  * If you want to be able to request this service from the container directly,
  * make it public, otherwise you might end up with broken code.
  *
  * @return \Symfony\Component\Security\Core\User\InMemoryUserProvider A Symfony\Component\Security\Core\User\InMemoryUserProvider instance.
  */
 protected function getSecurity_User_Provider_Concrete_InMemoryService()
 {
     $this->services['security.user.provider.concrete.in_memory'] = $instance = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'flugabone', array(0 => 'ROLE_ADMIN')));
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('moderateur', 'bernardo69', array(0 => 'ROLE_MODERATEUR')));
     return $instance;
 }
コード例 #7
0
ファイル: index.php プロジェクト: mlukman/gitsync
<?php

@(include_once __DIR__ . '/vendor/autoload.php') or @(include __DIR__ . '/composer/install.php') or die("Please run 'composer install' from command line interface");
// create new context
$context = new \GitSync\Context(__DIR__, 'https://github.com/MLukman/GitSync');
// create a new config
$config = new \GitSync\Config();
// add the context to the config
$config->addContext($context);
// create a new application
$app = new \GitSync\Application($config);
// To add security, first instantiate a user provider which provides the list of users to authenticate from
// The simplest is InMemoryUserProvider which we can use to hard-code the users
$userProvider = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
// Create users
// ROLE_ADMIN can access all contexts
$userProvider->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'admin123', array('ROLE_ADMIN')));
// Or for fine-grained access control, give it ROLE_USER
$userProvider->createUser(new \Symfony\Component\Security\Core\User\User('user01', 'user01', array('ROLE_USER')));
// and specifically allow it to access each context
$context->addAllowedUsername('user01');
// Then instantiate an authentication factory that can authenticate the users
// For plain text passwords, you can use
$authFactory = new \Securilex\Authentication\Factory\PlaintextPasswordAuthenticationFactory();
// Finally, activate security by passing both the authentication factory and user provider
$app->activateSecurity($authFactory, $userProvider);
// debug mode
$app['debug'] = true;
// let it run!
$app->run();
コード例 #8
0
 /**
  * Gets the 'security.firewall.map.context.public' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance.
  */
 protected function getSecurity_Firewall_Map_Context_PublicService()
 {
     $a = $this->get('monolog.logger.security');
     $b = $this->get('security.context');
     $c = $this->get('event_dispatcher');
     $d = $this->get('router');
     $e = $this->get('fos_facebook.api');
     $f = $this->get('security.authentication.manager');
     $g = new \Symfony\Component\HttpFoundation\RequestMatcher('^/login$');
     $h = new \Symfony\Component\HttpFoundation\RequestMatcher('^/register');
     $i = new \Symfony\Component\HttpFoundation\RequestMatcher('^/resetting');
     $j = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin/');
     $k = new \Symfony\Component\HttpFoundation\RequestMatcher('^/.*');
     $l = new \Symfony\Component\Security\Http\AccessMap();
     $l->add($g, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
     $l->add($h, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
     $l->add($i, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
     $l->add($j, array(0 => 'ROLE_ADMIN'), NULL);
     $l->add($k, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
     $m = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $m->createUser(new \Symfony\Component\Security\Core\User\User('user', 'userpass', array(0 => 'ROLE_USER')));
     $m->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'adminpass', array(0 => 'ROLE_ADMIN')));
     $n = new \Symfony\Component\Security\Http\HttpUtils($d);
     $o = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $n, '/logout', '/', NULL);
     $o->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler());
     $o->addHandler(new \FOS\FacebookBundle\Security\Logout\FacebookHandler($e));
     return $this->services['security.firewall.map.context.public'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($l, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $this->get('fos.facebook.user'), 1 => $m), 'public', $a, $c), 2 => $o, 3 => new \FOS\FacebookBundle\Security\Firewall\FacebookListener($b, $f, new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate'), $n, 'public', array('check_path' => '/login_check', 'login_path' => '/login', 'default_target_path' => '/', 'app_url' => 'http://apps.facebook.com/quorra/', 'server_url' => 'http://quorra.es/', 'use_forward' => false, 'always_use_default_target_path' => false, 'target_path_parameter' => '_target_path', 'use_referer' => false, 'failure_path' => NULL, 'failure_forward' => false, 'display' => 'page', 'create_user_if_not_exists' => false), NULL, NULL, $a, $c), 4 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '4f34f7a0a9300', $a), 5 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $l, $f, $a)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $n, new \FOS\FacebookBundle\Security\EntryPoint\FacebookAuthenticationEntryPoint($e, array('provider' => 'fos_facebook_user', 'check_path' => '/login_check', 'login_path' => '/login', 'default_target_path' => '/', 'app_url' => 'http://apps.facebook.com/quorra/', 'server_url' => 'http://quorra.es/', 'remember_me' => true, 'use_forward' => false, 'always_use_default_target_path' => false, 'target_path_parameter' => '_target_path', 'use_referer' => false, 'failure_path' => NULL, 'failure_forward' => false, 'display' => 'page', 'create_user_if_not_exists' => false), array(0 => 'email', 1 => 'user_birthday', 2 => 'user_location')), NULL, NULL, $a));
 }
コード例 #9
0
 protected function getSecurity_Authentication_ManagerService()
 {
     $a = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $a->createUser(new \Symfony\Component\Security\Core\User\User('restapi', 'secretpw', array(0 => 'ROLE_API')));
     $this->services['security.authentication.manager'] = $instance = new \Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager(array(0 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider($a, new \Symfony\Component\Security\Core\User\UserChecker(), 'main', $this->get('security.encoder_factory'), true), 1 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('56c03a54db9182.51638183')), true);
     $instance->setEventDispatcher($this->get('event_dispatcher'));
     return $instance;
 }
 /**
  * Gets the 'security.user.provider.concrete.in_memory' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * This service is private.
  * If you want to be able to request this service from the container directly,
  * make it public, otherwise you might end up with broken code.
  *
  * @return \Symfony\Component\Security\Core\User\InMemoryUserProvider A Symfony\Component\Security\Core\User\InMemoryUserProvider instance.
  */
 protected function getSecurity_User_Provider_Concrete_InMemoryService()
 {
     $this->services['security.user.provider.concrete.in_memory'] = $instance = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('admin123', '$2a$12$2d37yhcRvDyGRLJLRfCEAes7phHltJEXcIwmt0Bnw/673HhWyV4CS', array(0 => 'ROLE_ADMIN')));
     return $instance;
 }
コード例 #11
0
 /**
  * Gets the 'security.user.provider.concrete.in_memory' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * This service is private.
  * If you want to be able to request this service from the container directly,
  * make it public, otherwise you might end up with broken code.
  *
  * @return Symfony\Component\Security\Core\User\InMemoryUserProvider A Symfony\Component\Security\Core\User\InMemoryUserProvider instance.
  */
 protected function getSecurity_User_Provider_Concrete_InMemoryService()
 {
     $this->services['security.user.provider.concrete.in_memory'] = $instance = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('jerryml', 'jerryml01', array(0 => 'ROLE_USER')));
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('richpolis', 'D3m3s1s1', array(0 => 'ROLE_ADMIN')));
     return $instance;
 }
コード例 #12
0
 /**
  * Gets the 'security.user.provider.concrete.in_memory' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * This service is private.
  * If you want to be able to request this service from the container directly,
  * make it public, otherwise you might end up with broken code.
  *
  * @return \Symfony\Component\Security\Core\User\InMemoryUserProvider A Symfony\Component\Security\Core\User\InMemoryUserProvider instance.
  */
 protected function getSecurity_User_Provider_Concrete_InMemoryService()
 {
     $this->services['security.user.provider.concrete.in_memory'] = $instance = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('thoms', '$2a$04$jJ50NAUyFRnomRTJ1bHvmeQjeheSQqHKeo.AqWyC52.VxpUeDPJt6', array(0 => 'ROLE_ADMIN')));
     $instance->createUser(new \Symfony\Component\Security\Core\User\User('thathighman', '$2a$04$EccalG09JMvt08RG1oVZ4.bdQf4IbvkWUaNsKhAyuSL3.DI5olr1y', array(0 => 'ROLE_ADMIN')));
     return $instance;
 }
コード例 #13
0
 /**
  * Gets the 'security.firewall.map.context.main' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Symfony\Bundle\SecurityBundle\Security\FirewallContext A Symfony\Bundle\SecurityBundle\Security\FirewallContext instance
  */
 protected function getSecurity_Firewall_Map_Context_MainService()
 {
     $a = $this->get('monolog.logger.security', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $b = $this->get('security.token_storage');
     $c = $this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $d = $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE);
     $e = $this->get('http_kernel');
     $f = $this->get('security.authentication.manager');
     $g = new \Symfony\Component\HttpFoundation\RequestMatcher('^/login$');
     $h = new \Symfony\Component\HttpFoundation\RequestMatcher('^/register');
     $i = new \Symfony\Component\HttpFoundation\RequestMatcher('^/resetting');
     $j = new \Symfony\Component\HttpFoundation\RequestMatcher('^/backoffice');
     $k = new \Symfony\Component\HttpFoundation\RequestMatcher('^/choice');
     $l = new \Symfony\Component\Security\Http\AccessMap();
     $l->add($g, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
     $l->add($h, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
     $l->add($i, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
     $l->add($j, array(0 => 'ROLE_ADMIN'), NULL);
     $l->add($k, array(0 => 'ROLE_USER'), NULL);
     $m = new \Symfony\Component\Security\Core\User\InMemoryUserProvider();
     $m->createUser(new \Symfony\Component\Security\Core\User\User('user', 'userpass', array(0 => 'ROLE_USER')));
     $m->createUser(new \Symfony\Component\Security\Core\User\User('admin', 'adminpass', array(0 => 'ROLE_ADMIN')));
     $n = new \Symfony\Component\Security\Http\HttpUtils($d, $d);
     $o = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $n, $this->get('redirect.after.logout'), array('csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'logout', 'logout_path' => '/logout'));
     $o->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler());
     $p = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($e, $n, array(), $a);
     $p->setOptions(array('login_path' => '/login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'));
     return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($l, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => $m, 1 => $this->get('fos_user.user_provider.username')), 'main', $a, $c), 2 => $o, 3 => new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $f, $this->get('security.authentication.session_strategy'), $n, 'main', new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationSuccessHandler($this->get('redirect.after.login'), array('login_path' => '/login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false), 'main'), $p, array('check_path' => '/login_check', 'use_forward' => false, 'require_previous_session' => true, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'authenticate', 'post_only' => true), $a, $c, $this->get('form.csrf_provider')), 4 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '57939f8b776756.97644408', $a, $f), 5 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, $this->get('security.access.decision_manager'), $l, $f)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $this->get('security.authentication.trust_resolver'), $n, 'main', new \Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint($e, $n, '/login', false), '/error403', NULL, $a, false));
 }