diff --git a/auth-server-auth-code.md b/auth-server-auth-code.md index 52948b70..34099c92 100755 --- a/auth-server-auth-code.md +++ b/auth-server-auth-code.md @@ -62,7 +62,7 @@ $refreshTokenRepository = new RefreshTokenRepository(); // instance of RefreshTo $privateKey = 'file://path/to/private.key'; //$privateKey = new CryptKey('file://path/to/private.key', 'passphrase'); // if private key has a pass phrase -$publicKey = 'file://path/to/public.key'; +$encryptionKey = 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'; // generate using base64_encode(random_bytes(32)) // Setup the authorization server $server = new \League\OAuth2\Server\AuthorizationServer( @@ -70,7 +70,7 @@ $server = new \League\OAuth2\Server\AuthorizationServer( $accessTokenRepository, $scopeRepository, $privateKey, - $publicKey + $encryptionKey ); $grant = new \League\OAuth2\Server\Grant\AuthCodeGrant( diff --git a/auth-server-client-credentials.md b/auth-server-client-credentials.md index 72f2bf8d..f7c7c422 100755 --- a/auth-server-client-credentials.md +++ b/auth-server-client-credentials.md @@ -36,7 +36,7 @@ $accessTokenRepository = new AccessTokenRepository(); // instance of AccessToken // Path to public and private keys $privateKey = 'file://path/to/private.key'; //$privateKey = new CryptKey('file://path/to/private.key', 'passphrase'); // if private key has a pass phrase -$publicKey = 'file://path/to/public.key'; +$encryptionKey = 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'; // generate using base64_encode(random_bytes(32)) // Setup the authorization server $server = new \League\OAuth2\Server\AuthorizationServer( @@ -44,7 +44,7 @@ $server = new \League\OAuth2\Server\AuthorizationServer( $accessTokenRepository, $scopeRepository, $privateKey, - $publicKey + $encryptionKey ); // Enable the client credentials grant on the server diff --git a/auth-server-implicit.md b/auth-server-implicit.md index 464ced45..376d5018 100755 --- a/auth-server-implicit.md +++ b/auth-server-implicit.md @@ -48,7 +48,7 @@ $authCodeRepository = new AuthCodeRepository(); // instance of AuthCodeRepositor $privateKey = 'file://path/to/private.key'; //$privateKey = new CryptKey('file://path/to/private.key', 'passphrase'); // if private key has a pass phrase -$publicKey = 'file://path/to/public.key'; +$encryptionKey = 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'; // generate using base64_encode(random_bytes(32)) // Setup the authorization server $server = new \League\OAuth2\Server\AuthorizationServer( @@ -56,7 +56,7 @@ $server = new \League\OAuth2\Server\AuthorizationServer( $accessTokenRepository, $scopeRepository, $privateKey, - $publicKey + $encryptionKey ); // Enable the implicit grant on the server diff --git a/auth-server-password.md b/auth-server-password.md index 69c4bb9d..434a72d6 100755 --- a/auth-server-password.md +++ b/auth-server-password.md @@ -43,7 +43,7 @@ $refreshTokenRepository = new RefreshTokenRepository(); // instance of RefreshTo // Path to public and private keys $privateKey = 'file://path/to/private.key'; //$privateKey = new CryptKey('file://path/to/private.key', 'passphrase'); // if private key has a pass phrase -$publicKey = 'file://path/to/public.key'; +$encryptionKey = 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'; // generate using base64_encode(random_bytes(32)) // Setup the authorization server $server = new \League\OAuth2\Server\AuthorizationServer( @@ -51,7 +51,7 @@ $server = new \League\OAuth2\Server\AuthorizationServer( $accessTokenRepository, $scopeRepository, $privateKey, - $publicKey + $encryptionKey ); $grant = new \League\OAuth2\Server\Grant\PasswordGrant( diff --git a/auth-server-refresh-token.md b/auth-server-refresh-token.md index 398d2962..e2fa707f 100755 --- a/auth-server-refresh-token.md +++ b/auth-server-refresh-token.md @@ -39,7 +39,7 @@ $refreshTokenRepository = new RefreshTokenRepository(); // Path to public and private keys $privateKey = 'file://path/to/private.key'; //$privateKey = new CryptKey('file://path/to/private.key', 'passphrase'); // if private key has a pass phrase -$publicKey = 'file://path/to/public.key'; +$encryptionKey = 'lxZFUEsBCJ2Yb14IF2ygAHI5N4+ZAUXXaSeeJm6+twsUmIen'; // generate using base64_encode(random_bytes(32)) // Setup the authorization server $server = new \League\OAuth2\Server\AuthorizationServer( @@ -47,7 +47,7 @@ $server = new \League\OAuth2\Server\AuthorizationServer( $accessTokenRepository, $scopeRepository, $privateKey, - $publicKey + $encryptionKey ); $grant = new \League\OAuth2\Server\Grant\RefreshTokenGrant($refreshTokenRepository);