@@ -22,21 +22,21 @@ If you need an introduction to OAuth2, you can read the following references:
2222
2323In order to implement the OAuth2 server, we first need to configure it. The
2424first step is to generate new cryptographic keys. We need to execute the script
25- ` bin/generate-keys.php ` in order to generate these keys.
25+ ` bin/zend-expressive-authentication-oauth2- generate-keys ` in order to generate these keys.
2626
2727``` bash
28- $ php vendor/bin/generate-keys.php
28+ $ ./ vendor/bin/zend-expressive-authentication-oauth2- generate-keys
2929```
3030
31- This script will store the keys in the ` data ` folder:
31+ This script will store the keys in the parent application ` data ` folder if found :
3232
3333```
3434Private key stored in:
35- ./data/private.key
35+ ./data/oauth/ private.key
3636Public key stored in:
37- ./data/public.key
37+ ./data/oauth/ public.key
3838Encryption key stored in:
39- ./data/encryption.key
39+ ./data/oauth/ encryption.key
4040```
4141
4242The script will generate public and private keys, and an encryption key.
@@ -52,9 +52,9 @@ The default values are:
5252
5353``` php
5454return [
55- 'private_key' => __DIR__ . '/../data/private.key',
56- 'public_key' => __DIR__ . '/../data/public.key',
57- 'encryption_key' => require __DIR__ . '/../data/encryption.key',
55+ 'private_key' => __DIR__ . '/../data/oauth/ private.key',
56+ 'public_key' => __DIR__ . '/../data/oauth/ public.key',
57+ 'encryption_key' => require __DIR__ . '/../data/oauth/ encryption.key',
5858 'access_token_expire' => 'P1D',
5959 'refresh_token_expire' => 'P1M',
6060 'auth_code_expire' => 'PT10M',
@@ -68,7 +68,7 @@ return [
6868
6969The ` private_key ` and ` public_key ` values contains the paths to the previous
7070generated pair of keys. The ` encryption_key ` contains the encryption key value
71- as a string, as stored in the ` data/encryption.key ` file.
71+ as a string, as stored in the ` data/oauth/ encryption.key ` file.
7272
7373The ` access_token_expire ` value is the time-to-live (TTL) value of the access
7474token. The time period is represented using the [ DateInterval] ( http://php.net/manual/en/class.dateinterval.php )
0 commit comments