File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -284,3 +284,43 @@ A good configuration lies around at least 1000 iterations and sha512
284
284
for the hash algorithm.
285
285
286
286
.. _`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
+ ));
You can’t perform that action at this time.
0 commit comments