Skip to content

Commit 1e89159

Browse files
committed
Merge branch 'hotfix/13'
Close #13
2 parents e06b440 + e322138 commit 1e89159

File tree

6 files changed

+295
-110
lines changed

6 files changed

+295
-110
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 0.3.0 - 2017-11-28
6+
7+
### Added
8+
9+
- [#13](https://github.com/zendframework/zend-expressive-authorization/pull/13) adds
10+
a requirement on the zend-expressive-authentication package, v 0.2.0 and up.
11+
12+
### Changed
13+
14+
- [#13](https://github.com/zendframework/zend-expressive-authorization/pull/13)
15+
modifies the `AuthorizationMiddleware` workflow. It now looks for a
16+
`Zend\Expressive\Authentication\UserInterface` request parameter that
17+
implements that interface; with none available, it returns a 401 status.
18+
Additionally, it now uses `UserInterface::getUserRoles()`, which returns an
19+
array of roles; as such, it loops through each, delegating request processing
20+
for the first role granted permission.
21+
22+
- [#13](https://github.com/zendframework/zend-expressive-authorization/pull/13)
23+
pins to http-interop/http-middleware 0.4.1, as that is the most recent version
24+
supported by zend-expressive-authentication.
25+
26+
### Deprecated
27+
28+
- Nothing.
29+
30+
### Removed
31+
32+
- Nothing.
33+
34+
### Fixed
35+
36+
- Nothing.
37+
538
## 0.2.0 - 2017-10-09
639

740
### Added

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
},
2323
"require": {
2424
"php": "^7.1",
25+
"http-interop/http-middleware": "^0.4.1",
2526
"psr/container": "^1.0",
2627
"psr/http-message": "^1.0.1",
2728
"webimpress/http-middleware-compatibility": "^0.1.1",
29+
"zendframework/zend-expressive-authentication": "^0.2 || ^1.0",
2830
"zendframework/zend-expressive-router": "^2.2"
2931
},
3032
"require-dev": {

0 commit comments

Comments
 (0)