Skip to content

Commit 854bf0e

Browse files
committed
Merge pull request #2170 from tarjei/patch-1
Add comment on http_digest auth.
2 parents 4d23c70 + 75a4f61 commit 854bf0e

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

reference/configuration/security.rst

+40
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,43 @@ A good configuration lies around at least 1000 iterations and sha512
284284
for the hash algorithm.
285285

286286
.. _`PBKDF2`: http://en.wikipedia.org/wiki/PBKDF2
287+
288+
HTTP-Digest Authentication
289+
--------------------------
290+
291+
To use HTTP-Digest authentication you need to provide a realm and a key:
292+
293+
.. configuration-block::
294+
295+
.. code-block:: yaml
296+
297+
# app/config/security.yml
298+
security:
299+
firewalls:
300+
somename:
301+
http_digest:
302+
key: "a_random_string"
303+
realm: "secure-api"
304+
305+
.. code-block:: xml
306+
307+
<!-- app/config/security.xml -->
308+
<security:config>
309+
<firewall name="somename">
310+
<http-digest key="a_random_string" realm="secure-api" />
311+
</firewall>
312+
</security:config>
313+
314+
.. code-block:: php
315+
316+
// app/config/security.php
317+
$container->loadFromExtension('security', array(
318+
'firewalls' => array(
319+
'somename' => array(
320+
'http_digest' => array(
321+
'key' => 'a_random_string',
322+
'realm' => 'secure-api',
323+
),
324+
),
325+
),
326+
));

0 commit comments

Comments
 (0)