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 {
109109 'nameidasattrib ' => 0 ,
110110 'flagresponsetype ' => saml2_settings::OPTION_FLAGGED_LOGIN_MESSAGE ,
111111 'flagredirecturl ' => '' ,
112- 'flagmessage ' => '' // Set in constructor.
112+ 'flagmessage ' => '' , // Set in constructor.
113+ 'tempdir ' => '/tmp/simplesaml '
113114 ];
114115
115116 /**
Original file line number Diff line number Diff line change 4949 'debug ' => ['saml ' => $ saml2auth ->is_debugging ()],
5050 'logging.level ' => $ saml2auth ->is_debugging () ? SimpleSAML \Logger::DEBUG : SimpleSAML \Logger::ERR ,
5151 'logging.handler ' => $ saml2auth ->config ->logtofile ? 'file ' : 'errorlog ' ,
52- 'tempdir ' => ' /tmp/simplesaml ' ,
52+ 'tempdir ' => $ saml2auth -> config -> tempdir ,
5353
5454 // SSP has a %srcip token, but instead use $remoteip so Moodle handle's which header to use.
5555 'logging.format ' => '%date{%b %d %H:%M:%S} ' . $ remoteip . ' %process %level %stat[%trackid] %msg ' ,
Original file line number Diff line number Diff line change 178178$ string ['spmetadatasign_help ' ] = 'Sign the SP Metadata. ' ;
179179$ string ['spmetadatasign ' ] = 'SP Metadata signature ' ;
180180$ 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 ' ;
181184$ string ['sspversion ' ] = 'SimpleSAMLphp version ' ;
182185$ string ['stateorprovincename ' ] = 'State or Province ' ;
183186$ string ['status ' ] = 'Status ' ;
Original file line number Diff line number Diff line change 367367 1 ,
368368 $ yesno ));
369369
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+
370380 // SAMLPHP version.
371381 $ authplugin = get_auth_plugin ('saml2 ' );
372382 $ settings ->add (new setting_textonly (
You can’t perform that action at this time.
0 commit comments