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
The goal is that the auth and error handling could move out of the main EndpointInterface, and auth moves into some kind of AuthenticatedEndpointInterface in 4.0, so changes should enable this. Error handling may get its own interface; probably inspired by MiddlewareInterface but also taking Throwable in place of the ResponseHandlerInterface
For auth specifically, it will need access to the endpoint being authenticated against. The attributes component of ServerRequestInterface is a possibility here, but that's going to be really challenging to get things in the right order (and other MW could strip it out or otherwise make a mess). PSR-15 meta goes into this a bit. Alternatively, extending the MiddlewareInterface to have an Endpoint injector may work
The text was updated successfully, but these errors were encountered:
The goal is that the auth and error handling could move out of the main EndpointInterface, and auth moves into some kind of AuthenticatedEndpointInterface in 4.0, so changes should enable this. Error handling may get its own interface; probably inspired by MiddlewareInterface but also taking Throwable in place of the ResponseHandlerInterface
For auth specifically, it will need access to the endpoint being authenticated against. The attributes component of ServerRequestInterface is a possibility here, but that's going to be really challenging to get things in the right order (and other MW could strip it out or otherwise make a mess). PSR-15 meta goes into this a bit. Alternatively, extending the MiddlewareInterface to have an Endpoint injector may work
The text was updated successfully, but these errors were encountered: