mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-24 05:59:48 +05:30
825668e7c0
Changed upgrade guide to make it clear version 5 is not compatible with any versions of the 6.x.x branch
816 B
816 B
layout | title | permalink |
---|---|---|
default | Upgrade Guide | /upgrade-guide/ |
Upgrade Guide
5.1.x → 6.x.x
Version 6.x.x
is not backwards compatible with version 5.1.x
but only requires you to make one line of code change:
$server = new AuthorizationServer(
$clientRepository,
$accessTokenRepository,
$scopeRepository,
$privateKeyPath,
+ 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'
- $publicKeyPath
);
All you need to do is replace the public key that was being passed into the constructor of AuthorizationServer
with a 32 bit encryption key.
To generate an encryption key for the AuthorizationServer
run the following command in the terminal:
{% highlight shell %} php -r 'echo base64_encode(random_bytes(32)), PHP_EOL;' {% endhighlight %}