Skip to content

Commit c183ec8

Browse files
authored
[auth] Authorizer: log ctx-user-id-missing as well (#19229)
1 parent aa4fc12 commit c183ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/src/authorization/authorizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ export async function getSubjectFromCtx(passed: Subject): Promise<SubjectId> {
539539
}
540540
const match = matchSubjectIds(ctxUserId, passedUserId);
541541
reportAuthorizerSubjectId(match);
542-
if (match === "mismatch") {
542+
if (match === "mismatch" || match === "ctx-user-id-missing") {
543543
try {
544544
// Get hold of the stack trace
545545
throw new Error("Authorizer: SubjectId mismatch");

0 commit comments

Comments
 (0)