You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a narrative description of what you are trying to accomplish.
Code to reproduce the issue
Run composer test on windows
Expected results
Tests pass.
Actual results
ZendTest\Expressive\Authentication\OAuth2\AuthorizationServerFactoryTest::testInvokeWithValidData
Key file "file://~\Projects\zendframwork\zend-expressive-authentication-oauth2\test/TestAsset/private.key" permissions are not correct, should be 600 or 660 instead of 666
The issue is caused in league/oauth2-server due to Windows having a different approach for file permissions.
There are several issues/requests for it to implement compatibility for the Windows file permission system (one example). However this is rather difficult.
An alternative could be to disable permission check when running tests on Windows, but that complicates test scenarios. Also there is no Windows build in the CI, this would make tests not transparent... For development purposes I would suggest using e.g. WSL2.
If there are ideas how to solve the problem here on GitHub and / or in local development environment, please create a new issue report or better a pull request.
Provide a narrative description of what you are trying to accomplish.
Code to reproduce the issue
Run
composer test
on windowsExpected results
Tests pass.
Actual results
Key file "file://~\Projects\zendframwork\zend-expressive-authentication-oauth2\test/TestAsset/private.key" permissions are not correct, should be 600 or 660 instead of 666
Originally posted by @geerteltink at zendframework/zend-expressive-authentication-oauth2#10
The text was updated successfully, but these errors were encountered: