Commit 83513fa
committed
fix(cloud_federation_api): allow multiple access tokens per refresh token
A refresh token may back several concurrent access tokens. E.g. in a multi
protocol share for a webapp the webdav mount and the webapp launcher exchange
the same secret, so the exchange must not assume a single mapping.
Drop the revoke-previous step and the findByRefreshToken (findEntity) lookup, which threw
MultipleObjectsReturnedException once more than one access token existed.
Expiry and unshare cleanup revoke the tokens instead.
Assisted-by: ClaudeCode:claude-fable-5
Signed-off-by: Micke Nordin <kano@sunet.se>1 parent b8a68ae commit 83513fa
3 files changed
Lines changed: 24 additions & 34 deletions
File tree
- apps/cloud_federation_api
- lib
- Controller
- Db
- tests/Controller
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
194 | 184 | | |
195 | 185 | | |
196 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 36 | | |
53 | 37 | | |
54 | 38 | | |
| |||
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
| |||
182 | 178 | | |
183 | 179 | | |
184 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
185 | 201 | | |
186 | 202 | | |
187 | 203 | | |
| |||
0 commit comments