Skip to content

Commit

Permalink
[auth] Authorizer: log ctx-user-id-missing as well (#19229)
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl authored Dec 11, 2023
1 parent aa4fc12 commit c183ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/server/src/authorization/authorizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ export async function getSubjectFromCtx(passed: Subject): Promise<SubjectId> {
}
const match = matchSubjectIds(ctxUserId, passedUserId);
reportAuthorizerSubjectId(match);
if (match === "mismatch") {
if (match === "mismatch" || match === "ctx-user-id-missing") {
try {
// Get hold of the stack trace
throw new Error("Authorizer: SubjectId mismatch");
Expand Down

0 comments on commit c183ec8

Please sign in to comment.