Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions DependencyInjection/BeSimpleSoapExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ private function registerClientConfiguration(array $config, ContainerBuilder $co
));
}

$digest = $options['digest'];
if (false !== $digest['certificate']) {
$definition->addMethodCall('withDigestAuthentication', array(
$digest['certificate'], $digest['passphrase']
));
}

if (isset($defOptions['cache_type'])) {
$defOptions['cache_type'] = $this->getCacheType($defOptions['cache_type']);
}
Expand Down
8 changes: 8 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ private function addClientSection(ArrayNodeDefinition $rootNode)
->end()
->end()
->end()
->arrayNode('digest')
->info('digest authentication configuration')
->addDefaultsIfNotSet()
->children()
->scalarNode('certificate')->defaultFalse()->end()
->scalarNode('passphrase')->defaultNull()->end()
->end()
->end()
->end()
->end()
->end()
Expand Down
5 changes: 5 additions & 0 deletions Resources/doc/soapclient/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ Configure your first client in your config file:
password: ~
auth: ~ # can be 'basic' or 'ntlm'

# digest (optional)
digest:
certificate: path to certificate
passphrase: (optional)

Using client
------------

Expand Down