Comments (3)
So do what error message tells you to do. The README explains how to add listener for that event.
from cakephp-hybridauth.
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.
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)
- Error after cancel or deny facebook login. HOT 4
- Auth requested url redirect problem HOT 1
- Differentiate between the user who signs in or up HOT 6
- Why HybridAuth.SocialProfiles hasMany instead of belongsTo or hasOne ..? HOT 2
- Unable to login through facebook HOT 8
- Other Providers HOT 1
- Undefined index: login_done HOT 2
- hybridauth v2.10.0 class 'Hybrid_Auth' not found HOT 2
- Redirect to an additional form page after Authentication. HOT 2
- i need user friend list. it's possible HOT 2
- UTF8 problem with special display names
- Problem with database migration HOT 1
- Authentication adapter "ADmad/HybridAuth.HybridAuth" was not found. HOT 2
- Authentication adapter "ADmad/HybridAuth.HybridAuth" was not found.
- Annotations nullable
- Remember Me option?
- Not working anymore? HOT 2
- 'bin' is not recognized as an internal or external command, on Windows 10 HOT 1
- Cake4 beta
- Composer v2 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-hybridauth.