Skip to content

Commit

Permalink
fix(pds): ensure presence of DPoP related response headers
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed Aug 13, 2024
1 parent 94df42d commit 6da2fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pds/src/pipethrough.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const proxyHandler = (ctx: AppContext): CatchallHandler => {
return async (req, res, next) => {
try {
const { url, aud, nsid } = await formatUrlAndAud(ctx, req)
const auth = await accessStandard({ req })
const auth = await accessStandard({ req, res })
if (!auth.credentials.isPrivileged && PRIVILEGED_METHODS.has(nsid)) {
throw new InvalidRequestError('Bad token method', 'InvalidToken')
}
Expand Down

0 comments on commit 6da2fa0

Please sign in to comment.