Comments (20)
Are we sure this isn't somehow a problem of ZfcUser
itself then? :\ Will need to reproduce...
from bjyauthorize.
Can you give us a stack trace?
from bjyauthorize.
Thanks for your quick answers. You may find the whole stack trace here.
from bjyauthorize.
This is happening because the route stack doesn't set the request uri until onRoute. Should we inject the request uri into the route stack before doing $router->assemble in HybridAuthFactory?
from bjyauthorize.
Thx @SocalNick, now I see where this is happening. What are the services instantiated when zfcuser_auth_service
is requested? Not sure about who should fix this, but assembling without a valid router is obviously broken :)
from bjyauthorize.
Hey guys, can you try v1.6.1 of ScnSocialAuth: https://github.com/SocalNick/ScnSocialAuth/tree/1.6.1
from bjyauthorize.
@jhuet ping?
from bjyauthorize.
Woohoo, it fixed it ! Thanks to you all ! 🍻
from bjyauthorize.
Okay, i've been a bit too fast on closing that one.
Something else is preventing both modules to work together and it's pretty much related to what @SocalNick found before.
In fact, when ScnSocialAuth is assembling from the router with the home
route, it looks like it's making BjyAuthorize's route guard to always retrieve the home
route. Thus it checks for a route/home
and if it passes redirects to this route, no matter what route we really are on.
from bjyauthorize.
@jhuet assembling doesn't trigger Zend\Mvc\MvcEvent::EVENT_ROUTE
... Are you sure about this problem?
from bjyauthorize.
Commenting out the call to assemble
and filling $baseUrl
with mine make it work, so i felt like that was the cause.
from bjyauthorize.
@jhuet really weird... no ideas on this topic or why that event is fired...
from bjyauthorize.
@jhuet - I made a fix in 1.6.2 and 1.7.1. But I agree with @Ocramius - assembling should not trigger a route event.
from bjyauthorize.
@jhuet do you have a stack trace?
from bjyauthorize.
1.7.1 did fix it.
@Ocramius, how would you suggest to have a pertinent stack trace ? I tried throwing an exception late in the code but the stack trace wasn't of much use.
from bjyauthorize.
I just wanted to check what piece of code triggers routing there.
from bjyauthorize.
@jhuet you can also attach a listener to the dispatch.error event
from bjyauthorize.
is this issue fixed?
from bjyauthorize.
It is thanks to last version of ScnSocialAuth.
@Ocramius i couldn't get an interesting stack trace. I'll ping you on IRC one day to see that i guess.
from bjyauthorize.
I'm closing this one. @jhuet if you get anything reproducible, I think this is an issue of Zend\Mvc
itself then.
from bjyauthorize.
Related Issues (20)
- Controller Guard action name HOT 1
- Super role full access HOT 3
- [Question] Why is the User table named "users" and not "user"? HOT 20
- Guards should conform the other onRoute/onDispatch listeners
- Can't use flashMessenger on RedirectionStrategy HOT 1
- Assign diferent roles to one user HOT 1
- Exception UnAuthorizedException thrown instead of error/403 template HOT 7
- Problem when not defined guard to access
- Action get have no permissions HOT 1
- Fatal error: unable to fetch or create an instance for BjyAuthorize\Config' HOT 1
- Strange behaviour in role assigning HOT 1
- Get current user role
- Unauthorized is a word and should not be CamelCased as if it were two words HOT 1
- isAllowed only works after reload HOT 1
- Not working with zendframework/zend-eventmanager (2.6.2) HOT 1
- RedirectionStrategy doesnt work on latest zf2 HOT 1
- Question: How can I load roles from database withouth using doctrine?
- Is this module discontinued? HOT 14
- getting an error during phpunit testing.
- Use BjyAuthorize with ZF3 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 bjyauthorize.