Commit 7e5ad2db authored by Achraf Gharbi's avatar Achraf Gharbi
Browse files

Corrections

parent 6111f9a2
This diff is collapsed.
......@@ -28,7 +28,7 @@
</div>
<div class="container"> <!-- Second box to add the login button -->
<div class="col-lg-4 col-lg-push-4 col-sm-4 col-sm-push-4">
<a href="zone_login.php" target="_blank"> <!-- php page where the user gets to login -->
<a href="" target="_blank"> <!-- php page where the user gets to login -->
<l>Login</l>
</a>
</div>
......
......@@ -25,17 +25,17 @@ fos_user_profile:
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
prefix: /profile
fos_user_register:
resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
prefix: /register
fos_user_resetting:
resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
prefix: /resetting
fos_user_change_password:
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
prefix: /profile
#fos_user_register:
# resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
# prefix: /register
#
#fos_user_resetting:
# resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
# prefix: /resetting
#
#fos_user_change_password:
# resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
# prefix: /profile
#HWIOAuthBundle routes
hwi_oauth_security:
......
......@@ -5,8 +5,8 @@ security:
FOS\UserBundle\Model\UserInterface: bcrypt
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: ROLE_ADMIN
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: ROLE_ADMIN
# http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
providers:
......@@ -31,11 +31,11 @@ security:
# form_login: ~
# a
pattern: ^/
form_login:
provider: fos_userbundle
csrf_token_generator: security.csrf.token_manager
login_path: /login
check_path: /login_check
# form_login:
# provider: fos_userbundle
# csrf_token_generator: security.csrf.token_manager
# login_path: /login
# check_path: /login_check
oauth:
resource_owners:
......@@ -45,7 +45,11 @@ security:
oauth_user_provider:
service: myecp_user_provider
logout: true
logout:
path: /logout
target: /
delete_cookies:
PHPSESSID : {path: null, domain: null}
anonymous: true
login:
......
......@@ -20,7 +20,6 @@ class FOSUBPersonnesProvider extends BaseClass
*/
public function connect(UserInterface $user, UserResponseInterface $response)
{
print("accc");
$property = $this->getProperty($response);
$username = $response->getUsername();
......@@ -30,10 +29,8 @@ class FOSUBPersonnesProvider extends BaseClass
$setter = 'set'.ucfirst($service);
$setter_id = $setter.'Id';
$setter_token = $setter.'AccessToken';
//we "disconnect" previously connected users
if (null !== $previousUser = $this->userManager->findUserBy(array($property => $username))) {
// if (null !== $previousUser = $this->userManager->findUserBy(array("myecpId" => $username))) {
$previousUser->$setter_id(null);
$previousUser->$setter_token(null);
$this->userManager->updateUser($previousUser);
......@@ -54,7 +51,6 @@ class FOSUBPersonnesProvider extends BaseClass
print("avc");
$username = $response->getUsername();
$user = $this->userManager->findUserBy(array($this->getProperty($response) => $username));
// $user = $this->userManager->findUserBy(array("myecpId" => $username));
//when the user is registrating
if (null === $user) {
$service = $response->getResourceOwner()->getName();
......
......@@ -133,7 +133,6 @@ class appDevDebugProjectContainer extends Container
'fos_user.security.interactive_login_listener' => 'getFosUser_Security_InteractiveLoginListenerService',
'fos_user.security.login_manager' => 'getFosUser_Security_LoginManagerService',
'fos_user.user_manager' => 'getFosUser_UserManagerService',
'fos_user.user_provider.username' => 'getFosUser_UserProvider_UsernameService',
'fos_user.username_form_type' => 'getFosUser_UsernameFormTypeService',
'fos_user.util.canonical_fields_updater' => 'getFosUser_Util_CanonicalFieldsUpdaterService',
'fos_user.util.email_canonicalizer' => 'getFosUser_Util_EmailCanonicalizerService',
......@@ -302,7 +301,6 @@ class appDevDebugProjectContainer extends Container
'debug.security.access.decision_manager' => true,
'doctrine.dbal.logger.profiling.default' => true,
'form.server_params' => true,
'fos_user.user_provider.username' => true,
'fos_user.util.canonical_fields_updater' => true,
'fos_user.util.password_updater' => true,
'monolog.processor.psr_log_message' => true,
......@@ -447,7 +445,7 @@ class appDevDebugProjectContainer extends Container
*/
protected function getCache_SystemService()
{
return $this->services['cache.system'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('xrVMhik3Ft', 0, 'nXkhKbZtHZcUoRh1MJug5k', (__DIR__.'/pools'), $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE));
return $this->services['cache.system'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('xrVMhik3Ft', 0, 'XocYru6s7oPm3c9ie9oTgp', (__DIR__.'/pools'), $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}
/**
......@@ -478,7 +476,7 @@ class appDevDebugProjectContainer extends Container
$c = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder($a, $b, ($this->targetDirs[3].'/app/Resources'));
return $this->services['cache_warmer'] = new \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate(array(0 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer($c, ${($_ = isset($this->services['templating.locator']) ? $this->services['templating.locator'] : $this->getTemplating_LocatorService()) && false ?: '_'}), 1 => $this->get('kernel.class_cache.cache_warmer'), 2 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer($this->get('translator')), 3 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer($this->get('validator.builder'), (__DIR__.'/validation.php'), \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('wTaEpFVuSs', 0, 'nXkhKbZtHZcUoRh1MJug5k', (__DIR__.'/pools'), $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE))), 4 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer($this->get('router')), 5 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\AnnotationsCacheWarmer(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, (__DIR__.'/annotations.php'), ${($_ = isset($this->services['cache.annotations']) ? $this->services['cache.annotations'] : $this->getCache_AnnotationsService()) && false ?: '_'}), 6 => new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheCacheWarmer($this, $c, array()), 7 => new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer($this->get('twig'), new \Symfony\Bundle\TwigBundle\TemplateIterator($a, ($this->targetDirs[3].'/app'), array())), 8 => new \Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer($this->get('doctrine'))));
return $this->services['cache_warmer'] = new \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate(array(0 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer($c, ${($_ = isset($this->services['templating.locator']) ? $this->services['templating.locator'] : $this->getTemplating_LocatorService()) && false ?: '_'}), 1 => $this->get('kernel.class_cache.cache_warmer'), 2 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer($this->get('translator')), 3 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer($this->get('validator.builder'), (__DIR__.'/validation.php'), \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('wTaEpFVuSs', 0, 'XocYru6s7oPm3c9ie9oTgp', (__DIR__.'/pools'), $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE))), 4 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer($this->get('router')), 5 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\AnnotationsCacheWarmer(${($_ = isset($this->services['annotations.reader']) ? $this->services['annotations.reader'] : $this->getAnnotations_ReaderService()) && false ?: '_'}, (__DIR__.'/annotations.php'), ${($_ = isset($this->services['cache.annotations']) ? $this->services['cache.annotations'] : $this->getCache_AnnotationsService()) && false ?: '_'}), 6 => new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheCacheWarmer($this, $c, array()), 7 => new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer($this->get('twig'), new \Symfony\Bundle\TwigBundle\TemplateIterator($a, ($this->targetDirs[3].'/app'), array())), 8 => new \Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer($this->get('doctrine'))));
}
/**
......@@ -2713,44 +2711,37 @@ class appDevDebugProjectContainer extends Container
$e = ${($_ = isset($this->services['security.http_utils']) ? $this->services['security.http_utils'] : $this->getSecurity_HttpUtilsService()) && false ?: '_'};
$f = $this->get('http_kernel');
$g = ${($_ = isset($this->services['security.authentication.manager']) ? $this->services['security.authentication.manager'] : $this->getSecurity_Authentication_ManagerService()) && false ?: '_'};
$h = ${($_ = isset($this->services['security.authentication.session_strategy']) ? $this->services['security.authentication.session_strategy'] : $this->getSecurity_Authentication_SessionStrategyService()) && false ?: '_'};
$i = new \Symfony\Component\HttpFoundation\RequestMatcher('^/login');
$h = new \Symfony\Component\HttpFoundation\RequestMatcher('^/login');
$j = new \Symfony\Component\HttpFoundation\RequestMatcher('^/register');
$i = new \Symfony\Component\HttpFoundation\RequestMatcher('^/register');
$k = new \Symfony\Component\HttpFoundation\RequestMatcher('^/resetting');
$j = new \Symfony\Component\HttpFoundation\RequestMatcher('^/resetting');
$l = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin/');
$k = new \Symfony\Component\HttpFoundation\RequestMatcher('^/admin/');
$m = new \Symfony\Component\Security\Http\AccessMap();
$m->add($i, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
$m->add($j, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
$m->add($k, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
$m->add($l, array(0 => 'ROLE_ADMIN'), NULL);
$l = new \Symfony\Component\Security\Http\AccessMap();
$l->add($h, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
$l->add($i, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
$l->add($j, array(0 => 'IS_AUTHENTICATED_ANONYMOUSLY'), NULL);
$l->add($k, array(0 => 'ROLE_ADMIN'), NULL);
$n = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $e, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($e, '/'), array('csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'logout', 'logout_path' => '/logout'));
$n->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler());
$m = new \Symfony\Component\Security\Http\Firewall\LogoutListener($b, $e, new \Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler($e, '/'), array('csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'logout', 'logout_path' => '/logout'));
$m->addHandler(new \Symfony\Component\Security\Http\Logout\SessionLogoutHandler());
$m->addHandler(new \Symfony\Component\Security\Http\Logout\CookieClearingLogoutHandler(array('PHPSESSID' => array('path' => NULL, 'domain' => NULL))));
$o = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($e, array());
$o->setOptions(array('login_path' => '/login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false));
$o->setProviderKey('main');
$n = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($e, array());
$n->setOptions(array('login_path' => '/login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false));
$n->setProviderKey('main');
$p = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $e, array(), $a);
$p->setOptions(array('login_path' => '/login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'));
$o = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $e, array(), $a);
$o->setOptions(array('login_path' => '/login', 'failure_path' => '/login', 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'));
$q = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($e, array());
$q->setOptions(array('login_path' => '/login', 'always_use_default_target_path' => false, 'default_target_path' => '/', 'target_path_parameter' => '_target_path', 'use_referer' => false));
$q->setProviderKey('main');
$p = new \HWI\Bundle\OAuthBundle\Security\Http\Firewall\OAuthListener($b, $g, ${($_ = isset($this->services['security.authentication.session_strategy']) ? $this->services['security.authentication.session_strategy'] : $this->getSecurity_Authentication_SessionStrategyService()) && false ?: '_'}, $e, 'main', $n, $o, array('check_path' => '/login_check', 'use_forward' => false, 'require_previous_session' => true), $a, $c);
$p->setResourceOwnerMap($this->get('hwi_oauth.resource_ownermap.main'));
$p->setCheckPaths(array(0 => '/login/check'));
$r = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($f, $e, array(), $a);
$r->setOptions(array('login_path' => '/login', 'failure_path' => '/login', 'failure_forward' => false, 'failure_path_parameter' => '_failure_path'));
$s = new \HWI\Bundle\OAuthBundle\Security\Http\Firewall\OAuthListener($b, $g, $h, $e, 'main', $q, $r, array('check_path' => '/login_check', 'use_forward' => false, 'require_previous_session' => true), $a, $c);
$s->setResourceOwnerMap($this->get('hwi_oauth.resource_ownermap.main'));
$s->setCheckPaths(array(0 => '/login/check'));
return $this->services['security.firewall.map.context.main'] = new \Symfony\Bundle\SecurityBundle\Security\FirewallContext(array(0 => new \Symfony\Component\Security\Http\Firewall\ChannelListener($m, new \Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint(80, 443), $a), 1 => new \Symfony\Component\Security\Http\Firewall\ContextListener($b, array(0 => ${($_ = isset($this->services['fos_user.user_provider.username']) ? $this->services['fos_user.user_provider.username'] : $this->getFosUser_UserProvider_UsernameService()) && false ?: '_'}), 'main', $a, $c, $d), 2 => $n, 3 => new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener($b, $g, $h, $e, 'main', $o, $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('security.csrf.token_manager')), 4 => $s, 5 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '592367686731d3.70523017', $a, $g), 6 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, ${($_ = isset($this->services['debug.security.access.decision_manager']) ? $this->services['debug.security.access.decision_manager'] : $this->getDebug_Security_Access_DecisionManagerService()) && false ?: '_'}, $m, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $d, $e, 'main', new \HWI\Bundle\OAuthBundle\Security\Http\EntryPoint\OAuthEntryPoint($f, $e, '/login', false), NULL, NULL, $a, false), new \Symfony\Bundle\SecurityBundle\Security\FirewallConfig('main', 'security.user_checker', 'security.request_matcher.a64d671f18e5575531d76c1d1154fdc4476cb8a79c02ed7a3469178c6d7b96b5ed4e60db', true, false, 'fos_user.user_provider.username', 'main', 'hwi_oauth.authentication.entry_point.oauth.main', NULL, NULL, array(0 => 'logout', 1 => 'form_login', 2 => 'oauth', 3 => 'anonymous')));
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 => new \FOS\UserBundle\Security\UserProvider($this->get('fos_user.user_manager'))), 'main', $a, $c, $d), 2 => $m, 3 => $p, 4 => new \Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener($b, '5924308b2c6148.07193419', $a, $g), 5 => new \Symfony\Component\Security\Http\Firewall\AccessListener($b, ${($_ = isset($this->services['debug.security.access.decision_manager']) ? $this->services['debug.security.access.decision_manager'] : $this->getDebug_Security_Access_DecisionManagerService()) && false ?: '_'}, $l, $g)), new \Symfony\Component\Security\Http\Firewall\ExceptionListener($b, $d, $e, 'main', new \HWI\Bundle\OAuthBundle\Security\Http\EntryPoint\OAuthEntryPoint($f, $e, '/login', false), NULL, NULL, $a, false), new \Symfony\Bundle\SecurityBundle\Security\FirewallConfig('main', 'security.user_checker', 'security.request_matcher.a64d671f18e5575531d76c1d1154fdc4476cb8a79c02ed7a3469178c6d7b96b5ed4e60db', true, false, 'fos_user.user_provider.username', 'main', 'hwi_oauth.authentication.entry_point.oauth.main', NULL, NULL, array(0 => 'logout', 1 => 'oauth', 2 => 'anonymous')));
}
/**
......@@ -4027,7 +4018,7 @@ class appDevDebugProjectContainer extends Container
*/
protected function getCache_AnnotationsService()
{
return $this->services['cache.annotations'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('wL7jo4JGTo', 0, 'nXkhKbZtHZcUoRh1MJug5k', (__DIR__.'/pools'), $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE));
return $this->services['cache.annotations'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('wL7jo4JGTo', 0, 'XocYru6s7oPm3c9ie9oTgp', (__DIR__.'/pools'), $this->get('monolog.logger.cache', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}
/**
......@@ -4139,23 +4130,6 @@ class appDevDebugProjectContainer extends Container
return $this->services['form.server_params'] = new \Symfony\Component\Form\Util\ServerParams($this->get('request_stack'));
}
/**
* Gets the 'fos_user.user_provider.username' 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 \FOS\UserBundle\Security\UserProvider A FOS\UserBundle\Security\UserProvider instance
*/
protected function getFosUser_UserProvider_UsernameService()
{
return $this->services['fos_user.user_provider.username'] = new \FOS\UserBundle\Security\UserProvider($this->get('fos_user.user_manager'));
}
/**
* Gets the 'fos_user.util.canonical_fields_updater' service.
*
......@@ -4240,9 +4214,7 @@ class appDevDebugProjectContainer extends Container
*/
protected function getSecurity_Authentication_ManagerService()
{
$a = $this->get('hwi_oauth.user_checker');
$this->services['security.authentication.manager'] = $instance = new \Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager(array(0 => new \Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider(${($_ = isset($this->services['fos_user.user_provider.username']) ? $this->services['fos_user.user_provider.username'] : $this->getFosUser_UserProvider_UsernameService()) && false ?: '_'}, $a, 'main', $this->get('security.encoder_factory'), true), 1 => new \HWI\Bundle\OAuthBundle\Security\Core\Authentication\Provider\OAuthProvider($this->get('myecp_user_provider'), $this->get('hwi_oauth.resource_ownermap.main'), $a), 2 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('592367686731d3.70523017')), true);
$this->services['security.authentication.manager'] = $instance = new \Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager(array(0 => new \HWI\Bundle\OAuthBundle\Security\Core\Authentication\Provider\OAuthProvider($this->get('myecp_user_provider'), $this->get('hwi_oauth.resource_ownermap.main'), $this->get('hwi_oauth.user_checker')), 1 => new \Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider('5924308b2c6148.07193419')), true);
$instance->setEventDispatcher($this->get('debug.event_dispatcher'));
......
......@@ -580,9 +580,6 @@
<argument type="service" id="request_stack"/>
<argument>null</argument>
</service>
<service id="fos_user.user_provider.username" class="FOS\UserBundle\Security\UserProvider" public="false">
<argument type="service" id="fos_user.user_manager"/>
</service>
<service id="fos_user.util.user_manipulator" class="FOS\UserBundle\Util\UserManipulator">
<argument type="service" id="fos_user.user_manager"/>
<argument type="service" id="debug.event_dispatcher"/>
......@@ -804,7 +801,7 @@
<tag name="cache.pool" clearer="cache.default_clearer"/>
<argument>wTaEpFVuSs</argument>
<argument>0</argument>
<argument>nXkhKbZtHZcUoRh1MJug5k</argument>
<argument>XocYru6s7oPm3c9ie9oTgp</argument>
<argument>/home/ecral/workspace/CNinno2k16/var/cache/dev/pools</argument>
<argument type="service" id="monolog.logger.cache" on-invalid="ignore"/>
<factory class="Symfony\Component\Cache\Adapter\AbstractAdapter" method="createSystemCache"/>
......@@ -987,7 +984,7 @@
<tag name="cache.pool" clearer="cache.default_clearer"/>
<argument>xrVMhik3Ft</argument>
<argument>0</argument>
<argument>nXkhKbZtHZcUoRh1MJug5k</argument>
<argument>XocYru6s7oPm3c9ie9oTgp</argument>
<argument>/home/ecral/workspace/CNinno2k16/var/cache/dev/pools</argument>
<argument type="service" id="monolog.logger.cache" on-invalid="ignore"/>
<factory class="Symfony\Component\Cache\Adapter\AbstractAdapter" method="createSystemCache"/>
......@@ -997,7 +994,7 @@
<tag name="cache.pool" clearer="cache.default_clearer"/>
<argument>wL7jo4JGTo</argument>
<argument>0</argument>
<argument>nXkhKbZtHZcUoRh1MJug5k</argument>
<argument>XocYru6s7oPm3c9ie9oTgp</argument>
<argument>/home/ecral/workspace/CNinno2k16/var/cache/dev/pools</argument>
<argument type="service" id="monolog.logger.cache" on-invalid="ignore"/>
<factory class="Symfony\Component\Cache\Adapter\AbstractAdapter" method="createSystemCache"/>
......@@ -2019,15 +2016,6 @@
<service id="security.token_storage" class="Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage"/>
<service id="security.authentication.manager" class="Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager" public="false">
<argument type="collection">
<argument type="service">
<service class="Symfony\Component\Security\Core\Authentication\Provider\DaoAuthenticationProvider" public="false">
<argument type="service" id="fos_user.user_provider.username"/>
<argument type="service" id="hwi_oauth.user_checker"/>
<argument>main</argument>
<argument type="service" id="security.encoder_factory"/>
<argument>true</argument>
</service>
</argument>
<argument type="service">
<service class="HWI\Bundle\OAuthBundle\Security\Core\Authentication\Provider\OAuthProvider" public="false">
<argument type="service" id="myecp_user_provider"/>
......@@ -2037,7 +2025,7 @@
</argument>
<argument type="service">
<service class="Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider" public="false">
<argument>592367686731d3.70523017</argument>
<argument>5924308b2c6148.07193419</argument>
</service>
</argument>
</argument>
......@@ -2258,7 +2246,11 @@
<service class="Symfony\Component\Security\Http\Firewall\ContextListener" public="false">
<argument type="service" id="security.token_storage"/>
<argument type="collection">
<argument type="service" id="fos_user.user_provider.username"/>
<argument type="service">
<service class="FOS\UserBundle\Security\UserProvider" public="false">
<argument type="service" id="fos_user.user_manager"/>
</service>
</argument>
</argument>
<argument>main</argument>
<argument type="service" id="monolog.logger.security" on-invalid="null"/>
......@@ -2286,63 +2278,18 @@
<service class="Symfony\Component\Security\Http\Logout\SessionLogoutHandler" public="false"/>
</argument>
</call>
</service>
</argument>
<argument type="service">
<service class="Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener" public="false">
<tag name="security.remember_me_aware" id="main" provider="security.user.provider.concrete.fos_userbundle"/>
<argument type="service" id="security.token_storage"/>
<argument type="service" id="security.authentication.manager"/>
<argument type="service" id="security.authentication.session_strategy"/>
<argument type="service" id="security.http_utils"/>
<argument>main</argument>
<argument type="service">
<service class="Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler" public="false">
<argument type="service" id="security.http_utils"/>
<argument type="collection"/>
<call method="setOptions">
<argument type="collection">
<argument key="login_path">/login</argument>
<argument key="always_use_default_target_path">false</argument>
<argument key="default_target_path">/</argument>
<argument key="target_path_parameter">_target_path</argument>
<argument key="use_referer">false</argument>
</argument>
</call>
<call method="setProviderKey">
<argument>main</argument>
</call>
</service>
</argument>
<argument type="service">
<service class="Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler" public="false">
<argument type="service" id="http_kernel"/>
<argument type="service" id="security.http_utils"/>
<argument type="collection"/>
<argument type="service" id="monolog.logger.security" on-invalid="null"/>
<call method="setOptions">
<call method="addHandler">
<argument type="service">
<service class="Symfony\Component\Security\Http\Logout\CookieClearingLogoutHandler" public="false">
<argument type="collection">
<argument key="login_path">/login</argument>
<argument key="failure_path">null</argument>
<argument key="failure_forward">false</argument>
<argument key="failure_path_parameter">_failure_path</argument>
<argument key="PHPSESSID" type="collection">
<argument key="path">null</argument>
<argument key="domain">null</argument>
</argument>
</argument>
</call>
</service>
</argument>
<argument type="collection">
<argument key="check_path">/login_check</argument>
<argument key="use_forward">false</argument>
<argument key="require_previous_session">true</argument>
<argument key="username_parameter">_username</argument>
<argument key="password_parameter">_password</argument>
<argument key="csrf_parameter">_csrf_token</argument>
<argument key="csrf_token_id">authenticate</argument>
<argument key="post_only">true</argument>
</argument>
<argument type="service" id="monolog.logger.security" on-invalid="null"/>
<argument type="service" id="debug.event_dispatcher" on-invalid="null"/>
<argument type="service" id="security.csrf.token_manager"/>
</service>
</argument>
</call>
</service>
</argument>
<argument type="service">
......@@ -2407,7 +2354,7 @@
<argument type="service">
<service class="Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener" public="false">
<argument type="service" id="security.token_storage"/>
<argument>592367686731d3.70523017</argument>
<argument>5924308b2c6148.07193419</argument>
<argument type="service" id="monolog.logger.security" on-invalid="null"/>
<argument type="service" id="security.authentication.manager"/>
</service>
......@@ -2503,7 +2450,6 @@
<argument>null</argument>
<argument type="collection">
<argument>logout</argument>
<argument>form_login</argument>
<argument>oauth</argument>
<argument>anonymous</argument>
</argument>
......
......@@ -20,11 +20,7 @@ Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: R
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.context_listener.0" (parent: security.context_listener).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.logout_listener.main" (parent: security.logout_listener).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.logout.success_handler.main" (parent: security.logout.success_handler).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.authentication.provider.dao.main" (parent: security.authentication.provider.dao).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.authentication.success_handler.main.form_login" (parent: security.authentication.success_handler).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.authentication.failure_handler.main.form_login" (parent: security.authentication.failure_handler).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.authentication.listener.form.main" (parent: security.authentication.listener.form).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.authentication.form_entry_point.main" (parent: security.authentication.form_entry_point).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.logout.handler.cookie_clearing.main" (parent: security.logout.handler.cookie_clearing).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "hwi_oauth.resource_ownermap.main" (parent: hwi_oauth.abstract_resource_ownermap).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "hwi_oauth.authentication.provider.oauth.main" (parent: hwi_oauth.authentication.provider.oauth).
Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass: Resolving inheritance for "security.authentication.success_handler.main.oauth" (parent: security.authentication.success_handler).
......@@ -117,8 +113,6 @@ Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPas
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "security.http_utils" previously pointing to "router.default" to "router".
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "security.http_utils" previously pointing to "router.default" to "router".
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "security.validator.user_password" previously pointing to "security.encoder_factory.generic" to "security.encoder_factory".
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "security.authentication.provider.dao.main" previously pointing to "security.user_checker" to "hwi_oauth.user_checker".
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "security.authentication.provider.dao.main" previously pointing to "security.encoder_factory.generic" to "security.encoder_factory".
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "hwi_oauth.authentication.provider.oauth.main" previously pointing to "security.user_checker" to "hwi_oauth.user_checker".
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "twig" previously pointing to "twig.loader.filesystem" to "twig.loader".
Symfony\Component\DependencyInjection\Compiler\ReplaceAliasByActualDefinitionPass: Changed reference of service "twig.extension.routing" previously pointing to "router.default" to "router".
......@@ -283,7 +277,6 @@ Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inl
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "sensio_framework_extra.routing.loader.annot_file" to "routing.resolver".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "routing.resolver" to "routing.loader".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "768fd9c2b52b909da36f3d207a1afd4a7b384e9ed8e930e50bf80ff2962be716_2" to "annotations.cache".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.provider.dao.main" to "security.authentication.manager".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "hwi_oauth.authentication.provider.oauth.main" to "security.authentication.manager".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.provider.anonymous.main" to "security.authentication.manager".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.expression_language" to "security.access.expression_voter".
......@@ -302,15 +295,13 @@ Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inl
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.firewall.map.config.dev" to "security.firewall.map.context.dev".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.logout.success_handler.main" to "security.logout_listener.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.logout.handler.session" to "security.logout_listener.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.success_handler.main.form_login" to "security.authentication.listener.form.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.failure_handler.main.form_login" to "security.authentication.listener.form.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.logout.handler.cookie_clearing.main" to "security.logout_listener.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.success_handler.main.oauth" to "hwi_oauth.authentication.listener.oauth.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.failure_handler.main.oauth" to "hwi_oauth.authentication.listener.oauth.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "hwi_oauth.authentication.entry_point.oauth.main" to "security.exception_listener.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.channel_listener" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.context_listener.0" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.logout_listener.main" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.listener.form.main" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "hwi_oauth.authentication.listener.oauth.main" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.authentication.listener.anonymous.main" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.access_listener" to "security.firewall.map.context.main".
......@@ -461,11 +452,7 @@ Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Remo
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.context_listener.0"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.logout_listener.main"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.logout.success_handler.main"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.authentication.provider.dao.main"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.authentication.success_handler.main.form_login"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.authentication.failure_handler.main.form_login"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.authentication.listener.form.main"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.authentication.form_entry_point.main"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.logout.handler.cookie_clearing.main"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "hwi_oauth.authentication.provider.oauth.main"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.authentication.success_handler.main.oauth"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "security.authentication.failure_handler.main.oauth"; reason: unused.
......@@ -557,7 +544,9 @@ Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inl
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "sensio_framework_extra.routing.loader.annot_class" to "routing.loader".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "sensio_framework_extra.routing.loader.annot_class" to "routing.loader".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.access_map" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "fos_user.user_provider.username" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass: Inlined service "security.access_map" to "security.firewall.map.context.main".
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "fos_user.user_provider.username"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "cache.validator"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "assets.empty_version_strategy"; reason: unused.
Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass: Removed service "templating.finder"; reason: unused.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment