escape proxy for multitenant scenario, rename fcn

This commit is contained in:
Max Peintner
2025-01-29 10:44:26 +01:00
parent 04f9b47960
commit 68515bda7e
38 changed files with 101 additions and 99 deletions

View File

@@ -2,7 +2,7 @@ import { Alert } from "@/components/alert";
import { ChangePasswordForm } from "@/components/change-password-form";
import { DynamicTheme } from "@/components/dynamic-theme";
import { UserAvatar } from "@/components/user-avatar";
import { getApiUrlOfHeaders } from "@/lib/service";
import { getServiceUrlFromHeaders } from "@/lib/service";
import { loadMostRecentSession } from "@/lib/session";
import {
getBrandingSettings,
@@ -16,7 +16,7 @@ export default async function Page(props: {
searchParams: Promise<Record<string | number | symbol, string | undefined>>;
}) {
const _headers = await headers();
const serviceUrl = getApiUrlOfHeaders(_headers);
const serviceUrl = getServiceUrlFromHeaders(_headers);
const searchParams = await props.searchParams;
const locale = getLocale();

View File

@@ -2,7 +2,7 @@ import { Alert } from "@/components/alert";
import { DynamicTheme } from "@/components/dynamic-theme";
import { PasswordForm } from "@/components/password-form";
import { UserAvatar } from "@/components/user-avatar";
import { getApiUrlOfHeaders } from "@/lib/service";
import { getServiceUrlFromHeaders } from "@/lib/service";
import { loadMostRecentSession } from "@/lib/session";
import {
getBrandingSettings,
@@ -25,7 +25,7 @@ export default async function Page(props: {
let { loginName, organization, authRequestId, alt } = searchParams;
const _headers = await headers();
const serviceUrl = getApiUrlOfHeaders(_headers);
const serviceUrl = getServiceUrlFromHeaders(_headers);
let defaultOrganization;
if (!organization) {

View File

@@ -2,7 +2,7 @@ import { Alert, AlertType } from "@/components/alert";
import { DynamicTheme } from "@/components/dynamic-theme";
import { SetPasswordForm } from "@/components/set-password-form";
import { UserAvatar } from "@/components/user-avatar";
import { getApiUrlOfHeaders } from "@/lib/service";
import { getServiceUrlFromHeaders } from "@/lib/service";
import { loadMostRecentSession } from "@/lib/session";
import {
getBrandingSettings,
@@ -27,7 +27,7 @@ export default async function Page(props: {
searchParams;
const _headers = await headers();
const serviceUrl = getApiUrlOfHeaders(_headers);
const serviceUrl = getServiceUrlFromHeaders(_headers);
// also allow no session to be found (ignoreUnkownUsername)
let session: Session | undefined;