Skip to content

Commit 9c3e61f

Browse files
authored
Merge pull request #459 from dotkernel/5.0-oss
updated readme, oss
2 parents 1a1eff2 + 429ee16 commit 9c3e61f

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ Dotkernel API is an alternative for legacy Laminas API Tools (formerly Apigility
1010

1111
Documentation is available at: https://docs.dotkernel.org/api-documentation/
1212

13+
## Version History
14+
15+
| Branch | Release | PSR-11 | OSS Lifecycle | PHP Version |
16+
|--------|----------|--------|--------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
17+
| 6.0 | `>= 6.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/6.1.0) |
18+
| 5.0 | `< 6.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/5.3.0) |
19+
| 4.0 | `< 5.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/4.5.0) |
20+
| 3.0 | `< 4.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F3.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/3.0.4) |
21+
1322
## Badges
1423

1524
![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/api)

SECURITY.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
## Supported Versions
44

5-
| Version | Supported |
6-
|---------|-------------------------------|
7-
| 6.x | :white_check_mark: |
8-
| 5.x | :white_check_mark: |
9-
| 4.x | :warning: (security-fix only) |
10-
| 3.x | :x: |
11-
| <= 2.0 | :x: |
5+
| Version | Supported | PHP Version |
6+
|---------|--------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
7+
| 6.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/6.1.0) |
8+
| 5.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/5.3.0) |
9+
| 4.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/4.5.0) |
10+
| 3.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fapi%2Fblob%2F3.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/api/3.0.4) |
1211

1312
## Reporting Potential Security Issues
1413

src/App/src/Middleware/AuthenticationMiddleware.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66

77
use Api\App\UserIdentity;
88
use Api\User\Entity\UserRole;
9+
use Mezzio\Authentication\AuthenticationInterface;
910
use Mezzio\Authentication\UserInterface;
1011
use Psr\Http\Message\ResponseInterface;
1112
use Psr\Http\Message\ServerRequestInterface;
13+
use Psr\Http\Server\MiddlewareInterface;
1214
use Psr\Http\Server\RequestHandlerInterface;
1315

14-
class AuthenticationMiddleware extends \Mezzio\Authentication\AuthenticationMiddleware
16+
class AuthenticationMiddleware implements MiddlewareInterface
1517
{
18+
public function __construct(
19+
protected AuthenticationInterface $auth,
20+
) {
21+
}
22+
1623
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
1724
{
1825
$user = $this->auth->authenticate($request);

0 commit comments

Comments
 (0)