Giter Site home page Giter Site logo

cretueusebiu / laravel-spark-google2fa Goto Github PK

View Code? Open in Web Editor NEW
87.0 7.0 25.0 35 KB

Google Authenticator support for Laravel Spark

Home Page: https://packagist.org/packages/eusebiu/laravel-spark-google2fa

License: MIT License

PHP 57.19% JavaScript 13.29% HTML 29.52%
spark laravel-spark php laravel authenticator

laravel-spark-google2fa's People

Contributors

cretueusebiu avatar danharper avatar ipalaus avatar jamestoot avatar japseyz avatar mattiasgeniar avatar theo-pirkl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-spark-google2fa's Issues

Spark 7.0 compatibility

Hi, im trying to use this with spark v7. After following installation instruction in Readme, when I open setting page in spark, the 2FA section under password section was not available.

Some error in console:
Property or method "generating" is not defined
Property or method "generate" is not defined
Property or method "qrcode" is not defined
Property or method "showSecret" is not defined
Error in render: "TypeError: Cannot read property 'length' of undefined"
Cannot read property 'length' of undefined

Do I miss something during the installation process?

Thank you.

Laravel 5.5 and Spark 5.03 - unable to make it work

I followed all of your steps and 2fa appears in the user security profile tab. However I never get prompted to enter code form the authenticator during login. Is there anything else that needs to be done to make this work?

Activating 2fa on spark results in error

Apparently, I need to activate something, though I am not sure on how to do that. The error is

It's not secure to send secret keys to Google Apis, you have to explicitly allow it by calling $google2fa->setAllowInsecureCallToGoogleApis(true).

Where am I supposed to enable this ? Is it a normal behaviour ?
Thanks for the answer.

Error when running artisan route:cache

Hi,

Thank you for making this great package!

When running php artisan route:cache I receive the following error:

Route cache cleared!
[Exception]
Serialization of 'Closure' is not allowed

This took a bit of digging to figure out what was causing this to happen, but when I remove the service provider for this package the error goes away.

This causes issues when deploying with Envoyer which runs the command by default.

[PROPOSAL] Allow enter key to submit verify qr code form

Great work on this and very quickly I may add too!

Just thought I would throw this out there and would do a PR if you're willing to allow me to allow the enter key to submit the verify qr code form after the initial setup of two factor auth for the user...

With your blessing, the PR should take literally a minute ;)

Thanks!

No hint path defined for [google2fa]

After following your installations steps, I get the following error message.

No hint path defined for [google2fa]. (View: resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php) (View: resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php) (View: resources/views/vendor/spark/settings/security/enable-two-factor-auth.blade.php)

The only clue I can find, is that the last command that I should've run, npm run dev, failed on me;

$ npm run dev
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/7.5.0/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v7.5.0
npm ERR! npm  v4.1.2

npm ERR! missing script: dev
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     npm-debug.log

Any clues as to where I could go looking?

Error with PragmaRX\Google2FA

I'm getting the following error. Any pointers?

Call to undefined method PragmaRX\\Google2FA\\Google2FA::setAllowInsecureCallToGoogleApis()

I can't get the 2fa auth panel appear

Hi,
i followed installation and everything was ok. published assets, and put Spark::useTwoFactorAuth(); in SparkServiceProvider -> booted
but i can't manage to get the panel to appear in settings->security
immagine
but, if i open the code, the view pieces are all there
immagine
what i'm doing wrong? please help me as I'm pretty new to Spark...

Service Provider Not Found

I recently upgraded to Spark to spark-aurelius v9.1.0 and now I run into the following error message:

In ProviderRepository.php line 208:
                                                                      
  Class 'Laravel\Spark\Providers\Google2FAServiceProvider' not found

However, I have laravel-spark-google2fa v2.0.2 installed and the service provider in question exists where it has for quite some time in:
/www/laravel/spark/src/Http/Providers/Google2FAServiceProvider.php

I've tried a lot of simple things like clearing the cache and running composer dump-autoload to no avail.

Anyway, has anyone run into a similar issue? I'm not sure where to go from here.

Invalid Barcode caused by spaces in $details['vendor']

Hi,

You need to make your getQrUrl function URL safe by encoding it as spaces or safe characters in the $details['vendor'] string can cause the QR code generation to fail.

Modify line 53 of TwoFactorAuthController to URLencode the vendor details as follows:

$company = isset(Engagement::$details['vendor']) ? urlencode(Engagement::$details['vendor']) : url()->to('/');

That will resolve this bug

Migration clashes

This migration is now attempting to run before my user table has been created.

Can you shift the date of the migration into the future or create the option to publish/override it?

The code is invalid

Hi, I've a Spark 7.1.4 project and I successfully (almost) installed and configured your module (thanks, it's great funcionality). I can add the project on Google Authenticator but when I enter the code to confirm the 2fa activation the code is not valid

Schermata 2020-01-20 alle 18 25 15

Do you have any idea what may cause this kind of behaviour?

Thanks a lot!

Spark 3.0 Compatability

This package no longer works in the latest version of spark due to upgrading to Vue 2.0. There's at least one error with the package, upon attempting to open the modal this error is produced:

[Vue warn]: Inline-template components must have exactly one child element.

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.