Không có mô tả

dependabot[bot] ee4d3b53ee Bump io.jenkins.tools.bom:bom-2.479.x 1 năm trước cách đây
.github 1c77faa011 first version, working 1 năm trước cách đây
.mvn 1c77faa011 first version, working 1 năm trước cách đây
.vscode 1c77faa011 first version, working 1 năm trước cách đây
src 1c77faa011 first version, working 1 năm trước cách đây
.gitignore 1c77faa011 first version, working 1 năm trước cách đây
Jenkinsfile 1c77faa011 first version, working 1 năm trước cách đây
LICENSE.md 1c77faa011 first version, working 1 năm trước cách đây
README.md 1c77faa011 first version, working 1 năm trước cách đây
pom.xml ee4d3b53ee Bump io.jenkins.tools.bom:bom-2.479.x 1 năm trước cách đây

README.md

MFA Google Auth Plugin

Jenkins Plugin Jenkins Plugin Installs MIT License

A Jenkins plugin that enforces multi‑factor authentication (MFA) using Google Authenticator. This plugin adds an additional layer of security by requiring users to provide a time‑based one‑time password (TOTP) after entering their username and password.


✨ Features

✅ Enforces MFA for Jenkins users ✅ Integrates with Google Authenticator or any TOTP app ✅ Configurable enforcement policies ✅ Easy to set up and manage through Jenkins UI


📦 Installation

  1. Build the plugin:

    mvn clean package
    

After a successful build, you will find the .hpi file in the target/ directory.

  1. Upload to Jenkins:

    • Go to Manage Jenkins → Manage Plugins → Advanced
    • Use the Upload Plugin section to upload the mfa-google-auth.hpi.
  2. Restart Jenkins if required.


🔧 Configuration

  1. In Jenkins, go to Manage Jenkins → Configure Global Security.
  2. Enable MFA Google Auth Plugin under the security realm or configure it as instructed in your environment.
  3. Each user should scan the generated QR code with Google Authenticator (or a compatible TOTP app) and enter their verification code.

📌 Requirements


🛠 Development

This plugin is built with the Jenkins Plugin Parent POM.

To work on the plugin locally:

# Build and run tests
mvn clean verify

# Run Jenkins with the plugin
mvn hpi:run

Then open Jenkins at http://localhost:8080/jenkins/.


📜 License

This project is licensed under the MIT License.