I'm having a Parent Role id "user" does not exist
error
What I'm trying to get BjyAuthorize to work. In my config, I have
'bjyauthorize' => array(
// Using the authentication identity provider, which basically reads the roles from the auth service's identity
'identity_provider' => 'BjyAuthorize\Provider\Identity\AuthenticationIdentityProvider',
'resource_providers' => [
'BjyAuthorizeProviderResourceConfig' => [
'user' => [],
],
],
'role_providers' => array(
// using an object repository (entity repository) to load all roles into our ACL
'BjyAuthorize\Provider\Role\ObjectRepositoryProvider' => array(
'object_manager' => 'doctrine.entity_manager.orm_default',
'role_entity_class' => 'SorgcaUser\Entity\Role',
),
'BjyAuthorizeProviderResourceConfig' => array(
'allow' => array(
array('user', 'admin', 'manage'),
),
),
),
),
In my controller I would simply call $this->isAllowed('admin', 'manage');
Now, calling isAllowed function will throw the error saying my Parent Role id does not exist
But, in my user_role
table, I have
I'm not really sure how to begin debugging. Please advice.