TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Google 2-step Verification

Open azizbaghirov opened this issue 2 years ago • 3 comments

Hi, TeamPass crew! We have an issue. We want to activate Google 2-step Verification. Official documentation says:

Google Two-Factor Authentication enhances login security. When logging in, a QR code is displayed, which must be scanned into the user's Google Authentication app to receive a one-time password.

Can you please explain the full process? When does the user see QR code?

Steps to reproduce

  1. Enable Google 2-step Verification - Yes
  2. MFA is requested for users in Roles - All users

Expected behaviour

QR code should be generated

Actual behaviour

We dont see QR anywhere

Server configuration

Operating system: Ubuntu 20.04

Web server: Apache2

Database: mysql Ver 15.1

PHP version: PHP 7.4.3

Teampass version: 3.0.0.14

**Teampass configuration file:**d tp.config.php.txt

Updated from an older Teampass or fresh install: PLEASE attach to this issue the file /includes/config/tp.config.php.

Client configuration

Google Chrome 104

Operating system: Windows 11

azizbaghirov avatar Aug 19 '22 13:08 azizbaghirov

The QR code is required to enrole the Teampass account inside the Google Auth tool (or any other tool such as Authy) Once the user has the account added in the MFA tool, it is not more required.

nilsteampassnet avatar Aug 22 '22 13:08 nilsteampassnet

Dear Nils! we have used MFA with google authenticator many times, but in this case, i wonder where the QR code is displayed to scan it.

azizbaghirov avatar Aug 23 '22 06:08 azizbaghirov

Once on the login page.

  1. Enter the credentials
  2. Click the envelop icon image
  3. The user will receive an email with a code
  4. Copy and paste the code inside the input box
  5. Click login button
  6. wait a couple of seconds, and you will see the QR code
  7. flash it
  8. use the new auth code from your MFA tool

nilsteampassnet avatar Aug 28 '22 18:08 nilsteampassnet

Hi!

I have enabled Google 2-step verification:

  • MFA is requested for users in Roles: All users
  • Enable Google 2-step Verification: yes
  • User can reset his 2FA code : yes

OTP is sent to user, code is accepted and then empty QR code image is shown.

No errors seen in backend (httpd and PHP logs). No errors in brower showed in developer tools view. QR code image link is showed as <div id="div-2fa-google-qr" class="row mt-2"><div class="col-12 alert alert-info"><p class="text-center"><img src="data:image/png;base64,"></p><p class="text-center"><i class="fas fa-mobile-alt fa-lg mr-1"></i>Flash with your mobile device</p></div></div>

Google 2FA - empty image

Does Google 2-step verification needs to connect some public servers to generate and show correct QR code image? My Teampass server is behind a proxy server.

l3v3lv2 avatar Dec 28 '22 13:12 l3v3lv2

Hello i have same issues, my server behind a proxy server and i did set config proxy network but no see any request from teampass connect to any domain. TeamPass: v3.0.0.21 image

hoanbc avatar Jan 13 '23 07:01 hoanbc

Hi Nil,

I just installed Teampass yesterday and everything seems to be working great but I am having the same problem as well in re QR code. I am also behind a proxy and the image is not being rendered once I put in the code I received from the email.

On a side note, I think it would make more sense to say "Scan with your mobile device" rather than "Flash with your mobile device". Just a suggestion.

Many thanks for this great piece of software. Really appreciate it.

Regards, Ali

ozturkinc avatar May 02 '23 00:05 ozturkinc

Hello,

Same issue, the QRCODE picture is broken

RHEL7.9 PHP8.0 Teampass 3.0.8

Regards

Johnybe avatar Jun 20 '23 14:06 Johnybe