Releases: zendframework/zend-expressive-authorization
zend-expressive-authorization 1.0.1
zend-expressive-authorization 1.0.0
Added
- Usage of zend-expressive-authentication ^1.0.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-expressive-authorization 0.4.0
Added
- #16 adds support for PSR-15.
Changed
-
#18 changes the constructor of the
Zend\Expressive\Authorization\AuthorizationMiddleware
class to accept a callable$responseFactory
instead of aPsr\Http\Message\ResponseInterface
response prototype. The$responseFactory
should produce aResponseInterface
implementation when invoked. -
#18 updates the
AuthorizationMiddlewareFactory
to no longer useZend\Expressive\Authentication\ResponsePrototypeTrait
, and instead always depend on thePsr\Http\Message\ResponseInterface
service to correctly return a PHP callable capable of producing aResponseInterface
instance.
Deprecated
- Nothing.
Removed
-
#19 removes the file
config/authorization.php
and merges its contents into theZend\Expressive\Authorization\ConfigProvider
class. -
#16 and #11 remove support for http-interop/http-middleware and http-interop/http-server-middleware.
Fixed
- Nothing.
zend-expressive-authorization 1.0.0alpha2
Added
- Nothing.
Changed
-
#18 changes the constructor of the
Zend\Expressive\Authorization\AuthorizationMiddleware
class to accept a callable$responseFactory
instead of aPsr\Http\Message\ResponseInterface
response prototype. The$responseFactory
should produce aResponseInterface
implementation when invoked. -
#18 updates the
AuthorizationMiddlewareFactory
to no longer useZend\Expressive\Authentication\ResponsePrototypeTrait
, and instead always depend on thePsr\Http\Message\ResponseInterface
service to correctly return a PHP callable capable of producing aResponseInterface
instance.
Deprecated
- Nothing.
Removed
- #19 removes the file
config/authorization.php
and merges its contents into theZend\Expressive\Authorization\ConfigProvider
class.
Fixed
- Nothing.
zend-expressive-authorization 1.0.0alpha1
zend-expressive-authorization 0.3.0
Added
- #13 adds a requirement on the zend-expressive-authentication package, v 0.2.0 and up.
Changed
-
#13 modifies the
AuthorizationMiddleware
workflow. It now looks for aZend\Expressive\Authentication\UserInterface
request parameter that implements that interface; with none available, it returns a 401 status. Additionally, it now usesUserInterface::getUserRoles()
, which returns an array of roles; as such, it loops through each, delegating request processing for the first role granted permission. -
#13 pins to http-interop/http-middleware 0.4.1, as that is the most recent version supported by zend-expressive-authentication.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-expressive-authorization 0.2.0
Added
- #8 adds support for http-interop/http-middleware 0.5.0 via a polyfill provided by the package webimpress/http-middleware-compatibility. Essentially, this means you can drop this package into an application targeting either the 0.4.1 or 0.5.0 versions of http-middleware, and it will "just work".
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
zend-expressive-authorization 0.1.0
Initial release.