Commit 3b475f9
committed
Recover from all refresh-token related errors by requesting a new token
- When the UAA throws an error other than HTTP 401, the refresh token
flow fails, and can lead to irrecoverable errors where there
application needs to be restarted. This changes ensure we are
resilitent to all UAA errors. The downside is that we may not retry
using a refresh token when it fails for an unrelated reason (eg HTTP
503), requesting access tokens more frequently. The impact should be
extremely marginal.
Signed-off-by: Daniel Garnier-Moiroux <daniel.garnier-moiroux@broadcom.com>1 parent 2b52144 commit 3b475f9
File tree
1 file changed
+2
-8
lines changed- cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/tokenprovider
1 file changed
+2
-8
lines changedLines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 254 | + | |
| 255 | + | |
262 | 256 | | |
263 | 257 | | |
264 | 258 | | |
| |||
0 commit comments