Ingen beskrivning

Allan R. A. Barcelos d10c5793d4 Merge pull request #1 from allanbarcelos/dependabot/maven/io.jenkins.tools.bom-bom-2.479.x-5054.v620b_5d2b_d5e6 1 år sedan
.github 1c77faa011 first version, working 1 år sedan
.mvn 1c77faa011 first version, working 1 år sedan
.vscode 1c77faa011 first version, working 1 år sedan
src 1c77faa011 first version, working 1 år sedan
.gitignore 1c77faa011 first version, working 1 år sedan
Jenkinsfile 1c77faa011 first version, working 1 år sedan
LICENSE.md 1c77faa011 first version, working 1 år sedan
README.md b50868445d Update README.md 1 år sedan
pom.xml ee4d3b53ee Bump io.jenkins.tools.bom:bom-2.479.x 1 år sedan

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

✅ 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.