Skip to content

Commit

Permalink
collect additional auth headers from all multi-auth handlers
Browse files Browse the repository at this point in the history
Signed-off-by: merlinz01 <na@notaccessible.xyz>
  • Loading branch information
merlinz01 committed Aug 29, 2024
1 parent dcf8b8a commit d22df75
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server/auth/types/multiple/multi_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,14 @@ export class MultipleAuthentication extends AuthenticationType {
if (reqAuthType && this.authHandlers.has(reqAuthType)) {
return await this.authHandlers.get(reqAuthType)!.getAdditionalAuthHeader(request);
} else {
return {};
const authHeaders: any = {};
for (const key of this.authHandlers.keys()) {
Object.assign(
authHeaders,
await this.authHandlers.get(key)!.getAdditionalAuthHeader(request)
);
}
return authHeaders;
}
}

Expand Down

0 comments on commit d22df75

Please sign in to comment.