Commit 7a90a66
committed
FEATURE: Token default lifetime
Adds a configuration option `token.defaultLifetime` that allows to
specify the default expiration of access tokens in seconds.
The default value is `null` (no expiration) for greatest backwards
compatibility.
## Usage:
The following `Settings.yaml` will set the default expiration to
600 seconds (= 10 minutes) in the future:
```yaml
Flownative:
OAuth2:
Client:
token:
defaultLifetime: 600
```
Resolves: #221 parent 0e6a9d9 commit 7a90a66
2 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
264 | 274 | | |
265 | 275 | | |
266 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
0 commit comments