-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add PSR15/PSR-17 compliant middleware #1029
base: master
Are you sure you want to change the base?
add PSR15/PSR-17 compliant middleware #1029
Conversation
Apologies for the delay on looking at this @datapp. I'm planning on merging this in later today although I will likely move the middleware into its own PSR folder instead of including PSR in the name. Many thanks for your efforts with this! |
This branch has not been merged yet. Could you merge it please @Sephster ? |
Sorry I completely forgot about this. I'm focusing on the Device Auth Grant at the moment but will pick this up as soon as I can. |
bump :-) |
bump, please - this looks good 👍 |
any updates on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Authorization Server Middleware doesn`t work :-(
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface | ||
{ | ||
try { | ||
$response = $this->server->respondToAccessTokenRequest($request, $this->responseFactory->createResponse()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should return the response here
} | ||
|
||
// Pass the request on to the next responder in the chain | ||
return $handler->handle($request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This statement is unreachable.
$requestHandlerMock | ||
); | ||
|
||
$this->assertEquals(200, $response->getStatusCode()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests for the body of the response. Now it is empty.
@Sephster any change you may (correct if and) merge this these days? |
resolves issue #942