Commit a4ffc38
committed
fix(federatedfilesharing): sign token-exchange request with RFC 9421
The outbound POST to the remote /api/v1/access-token endpoint was
signed using bare OCMSignatoryManager, which falls through to the
draft-cavage path because no rfc9421.format option is set. Wrap the
manager in Rfc9421SignatoryManager so the exchange request is signed
with the Ed25519 key and RFC 9421 signature base, matching what
OCMDiscoveryService::prepareOcmPayload already does for OCM endpoints
when the remote advertises the http-sig capability.
Receiving TokenController auto-detects RFC 9421 vs draft-cavage via
the Signature-Input header, so no inbound change is needed.
Signed-off-by: Micke Nordin <kano@sunet.se>1 parent 26669ae commit a4ffc38
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
759 | 760 | | |
760 | 761 | | |
761 | 762 | | |
762 | | - | |
| 763 | + | |
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
| |||
0 commit comments