File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change @@ -212,3 +212,44 @@ Redirecting after Login
212
212
* ``default_target_path `` (type: ``string ``, default: ``/ ``)
213
213
* ``target_path_parameter `` (type: ``string ``, default: ``_target_path ``)
214
214
* ``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
+
You can’t perform that action at this time.
0 commit comments