We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dde0a7d commit b00ac04Copy full SHA for b00ac04
pegasus/lib/xrpc.ml
@@ -209,10 +209,10 @@ let service_proxy ?lxm ?aud (ctx : context) =
209
| None ->
210
Errors.invalid_request "invalid proxy header"
211
in
212
- let aud = Option.value aud ~default:(service_did ^ "#" ^ service_type) in
+ let aud = Option.value aud ~default:service_did in
213
let lxm = Option.value lxm ~default:nsid in
214
- Auth.assert_rpc_scope ctx.auth ~aud ~lxm ;
215
let fragment = "#" ^ service_type in
+ Auth.assert_rpc_scope ctx.auth ~aud:(aud ^ fragment) ~lxm ;
216
match%lwt Id_resolver.Did.resolve service_did with
217
| Ok did_doc -> (
218
let scheme, host =
0 commit comments