protected createListener ( $container, $id, $config, $userProvider ) |
/** * {@inheritDoc} */ protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); $oauthProviderId = $this->createOAuthProvider($container, $id, $config); $container->getDefinition($listenerId)->addMethodCall('setOAuthProvider', array(new Reference($oauthProviderId))); return $listenerId; }
protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); if (isset($config['csrf_provider'])) { $container->getDefinition($listenerId)->addArgument(new Reference($config['csrf_provider'])); } return $listenerId; }
protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); if (isset($config['relying_party'])) { $container->getDefinition($listenerId)->addMethodCall('setRelyingParty', array(new Reference($config['relying_party']))); } return $listenerId; }
protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); if ($config['use_twitter_anywhere']) { $container->getDefinition($listenerId)->addMethodCall('setUseTwitterAnywhere', array(true)); } return $listenerId; }
/** * {@inheritDoc} */ protected function createListener($container, $id, $config, $userProvider) { $providerType = $config['auth_provider']; $id = $id . '.' . $providerType; $oAuthProvider = sprintf('etcpasswd_oauth.provider.%s', $providerType); $listenerId = parent::createListener($container, $id, $config, $userProvider); $listener = $container->getDefinition($listenerId); $listener->replaceArgument(10, new Reference($oAuthProvider)); return $listenerId; }
protected function createListener($container, $id, $config, $userProvider) { $this->addOption('login_path', $config['login_path']); $this->addOption('check_path', $config['check_path']); $this->addOption('logout_path', $config['logout_path']); $this->addOption('failure_path', $config['failure_path']); $this->addOption('metadata_path', $config['metadata_path']); $this->addOption('discovery_path', $config['discovery_path']); $this->addOption('local_logout_path', $config['local_logout_path']); $this->createServiceInfoCollection($container, $id, $config); $this->createStateStores($container, $id, $config); $this->createRelyingParties($container, $id, $config); $listenerId = parent::createListener($container, $id, $config, $userProvider); if ($config['relying_party']) { $container->getDefinition($listenerId)->addMethodCall('setRelyingParty', array(new Reference($config['relying_party']))); } else { $container->getDefinition($listenerId)->addMethodCall('setRelyingParty', array(new Reference('aerial_ship_saml_sp.relying_party.composite.' . $id))); } return $listenerId; }
protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); $container->getDefinition($listenerId)->addArgument(isset($config['csrf_token_generator']) ? new Reference($config['csrf_token_generator']) : null); return $listenerId; }
/** * {@inheritDoc} */ protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); $checkPaths = array(); foreach ($config['resource_owners'] as $checkPath) { $checkPaths[] = $checkPath; } $container->getDefinition($listenerId)->addMethodCall('setResourceOwnerMap', array($this->getResourceOwnerMapReference($id)))->addMethodCall('setCheckPaths', array($checkPaths)); return $listenerId; }
protected function createListener($container, $id, $config, $userProvider) { $this->addOption('oauth_start_path', $config['oauth_start_path']); $this->addOption('oauth_callback_path', $config['oauth_callback_path']); return parent::createListener($container, $id, $config, $userProvider); }
protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); $container->getDefinition($listenerId)->addMethodCall('setClient', array($config)); return $listenerId; }
/** * {@inheritDoc} */ protected function createListener($container, $id, $config, $userProvider) { $listenerId = parent::createListener($container, $id, $config, $userProvider); $container->getDefinition($listenerId)->addMethodCall('setOwnerMap', array(new Reference('glory_oauth.ownermap'))); return $listenerId; }