4

I'm trying to find how to setup 2FA/MFA on users who login to Jenkins, with Google Authenticator.

Everything I'm finding is about logins to servers/git/etc, but not for the actual USERS in Jenkins.

Does anyone know how to do this?

Nuno
  • 461
  • 1
  • 5
  • 23
  • I believe what you are looking for is the [Google Login plugin](https://plugins.jenkins.io/google-login/). – jayhendren Apr 13 '20 at 16:22
  • 1
    Nope. What I'm looking for is 2FA with a 6-digit code, using the [Google Authenticator](https://google-authenticator.com/) app. – Nuno Apr 13 '20 at 23:32
  • Right, that plugin should use 2FA via Google Authenticator if you have it configured on your Google account. – jayhendren Apr 14 '20 at 00:59
  • 1
    Without any external 3rd party logins. There's no reason to have to do external logins to be able to implement this 2FA token. – Nuno Apr 14 '20 at 05:13
  • No, I don't believe there exists a plugin to do Google Authenticator 2FA on local Jenkins accounts. That seems like a very niche use case to me. I just assumed you would want to use an external service for authentication - the vast majority of Jenkins admins I've talked to use LDAP, Active Directory, GitHub, Google, or some other service for user authentication rather than local accounts. – jayhendren Apr 15 '20 at 16:02
  • 1
    Thanks. But that seems weird to me that this is a niche use case. In my case, Jenkins is hosted on a machine, unlinked from any LDAP/AD network, we have our own Git host, and we don't want to use Google or any 3rd party authentication. All we want is a simple Login (email/password), with an extra step with verification code. Very strange how no one EVER wanted something similar in the past... – Nuno Apr 16 '20 at 01:16

0 Answers0