|
1 | 1 | .. _howto_config:
|
2 | 2 |
|
3 |
| -Environment variables |
4 |
| -===================== |
5 |
| - |
6 |
| -PYSAML2_DELETE_TMPFILES |
7 |
| -^^^^^^^^^^^^^^^^^^^^^^^ |
8 |
| - |
9 |
| -If set to "False" will keep temporary xml files in the system temporary storage. |
10 |
| -Default: "true"; delete temporary files. |
11 |
| - |
12 | 3 |
|
13 | 4 | Configuration of pySAML2 entities
|
14 | 5 | =================================
|
@@ -44,6 +35,7 @@ The basic structure of the configuration file is therefore like this::
|
44 | 35 | "key_file" : "my.key",
|
45 | 36 | "cert_file" : "ca.pem",
|
46 | 37 | "xmlsec_binary" : "/usr/local/bin/xmlsec1",
|
| 38 | + "delete_tmpfiles": True, |
47 | 39 | "metadata": {
|
48 | 40 | "local": ["edugain.xml"],
|
49 | 41 | },
|
@@ -326,6 +318,17 @@ Example::
|
326 | 318 |
|
327 | 319 | "xmlsec_binary": "/usr/local/bin/xmlsec1",
|
328 | 320 |
|
| 321 | +delete_tmpfiles |
| 322 | +^^^^^^^^^^^^^^^ |
| 323 | + |
| 324 | +In many cases temporary files will have to be created during the |
| 325 | +encryption/decryption/signing/validation process. |
| 326 | +This option defines whether these temporary files will be automatically deleted when |
| 327 | +they are no longer needed. Setting this to False, will keep these files until they are |
| 328 | +manually deleted or automatically deleted by the OS (i.e Linux rules for /tmp). |
| 329 | +Absence of this option, defaults to True. |
| 330 | + |
| 331 | + |
329 | 332 | valid_for
|
330 | 333 | ^^^^^^^^^
|
331 | 334 |
|
@@ -826,6 +829,7 @@ We start with a simple but fairly complete Service provider configuration::
|
826 | 829 | "key_file" : "./mykey.pem",
|
827 | 830 | "cert_file" : "./mycert.pem",
|
828 | 831 | "xmlsec_binary" : "/usr/local/bin/xmlsec1",
|
| 832 | + "delete_tmpfiles": True, |
829 | 833 | "attribute_map_dir": "./attributemaps",
|
830 | 834 | "metadata": {
|
831 | 835 | "local": ["idp.xml"]
|
@@ -874,6 +878,7 @@ A slightly more complex configuration::
|
874 | 878 | "key_file" : "./mykey.pem",
|
875 | 879 | "cert_file" : "./mycert.pem",
|
876 | 880 | "xmlsec_binary" : "/usr/local/bin/xmlsec1",
|
| 881 | + "delete_tmpfiles": True, |
877 | 882 | "metadata" : {
|
878 | 883 | "local": ["example.xml"],
|
879 | 884 | "remote": [{
|
|
0 commit comments