|
|
@@ -3,15 +3,20 @@
|
|
|
*
|
|
|
* Class: MfaGlobalConfig
|
|
|
*
|
|
|
- *
|
|
|
+ * --
|
|
|
* Author: Allan Barcelos
|
|
|
* Date: 2025-07-18
|
|
|
+ *
|
|
|
+ * Author: Allan Barcelos
|
|
|
+ * Date: 2025-07-21
|
|
|
+ * The class should override getCategory() so that the config is shown as part of the security configuration page
|
|
|
*/
|
|
|
|
|
|
package io.jenkins.plugins;
|
|
|
|
|
|
import hudson.Extension;
|
|
|
import jenkins.model.GlobalConfiguration;
|
|
|
+import jenkins.model.GlobalConfigurationCategory;
|
|
|
import org.kohsuke.stapler.DataBoundSetter;
|
|
|
|
|
|
@Extension
|
|
|
@@ -28,6 +33,11 @@ public class MfaGlobalConfig extends GlobalConfiguration {
|
|
|
load();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public GlobalConfigurationCategory getCategory() {
|
|
|
+ return GlobalConfigurationCategory.get(GlobalConfigurationCategory.Security.class);
|
|
|
+ }
|
|
|
+
|
|
|
public boolean isEnforceMfaForAllUsers() {
|
|
|
return enforceMfaForAllUsers;
|
|
|
}
|