Skip to content

Commit dde0a7d

Browse files
committed
Fix incorrect default aud in service proxying
1 parent a9a7388 commit dde0a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pegasus/lib/xrpc.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ let service_proxy ?lxm ?aud (ctx : context) =
209209
| None ->
210210
Errors.invalid_request "invalid proxy header"
211211
in
212-
let aud = Option.value aud ~default:service_did in
212+
let aud = Option.value aud ~default:(service_did ^ "#" ^ service_type) in
213213
let lxm = Option.value lxm ~default:nsid in
214214
Auth.assert_rpc_scope ctx.auth ~aud ~lxm ;
215215
let fragment = "#" ^ service_type in

0 commit comments

Comments
 (0)