Closed klAvAx closed 3 years ago
Thanks a lot. These fixes solved the problems with my PHP 7.4.16 installation.
Code Climate has analyzed commit e8a01dd8 and detected 0 issues on this pull request.
View more on Code Climate.
sorry for the late response.., anyway, thanks for your contribution 😀
Using PHP 7.4.12 And CodeIgniter 4.1.1 2 Functionality breaking errors: FIX For "Declaration of Heimdall\Http\Headers::normalizeKey($key) must be compatible with Heimdall\Interfaces\Http\HeadersInterface::normalizeKey($key)" Error FIX For "Return value of Heimdall\Server\HeimdallAuthorizationServer::return() must be an instance of CodeIgniter\HTTP\Response, none returned" Error
Did follow execution order as best i could but it seems current resource server implementation only validates token, it should return or pass some data to main controller, currently (CI 4.1.1) viable through request header data or global data. By phpleague's docs 'resource server' should return some header attributes but it looks like codeigniter does not support that and is using PSR4, maybe this workaround is not good but i believe it is one of essential functions of this library. ENHANCEMENT "If the access token is valid then attributes as per phpleague's oauth2 docs will be accessible via $this->request->header('authorization')->getValue()"