Commit 1d6520b
committed
token service: Handle unrecovable, expiring tokens
Artifactory servers have a global configuration
`minimum-revocable-expiry` which dictates that any token whose expiry is
less than the global minimum cannot be revoked and must expire
naturally. [1]
If the revoke API is used on a token who expiry is less than
minimum-revocable-expiry then Artifactory appears to return a 500 status
code, although this is undocumented.
The plugin is unaware of this configuration and will optimistically
attempt to revoke tokens and assume it is no revocable if such an error
occurs.
1: https://www.jfrog.com/confluence/display/ACC/Access+Tokens#AccessTokens-GeneratingExpirableTokens1 parent 5f22e67 commit 1d6520b
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
| |||
0 commit comments