We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa4fc12 commit c183ec8Copy full SHA for c183ec8
components/server/src/authorization/authorizer.ts
@@ -539,7 +539,7 @@ export async function getSubjectFromCtx(passed: Subject): Promise<SubjectId> {
539
}
540
const match = matchSubjectIds(ctxUserId, passedUserId);
541
reportAuthorizerSubjectId(match);
542
- if (match === "mismatch") {
+ if (match === "mismatch" || match === "ctx-user-id-missing") {
543
try {
544
// Get hold of the stack trace
545
throw new Error("Authorizer: SubjectId mismatch");
0 commit comments