Setting the new $encryptionKey parameter will invalidate the already generated refresh tokens. Not setting that will give the headache of too many error logs :(.
Not a backward compatible change at all :(
@alexbilbie In addition to that, we have to make web server user as owner for public key. Because the latest update trying to set 600 permission to public key.
As vigneshgurusamy said, the chmod() leads to an exception raised:
Warning: chmod(/home/myname/example-project/certificates/public.key): Operation failed:
Operation not permitted in League\OAuth2\Server\CryptKey->__construct() (line 51 of
/home/myname/example-project/vendor/league/oauth2-server/src/CryptKey.php)
This implemented broke a lot, example if you are testing using apache I have to change the owner to www-data, and with that I can not use php artisan passport: install.
*sorry my english
Also have the things broken here.
The file ownership breakes many laravel commands, including tinker
the implementation is wrong
if ($keyPathPerms !== '600') {
you cant say that this is the perfect permission.
you might have set up the file with permission to the group
which you then have
'660'
please revert this
I'm going to release an update that doesn't hard error but just throws warnings instead
I still think is some cases even a warning is wrong
My folder is protect correct and is not 600 but is protected according to all security manuals.
I have released 5.1.5 which replaces the hard errors with notices and deprecation warnings.
It is correct behaviour that the key should be owned by the server process to prevent possibility of token forgery by replacing the server鈥檚 public key or leakage of the key by an attacker or rogue other process.
Most helpful comment
the implementation is wrong
if ($keyPathPerms !== '600') {you cant say that this is the perfect permission.
you might have set up the file with permission to the group
which you then have
'660'please revert this