Accordingly to this docs https://apigility.org/documentation/auth/user-differentiation we should have this config:
return [ 'zf-mvc-auth' => [ 'authentication' => [ 'map' => [ 'DbApi\\V1' => 'oauth2', 'ZF\\OAuth2' => 'session', ],
where “session” is session adapter which checks if user is logged in. But xdebug shows that ‘ZF\OAuth2’ controller never calls. What have I done wrong? I have done all accordingly to that documentation but oauth2 with apigility doesnot works. I still getting “403 Forbidden” at my rest api pages. Have somebody the working example of zf3, apigility and oauth2? I want to make all my ajax calls to the apigility. Also, I want to make ajax call to the apaigility from the admin panel, which assumed that user is “admin”.