File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ class auth extends \auth_plugin_base {
109
109
'nameidasattrib ' => 0 ,
110
110
'flagresponsetype ' => saml2_settings::OPTION_FLAGGED_LOGIN_MESSAGE ,
111
111
'flagredirecturl ' => '' ,
112
- 'flagmessage ' => '' // Set in constructor.
112
+ 'flagmessage ' => '' , // Set in constructor.
113
+ 'tempdir ' => '/tmp/simplesaml '
113
114
];
114
115
115
116
/**
Original file line number Diff line number Diff line change 49
49
'debug ' => ['saml ' => $ saml2auth ->is_debugging ()],
50
50
'logging.level ' => $ saml2auth ->is_debugging () ? SimpleSAML \Logger::DEBUG : SimpleSAML \Logger::ERR ,
51
51
'logging.handler ' => $ saml2auth ->config ->logtofile ? 'file ' : 'errorlog ' ,
52
- 'tempdir ' => ' /tmp/simplesaml ' ,
52
+ 'tempdir ' => $ saml2auth -> config -> tempdir ,
53
53
54
54
// SSP has a %srcip token, but instead use $remoteip so Moodle handle's which header to use.
55
55
'logging.format ' => '%date{%b %d %H:%M:%S} ' . $ remoteip . ' %process %level %stat[%trackid] %msg ' ,
Original file line number Diff line number Diff line change 178
178
$ string ['spmetadatasign_help ' ] = 'Sign the SP Metadata. ' ;
179
179
$ string ['spmetadatasign ' ] = 'SP Metadata signature ' ;
180
180
$ string ['spmetadata ' ] = 'SP Metadata ' ;
181
+ $ string ['tempdirdefault ' ] = '/tmp/simplesaml ' ;
182
+ $ string ['tempdir_help ' ] = 'A directory where SimpleSAMLphp can save temporary files ' ;
183
+ $ string ['tempdir ' ] = 'SimpleSAMLphp temporary directory ' ;
181
184
$ string ['sspversion ' ] = 'SimpleSAMLphp version ' ;
182
185
$ string ['stateorprovincename ' ] = 'State or Province ' ;
183
186
$ string ['status ' ] = 'Status ' ;
Original file line number Diff line number Diff line change 367
367
1 ,
368
368
$ yesno ));
369
369
370
+ // SAMLPHP tempdir
371
+ $ settings ->add (new admin_setting_configtext (
372
+ 'auth_saml2/tempdir ' ,
373
+ get_string ('tempdir ' , 'auth_saml2 ' ),
374
+ get_string ('tempdir_help ' , 'auth_saml2 ' ),
375
+ get_string ('tempdirdefault ' , 'auth_saml2 ' ),
376
+ PARAM_TEXT ,
377
+ 50 ,
378
+ 3 ));
379
+
370
380
// SAMLPHP version.
371
381
$ authplugin = get_auth_plugin ('saml2 ' );
372
382
$ settings ->add (new setting_textonly (
You can’t perform that action at this time.
0 commit comments