atproto pds pds.zat.dev

fix: allow proxied calls under include: rpc grants #33

Merged brookie.blog
targeting main from brookie.blog/zds:fix-include-rpc-audience
Merged opened by and assigned to brookie.blog
targeting main from brookie.blog/zds:fix-include-rpc-audience
Expanded permission-set grants store their audience percent-encoded (aud=did%3Aweb%3Aapi.bsky.chat%23bsky_chat), but rpcScopeMatches compared that text byte for byte with the proxy's plain audience (did:web:api.bsky.chat#bsky_chat), so every proxied call under an include: grant was refused with InsufficientScope. The audience is now compared decoded. An include: audience the client sent encoded (as the permission spec asks) is decoded before expansion, so it is encoded once rather than as %2523.
Commits 1

fix: allow proxied calls under include: rpc grants