From 6da2fa0fa76fefed959fad02859da9c0453e1781 Mon Sep 17 00:00:00 2001 From: Matthieu Sieben Date: Tue, 13 Aug 2024 12:41:16 +0200 Subject: [PATCH] fix(pds): ensure presence of DPoP related response headers --- packages/pds/src/pipethrough.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pds/src/pipethrough.ts b/packages/pds/src/pipethrough.ts index 855fb438202..5a85d62b3e0 100644 --- a/packages/pds/src/pipethrough.ts +++ b/packages/pds/src/pipethrough.ts @@ -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') }