Zanzana: Log token namespace in case of error (#113437)
This commit is contained in:
1 parent
505e025d18
commit
d1334a6dff
1 file changed
+1
-1
@@ -26,7 +26,7 @@ func authorize(ctx context.Context, namespace string, ss setting.ZanzanaServerSe
|
||||
return status.Errorf(codes.Unauthenticated, "unauthenticated")
|
||||
}
|
||||
if !claims.NamespaceMatches(c.GetNamespace(), namespace) {
|
||||
return status.Errorf(codes.PermissionDenied, "namespace does not match")
|
||||
return status.Errorf(codes.PermissionDenied, "token namespace %s does not match request namespace", c.GetNamespace())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user