Questions tagged [zfc-rbac]

21 questions
0
votes
1 answer

How can I move my zfc-rbac guard config into Doctrine?

I have permissions and roles built into an admin inside of zf2. I want to move the guards from the config file to the db. I see there is a GuardInterface but I don't see a guide in the zfc-rbac…
0
votes
1 answer

ZendDeveloperTools not working with ZfcRbac

I installed ZfcRbac instead of BjyAuthorize. Toolbar of ZendDeveloperTools is partially working. I cannot find a reason for the following warning. What is missing in my setup ? Warning: Invalid argument supplied for foreach() in…
vlr
  • 780
  • 4
  • 16
  • 33
0
votes
0 answers

Zfc-rbac redirect to referrer after login

Is there a way for me redirect to the referring url after logging in? I have this in my config: 'redirect_strategy' => [ 'redirect_when_connected' => false, 'redirect_to_route_connected' => 'home', …
gmaniac
  • 940
  • 1
  • 17
  • 33
0
votes
1 answer

How to redirect an unauthorized user to the 403 page

I am using ZendFramework2 with zfc-user and ZfcRbac for authorization and access control. I have setup everything to work with database managed role. Now when a user navigate to an un-authorized page, I am getting the error page You are not…
Muneer
  • 7,384
  • 7
  • 38
  • 62
0
votes
2 answers

Where to add guard config information of zfc-rbac?

I am following this guide to add Zfc-Rbac in my application. But I can't figure out where to put this configuration information. Application\config\application.config.files or Application\modules\modulename\config\module.config.php
mrN
  • 3,734
  • 15
  • 58
  • 82
0
votes
1 answer

zfc-rbac identity_provider issue

I'm having an issue with zfcrbac that I can't figure out. I think I might missed something in configuration but I have read a few times the documentation with out any clue. Whenever I try to use this I get "Argument 1 passed to…
user973783
  • 111
  • 7
1
2