@@ -35,7 +35,7 @@ public static function get()
35
35
/**
36
36
* Following parameters can be empty (or equal to 0), we don't increment the error counter in their case
37
37
*/
38
- $ ignoreEmptyParam = array ('EMAIL_RECIPIENT ' , 'PROXY ' , 'RPM_DEFAULT_ARCH ' , 'DEB_DEFAULT_ARCH ' , 'DEB_DEFAULT_TRANSLATION ' , 'REPO_CONF_FILES_PREFIX ' , 'RETENTION ' , 'OIDC_PROVIDER_URL ' , 'OIDC_AUTHORIZATION_ENDPOINT ' , 'OIDC_TOKEN_ENDPOINT ' , 'OIDC_USERINFO_ENDPOINT ' , 'OIDC_SCOPES ' , 'OIDC_CLIENT_ID ' , 'OIDC_CLIENT_SECRET ' );
38
+ $ ignoreEmptyParam = array ('EMAIL_RECIPIENT ' , 'PROXY ' , 'RPM_DEFAULT_ARCH ' , 'DEB_DEFAULT_ARCH ' , 'DEB_DEFAULT_TRANSLATION ' , 'REPO_CONF_FILES_PREFIX ' , 'RETENTION ' , 'OIDC_PROVIDER_URL ' , 'OIDC_AUTHORIZATION_ENDPOINT ' , 'OIDC_TOKEN_ENDPOINT ' , 'OIDC_USERINFO_ENDPOINT ' , 'OIDC_SCOPES ' , 'OIDC_CLIENT_ID ' , 'OIDC_CLIENT_SECRET ' , ' OIDC_HTTP_PROXY ' , ' OIDC_CERT_PATH ' );
39
39
40
40
if (in_array ($ key , $ ignoreEmptyParam )) {
41
41
continue ;
@@ -499,6 +499,22 @@ public static function get()
499
499
define ('OIDC_GROUP_SUPER_ADMINISTRATOR ' , 'super-administrator ' );
500
500
}
501
501
}
502
+
503
+ if (!defined ('OIDC_HTTP_PROXY ' )) {
504
+ if (!empty ($ settings ['OIDC_HTTP_PROXY ' ])) {
505
+ define ('OIDC_HTTP_PROXY ' , $ settings ['OIDC_HTTP_PROXY ' ]);
506
+ } else {
507
+ define ('OIDC_HTTP_PROXY ' , '' );
508
+ }
509
+ }
510
+
511
+ if (!defined ('OIDC_CERT_PATH ' )) {
512
+ if (!empty ($ settings ['OIDC_CERT_PATH ' ])) {
513
+ define ('OIDC_CERT_PATH ' , $ settings ['OIDC_CERT_PATH ' ]);
514
+ } else {
515
+ define ('OIDC_CERT_PATH ' , '' );
516
+ }
517
+ }
502
518
}
503
519
504
520
if (!defined ('__LOAD_SETTINGS_ERROR ' )) {
@@ -604,6 +620,14 @@ public static function getYaml()
604
620
define ('OIDC_GROUP_SUPER_ADMINISTRATOR ' , Common::validateData ($ appYaml ['oidc ' ]['group_super_administrator ' ]));
605
621
}
606
622
623
+ if (!defined ('OIDC_HTTP_PROXY ' ) and isset ($ appYaml ['oidc ' ]['http_proxy ' ])) {
624
+ define ('OIDC_HTTP_PROXY ' , Common::validateData ($ appYaml ['oidc ' ]['http_proxy ' ]));
625
+ }
626
+
627
+ if (!defined ('OIDC_CERT_PATH ' ) and isset ($ appYaml ['oidc ' ]['cert_path ' ])) {
628
+ define ('OIDC_CERT_PATH ' , Common::validateData ($ appYaml ['oidc ' ]['cert_path ' ]));
629
+ }
630
+
607
631
if (!defined ('__LOAD_SETTINGS_YAML_ERROR ' )) {
608
632
define ('__LOAD_SETTINGS_YAML_ERROR ' , $ __LOAD_SETTINGS_YAML_ERROR );
609
633
}
0 commit comments