Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 7c231fa

Browse files
committed
Update docs to reflect new functionality
1 parent dfc9790 commit 7c231fa

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/book/intro.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ If you need an introduction to OAuth2, you can read the following references:
2222

2323
In order to implement the OAuth2 server, we first need to configure it. The
2424
first 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
```
3434
Private key stored in:
35-
./data/private.key
35+
./data/oauth/private.key
3636
Public key stored in:
37-
./data/public.key
37+
./data/oauth/public.key
3838
Encryption key stored in:
39-
./data/encryption.key
39+
./data/oauth/encryption.key
4040
```
4141

4242
The script will generate public and private keys, and an encryption key.
@@ -52,9 +52,9 @@ The default values are:
5252

5353
```php
5454
return [
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

6969
The `private_key` and `public_key` values contains the paths to the previous
7070
generated 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

7373
The `access_token_expire` value is the time-to-live (TTL) value of the access
7474
token. The time period is represented using the [DateInterval](http://php.net/manual/en/class.dateinterval.php)

0 commit comments

Comments
 (0)