Commit 66affad
committed
Protect Against Any Token Parsing Failure
Previously, we only protected against the possibility that a parsed token
wasn't really a JWT token at all. This lead us into the situation where debug
logging a token that was invalid (e.g. had already expired) would crash the
entire system. Since logging (especially debug logging), should never be
terminal this change updates the code to protect against all parsing failures
and simply truncate logging instead of crashing the system.
[#569]1 parent 3e4cad0 commit 66affad
File tree
1 file changed
+1
-2
lines changed- cloudfoundry-client-reactor/src/main/java/org/cloudfoundry/reactor/tokenprovider
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
148 | | - | |
| 147 | + | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
0 commit comments