X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FApiBundle%2FDependencyInjection%2FSecurity%2FFactory%2FWsseFactory.php;fp=src%2FWallabag%2FApiBundle%2FDependencyInjection%2FSecurity%2FFactory%2FWsseFactory.php;h=402eb869217a900d00d59c72b23c5e090cd6568f;hb=769e19dc4ab1a068e8165a7b237f42a78a6d312f;hp=0000000000000000000000000000000000000000;hpb=e3c34bfc06f3ea266a418d6246560f15d3f73e2a;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ApiBundle/DependencyInjection/Security/Factory/WsseFactory.php b/src/Wallabag/ApiBundle/DependencyInjection/Security/Factory/WsseFactory.php new file mode 100644 index 00000000..402eb869 --- /dev/null +++ b/src/Wallabag/ApiBundle/DependencyInjection/Security/Factory/WsseFactory.php @@ -0,0 +1,40 @@ +setDefinition($providerId, new DefinitionDecorator('wsse.security.authentication.provider')) + ->replaceArgument(0, new Reference($userProvider)) + ; + + $listenerId = 'security.authentication.listener.wsse.'.$id; + $listener = $container->setDefinition($listenerId, new DefinitionDecorator('wsse.security.authentication.listener')); + + return array($providerId, $listenerId, $defaultEntryPoint); + } + + public function getPosition() + { + return 'pre_auth'; + } + + public function getKey() + { + return 'wsse'; + } + + public function addConfiguration(NodeDefinition $node) + { + } +}