Using JWT plugin+ ACL manager plugin


I was following this tutorial using this plugin

But now I need to make a REST API with ACL manager, for divide users in groups/roles and some roles/groups/users have different permission for access to diferents methods in controllers…so I use this plugin but try to put this inside of /Api/AppController:

/* public $components = [
‘Acl’ => [
‘className’ => ‘Acl.Acl’

public function initialize()

$this->loadComponent(‘Auth’, [
/‘authorize’ => [
‘Acl.Actions’ => [‘actionPath’ => ‘controllers/’]
‘storage’ => ‘Memory’,
‘authenticate’ => [
‘Form’ => [
‘scope’ => [‘’ => 1]
‘ADmad/JwtAuth.Jwt’ => [
‘parameter’ => ‘token’,
‘userModel’ => ‘Users’,
‘scope’ => [‘’ => 1],
‘fields’ => [
‘username’ => ‘id’
‘queryDatasource’ => true
‘unauthorizedRedirect’ => false,
‘checkAuthIn’ => ‘Controller.initialize’
If I uncomment the lines I recieve this error:

“DbAcl::check() - Failed ACO node lookup in permissions check. Node references”

Existe another way for use ACL+JWT?

Thanks in advance

Anybody found a solution to this? I could successfully do authentication with JWT, but authorization is a different ballgame. The current ACL doesn’t seem to play nice with JWT and I always keep getting a similar permissions check error.

My JWT plugin handles authentication. It has nothing to do with ACL which is for authorization. I have never used the Acl plugin so can’t offer any help.