Commit 1d521d4
committed
fix: sign cloudery token under 'settings' subject
Drive's installed permission doc grants only GET on
io.cozy.nextcloud.migrations. The Stack ignores a JWT's `scope`
claim for app-audience tokens and authorizes from the named
webapp's perm doc, so every PUT against the tracking doc came
back 403: setRunning failed mid-migration, and the recovery
flushAndFail write 403'd in turn, leaving the doc stuck in
pending. The Settings app owns the migration UI and has ALL
verbs on the doctype, so piggybacking there gives the service
the writes it actually needs.1 parent defccab commit 1d521d4
2 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments