This project is a fork of the jenkinsci/miniorange-two-factor-plugin with a refactored code base, removed banners and added TOTP Authentication.
Supported Authentication methods
- Security Questions
- OTP Over Email
- TOTP Authenticator
- Duo Push Notification [Not implemented yet]
- Yubikey hardware token [Not implemented yet]
- OTP over SMS [Not implemented yet]
- Backup code [Not implemented yet]
Features of Jenkins 2FA plugin
- Enable and disable 2FA for all users in a single click
- 2FA supported for all security realms
- Enable 2FA for users in specific groups [Not implemented yet]
- Disable 2FA for users in specific groups [Not implemented yet]
- Jenkins ≥ 2.361.4
- Mailer Plugin
-
- Go to the Releases page and download the latests plugin release.
-
- Import the public signing key.
gpg --keyserver keyserver.ubuntu.com --recv-keys EB39AE11A97F961E7F1C97528C65DB4C128B09E9
- Download related signature and verify.
gpg --verify plugin_file_name.hpi.sig
You should see something like this:
$ gpg --verify 2fa-jenkins-plugin-1.0.0.hpi.sig gpg: assuming signed data in '2fa-jenkins-plugin-1.0.0.hpi' gpg: Signature made Fri 31 May 2024 08:31:02 PM CEST gpg: using EDDSA key EB39AE11A97F961E7F1C97528C65DB4C128B09E9 gpg: Good signature from "github-chekist32" [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: EB39 AE11 A97F 961E 7F1C 9752 8C65 DB4C 128B 09E9
A Jenkins instance must have configured https in order to be able to use this plugin.
-
Go to Manage Jenkins > Configure System (E-mail Notification section)
-
Here you have to setup the mailer plugin in order to be able to use the Otp Over Email method. You can follow this guide.