Giter Site home page Giter Site logo

QRCode URL shows 404 about google2fa HOT 8 CLOSED

mm-louis avatar mm-louis commented on June 11, 2024
QRCode URL shows 404

from google2fa.

Comments (8)

akyagmur avatar akyagmur commented on June 11, 2024

Unfortunately, this service has been deprecated.

from google2fa.

dragonofmercy avatar dragonofmercy commented on June 11, 2024

You can switch to this library and use his local QR Code generator

https://github.com/RobThree/TwoFactorAuth

from google2fa.

ankit-singh-vu avatar ankit-singh-vu commented on June 11, 2024

I am facing the same issue from almost 2 weeks. What is good alternative ? Bacon/QRCode?

from google2fa.

dragonofmercy avatar dragonofmercy commented on June 11, 2024

I use like this

use RobThree\Auth\TwoFactorAuth;
use RobThree\Auth\Providers\Qr\BaconQrCodeProvider;

$driver = new BaconQrCodeProvider(0, '#ffffff', '#000000', 'svg');
$tfa = new TwoFactorAuth('Company name', 6, 30, 'sha1', $driver);

$tfa->getQRCodeImageAsDataUri('accountname', 'secret', 200);

for the secret use

$secret = $tfa->createSecret();

Don't forget

composer require robthree/twofactorauth
composer require bacon/bacon-qr-code

from google2fa.

mfn avatar mfn commented on June 11, 2024

https://github.com/Bacon/BaconQrCode , it's supported (I use it with google2fa-laravel) and has a SVG backend -> basically no external dependencies and majority of browsers support it.

from google2fa.

ankit-singh-vu avatar ankit-singh-vu commented on June 11, 2024

instead of getQRCodeGoogleUrl() , i used getQRCodeInline() and it worked fine.
It required pragmarx/google2fa, pragmarx/google2fa-qrcode and bacon/bacon-qr-code packages.

<?php
use PragmaRX\Google2FAQRCode\Google2FA as Google2FAQRCodeGoogle2FA;

        $google2fa = new Google2FAQRCodeGoogle2FA();
    
        $inlineUrl = $google2fa->getQRCodeInline(
            $companyName,
            $companyEmail,
            $secretKey
        );
        
        echo $inlineUrl ; //svg format
?>

from google2fa.

antonioribeiro avatar antonioribeiro commented on June 11, 2024

Yeah the Google service was scheduled to go down. It's actually better to have it inline anyways, like @ankit-singh-vu is doing. Both chillerlan/php-qrcode and Bacon works fine.

from google2fa.

mm-louis avatar mm-louis commented on June 11, 2024

Thanks everyone! I opted for image-charts.com instead of the Google one.

from google2fa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.