Giter Club home page Giter Club logo

Comments (3)

ADmad avatar ADmad commented on August 20, 2024

So do what error message tells you to do. The README explains how to add listener for that event.

from cakephp-hybridauth.

sanjib-dev avatar sanjib-dev commented on August 20, 2024

did exactly whats in the README expalins...but still the error persists...even tried to add global listeners..it seems the event is not getting catch in the code..
I do have some other global listeners attached in the code but this seems not working

from cakephp-hybridauth.

dereuromark avatar dereuromark commented on August 20, 2024

I ran into the issue in some edge cases.
The profile is stored, the user is logged in partially already but then it stops with this exception

[RuntimeException]
You must attach a listener for "HybridAuth.newUser" event
which saves new user record and returns an user entity.

Stacktrace:

#0 /app/vendor/admad/cakephp-hybridauth/src/Auth/HybridAuthAuthenticate.php(319): ADmad\HybridAuth\Auth\HybridAuthAuthenticate->_newUser(Object(ADmad\HybridAuth\Model\Entity\SocialProfile))
#1 /app/vendor/admad/cakephp-hybridauth/src/Auth/HybridAuthAuthenticate.php(184): ADmad\HybridAuth\Auth\HybridAuthAuthenticate->_getUser(Object(Hybrid_Provider_Adapter))
#2 /app/vendor/admad/cakephp-hybridauth/src/Auth/HybridAuthAuthenticate.php(199): ADmad\HybridAuth\Auth\HybridAuthAuthenticate->getUser(Object(Cake\Http\ServerRequest))
#3 /app/vendor/cakephp/cakephp/src/Controller/Component/AuthComponent.php(824): ADmad\HybridAuth\Auth\HybridAuthAuthenticate->authenticate(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#4 /app/vendor/admad/cakephp-hybridauth/src/Controller/HybridAuthController.php(49): Cake\Controller\Component\AuthComponent->identify()
#5 /app/vendor/cakephp/cakephp/src/Controller/Controller.php(610): ADmad\HybridAuth\Controller\HybridAuthController->authenticated()
#6 /app/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(120): Cake\Controller\Controller->invokeAction()
#7 /app/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php(94): Cake\Http\ActionDispatcher->_invoke(Object(ADmad\HybridAuth\Controller\HybridAuthController))
#8 /app/vendor/cakephp/cakephp/src/Http/BaseApplication.php(235): Cake\Http\ActionDispatcher->dispatch(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#9 /app/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Http\BaseApplication->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
#10 /app/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php(162): Cake\Http\Runner->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
#11 /app/vendor/cakephp/cakephp/src/Http/Runner.php(65): Cake\Routing\Middleware\RoutingMiddleware->__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))

Not sure how to consistently reproduce.
Also not sure if it is worth it, I will try to migrate to social auth soon.

from cakephp-hybridauth.

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.