Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1a79dc

Browse files
committed
[symfony#2170] Backporting detils about HTTP Digest that didn't patch manually - thanks to @tarjei
1 parent 34d946d commit d1a79dc

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

reference/configuration/security.rst

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,44 @@ Redirecting after Login
212212
* ``default_target_path`` (type: ``string``, default: ``/``)
213213
* ``target_path_parameter`` (type: ``string``, default: ``_target_path``)
214214
* ``use_referer`` (type: ``Boolean``, default: ``false``)
215+
216+
HTTP-Digest Authentication
217+
--------------------------
218+
219+
To use HTTP-Digest authentication you need to provide a realm and a key:
220+
221+
.. configuration-block::
222+
223+
.. code-block:: yaml
224+
225+
# app/config/security.yml
226+
security:
227+
firewalls:
228+
somename:
229+
http_digest:
230+
key: "a_random_string"
231+
realm: "secure-api"
232+
233+
.. code-block:: xml
234+
235+
<!-- app/config/security.xml -->
236+
<security:config>
237+
<firewall name="somename">
238+
<http-digest key="a_random_string" realm="secure-api" />
239+
</firewall>
240+
</security:config>
241+
242+
.. code-block:: php
243+
244+
// app/config/security.php
245+
$container->loadFromExtension('security', array(
246+
'firewalls' => array(
247+
'somename' => array(
248+
'http_digest' => array(
249+
'key' => 'a_random_string',
250+
'realm' => 'secure-api',
251+
),
252+
),
253+
),
254+
));
255+

0 commit comments

Comments
 (0)