fix callback on protected paths

This commit is contained in:
fuomag9
2025-11-19 17:57:14 +01:00
parent a4916b04da
commit bc3e28d5ab
+7 -1
View File
@@ -527,13 +527,19 @@ function buildProxyRoutes(
}
// Create a catch-all route for non-protected paths (without forward auth)
// Explicitly exclude the outpost path to prevent interference with callback handling
const unprotectedHandlers: Record<string, unknown>[] = [...handlers];
unprotectedHandlers.push(reverseProxyHandler);
hostRoutes.push({
match: [
{
host: domains
host: domains,
not: [
{
path: [`/${authentik.outpostDomain}/*`]
}
]
}
],
handle: unprotectedHandlers,