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
Logic used to parse parameters within an RPC HTTP request coming from ExtJs is currently located in KJSencha\Controller\DirectController#getRPC().
Proposal
This logic can be decomposed into a simple Zend\Mvc\Router\Http\RouterInterface that will be able to accept requests and produce standard controller and action parameters, along with an RPC object stored in the returned RouteMatch.
This unlocks a set of interesting features:
can add guards at route level (security)
allows usage of standard controller and action parameters in MVC
allows usage of standard controllers in RPC context
can use the mapper service to already avoid matching on non-mapped services (404 instead of 5xx error)
can use guards at dispatch level (since we'll have the actionparameter, this is important if we need to integrate with tools like BjyAuthorize)
Problems
If the controller key is already valued DirectController by the router, we cannot use it for route guards. Same applies for action. We can anyway integrate with our own Route or Controller Guard assuming the end user is using BjyAuthorize. We can then trigger any checks on the Route or Controller guard with our custom parameters.
The text was updated successfully, but these errors were encountered:
Current status
Logic used to parse parameters within an RPC HTTP request coming from ExtJs is currently located in
KJSencha\Controller\DirectController#getRPC()
.Proposal
This logic can be decomposed into a simple
Zend\Mvc\Router\Http\RouterInterface
that will be able to accept requests and produce standardcontroller
andaction
parameters, along with anRPC
object stored in the returnedRouteMatch
.This unlocks a set of interesting features:
route
level (security)controller
andaction
parameters in MVCdispatch
level (since we'll have theaction
parameter, this is important if we need to integrate with tools like BjyAuthorize)Problems
If the
controller
key is already valuedDirectController
by the router, we cannot use it for route guards. Same applies foraction
. We can anyway integrate with our own Route or Controller Guard assuming the end user is using BjyAuthorize. We can then trigger any checks on the Route or Controller guard with our custom parameters.The text was updated successfully, but these errors were encountered: