You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
i have updated Apigility today and run in to this behaviour:
The oauth2 authentication rules did not work and everything was outside of authentication and served without checking if user has right Authorization header set.
What i found was that, whe i change this code in module/Application/Module.php
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
to
$mvcAuthEvent = new MvcAuthEvent($e, $serviceManager->get('authentication'), $serviceManager->get('authorization'));
$moduleRouteListener = new MvcRouteListener($mvcAuthEvent, $eventManager, $serviceManager->get('authentication'));
$moduleRouteListener->attach($eventManager);
everything is working again.
Was it intended to change it manually, so that you could use your own AuthListener or was it removed for ZF3 purpose?
I'm curious why nobody else was running into this...
And if it's not a bug, is it a valid approach to use the MvcAuthEvent like this?
The text was updated successfully, but these errors were encountered:
Hi,
i have updated Apigility today and run in to this behaviour:
The oauth2 authentication rules did not work and everything was outside of authentication and served without checking if user has right Authorization header set.
What i found was that, whe i change this code in module/Application/Module.php
to
everything is working again.
Was it intended to change it manually, so that you could use your own AuthListener or was it removed for ZF3 purpose?
I'm curious why nobody else was running into this...
And if it's not a bug, is it a valid approach to use the MvcAuthEvent like this?
The text was updated successfully, but these errors were encountered: