You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change your app.php, Add `OAuthServer` configuration :
57
63
58
-
```bash
64
+
```php
59
65
'OAuthServer' => [
60
66
'privateKey' => CONFIG . 'oauth.pem',
61
67
'publicKey' => CONFIG . 'oauth.pub',
@@ -371,3 +377,67 @@ The server also fires a number of events that can be used to inject values into
371
377
*`OAuthServer.afterDeny` - On the user denying the client
372
378
373
379
You can customise the OAuth authorise page by creating a overriding template file in `src/Template/Plugin/OAuthServer/OAuth/authorize.ctp`
380
+
381
+
### Component/Authenticator Options
382
+
383
+
-`OAuthServer.privateKey`
384
+
385
+
REQUIRED: Set your private key filepath.
386
+
387
+
The key file should be don't readable other user. (file permission is `400`, `440`, `600`, `640`, `660`)
388
+
389
+
-`OAuthServer.publicKey`
390
+
391
+
REQUIRED: Set your public key filepath. That generated from the above private key.
392
+
393
+
The key file should be don't readable other user. (file permission is `400`, `440`, `600`, `640`, `660`)
394
+
395
+
-`OAuthServer.encryptionKey`
396
+
397
+
REQUIRED: Set your encryption key string. That generated from `vendor/bin/generate-defuse-key` command.
398
+
399
+
-`OAuthServer.accessTokenTTL`
400
+
401
+
Optional: Set access token TTL. Specify a format that can be interpreted by the [DateInterval](https://www.php.net/manual/en/dateinterval.construct.php) class.
402
+
403
+
default: `PT1H` (1 hour)
404
+
405
+
-`OAuthServer.refreshTokenTTL`
406
+
407
+
Optional: Set refresh token TTL. Specify a format that can be interpreted by the [DateInterval](https://www.php.net/manual/en/dateinterval.construct.php) class.
408
+
409
+
default: `P1M` (1 month)
410
+
411
+
-`OAuthServer.authCodeTTL`
412
+
413
+
Optional: Set auth code TTL. Specify a format that can be interpreted by the [DateInterval](https://www.php.net/manual/en/dateinterval.construct.php) class.
414
+
415
+
default: `PT10M` (10 minutes)
416
+
417
+
-`OAuthServer.supportedGrants`
418
+
419
+
Optional: Set supported grant types. This option can be the following list: `AuthCode`, `RefreshToken`, `ClientCredentials`, `Password`.
0 commit comments