Questions tagged [bjyauthorize]

User role module for Zend Framework 2. This module is designed to provide a facade for Zend\Permissions\Acl that will ease its usage with modules and applications.

67 questions
9
votes
4 answers

Zend Framework 2 - BjyAuthorize always denies access

I have setup the bjyoungblood/bjy-authorize module, but I am currently getting a 403 "access denied" error for each URL except for the one configured in the home route. My module.byjauthorize.global.php looks like following: 'bjyauthorize' =>…
Ron
  • 22,128
  • 31
  • 108
  • 206
6
votes
4 answers

zfcuser add user role after registration

I'm using Zend Framework 2 with ZfcUser, BjyAuthorize and Doctrine for the database. Registration etc. works very well so far. My problem is, that registered users have no role assigned, so i want to add the role "user" to the user during…
Nevoxx
  • 117
  • 2
  • 7
5
votes
2 answers

ZF2 - BjyAuthorize - How to Get Rules and Guards from a Database

I'm using BjyAuthorize with Zend Framework2 to implement authorization and was able to successfully integrate roles from database. Now I want to get my Rules and Guards also from data base tables. How can I do this?
Nisal Gunawardana
  • 1,345
  • 16
  • 20
4
votes
1 answer

Give permission for bjyauthorize to run mvc application of ZF2 from CLI

I have a completely running mvc application on ZF2. I want to run some actions from command line. I have properly set up my console routes and other environments. When I run my app from CLI, I got Permission denied exception like this: 'You are not…
3
votes
1 answer

ZfcRbac or BjyAuthorize or both to be used?

I am working on a Zendframework 2 project. I need to implement access control in to my application. This is my first time with zf. When I investigated about ACL i came across 2 modules ZfcRbac and BjyAuthorize. I am confused. My Question is Should…
fSazy
  • 326
  • 1
  • 4
  • 16
3
votes
1 answer

BjyAuthorize object_manager

I am trying to make ZfcUser, ZfcAdmin and BjyAuthorize work together. Now i am getting this error: Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get…
RR_1990
  • 193
  • 1
  • 3
  • 15
3
votes
1 answer

No role detected by BjyAuthorize when login

I am working with ZF2, Doctrine ORM and BjyAuthorize. The problem is that when I got logged in the method getRoles of the identity returns empty. class User implements UserInterface, ProviderInterface{ /** * @var…
José Carlos
  • 1,005
  • 16
  • 29
3
votes
3 answers

How to redirect to the login page with BjyAuthorize

I want to redirect some pages to the login page instead of page 403. By default BjyAuthorize redirects everything to a 403 page. Is it possible to configure this behavior? I found this: RedirectionStrategy. How do I use this?
anasaitali
  • 1,504
  • 21
  • 30
3
votes
2 answers

BjyAuthorize settings file connect with database table

I am using BjyAuthorize to control access in my project. Everything working as expected with hard coded settings in module.bjyauthorize.global.php file. But my requirement is to set users dynamically and assign their user levels dynamically. So I…
Ariks
  • 101
  • 12
3
votes
1 answer

Problems with getting BjyAuthorize activated in zend-developer-toolbar ZF2

Can someone give me some instructions on how to get the user roles into my zf2-toolbar. I have problems getting the user-roles from my role-entity visible in my zend-developer-toolbar. Normaly I solve my own problems, but in this case I'm out of…
Wilt
  • 41,477
  • 12
  • 152
  • 203
2
votes
0 answers

Memory usage exceeds limit in Zend Framework 2

I am using Zend Framework 2.0 with Bjyauthorize in my localhost. I am unbale to get the output due to one Fatal Error as shown here I am using xampp 3.2.1 in Windows 7 and my source code was located at different directory instead of xampp/htdocs/. I…
2
votes
0 answers

Zend: using EntityManager in assertion

I'm using Zend Framework 2.4 with BjyAuthorize module and trying to make an Assertion class for ACL rule. The problem is that I need to make a query to database to make a decision on user's permission (I'm using Doctrine ORM). I tried to pass the…
silentvick
  • 41
  • 5
2
votes
1 answer

Receive white screen when adding guards to bjyauthorize

I'm new to ZF2 and bjyauthorize - so in a way hoping this is a silly mistake on my part :D I have setup the ZF2 skeleton app and zfcUser successfully and am trying to add bjyAuthorize to the mix. I am also using the Zend/Db connection type to mySQL…
Brad White
  • 21
  • 5
2
votes
0 answers

zf2 BjyAuthorize Zfcuser with two different base layout

I have this is problem. In my ZF2 application I manage login system with byjauthorize and zfcuser, and I have two different base layout. One dedicated to the login page and one dedicated to the application when the user is logged in. This is code in…
dastan
  • 45
  • 6
2
votes
0 answers

PHPUnit - The test case was unexpectedly terminated: Debug Error: Class not found: Interface not found

I get this class of error: Debug Error: Class/Interface not found And more abstract one from PHPUnit: The test case was unexpectedly terminated. Specific Example: Debug Error:…
Dennis
  • 7,907
  • 11
  • 65
  • 115
1
2 3 4 5