Banking-OAuth-Redirect ohne Backend-Pfad erzeugen
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 45s
Build and Push Docker Images / build-website (push) Successful in 22s
Build and Push Docker Images / build-frontend (push) Successful in 22s
Build and Push Docker Images / build-central-services-api (push) Successful in 22s
Build and Push Docker Images / build-central-services-admin (push) Successful in 22s
Build and Push Docker Images / build-docs (push) Successful in 22s

This commit is contained in:
root
2026-09-01 13:13:28 +00:00
parent 2428230d94
commit 0bd862af55

View File

@@ -997,7 +997,10 @@ export default async function bankingRoutes(server: FastifyInstance) {
if (!tenantId) return reply.code(401).send({ error: "Unauthorized" })
const redirect = new URL("/settings/banking", secrets.API_BASE_URL).toString()
// API_BASE_URL kann einen Reverse-Proxy-Pfad wie `/backend` enthalten.
// Der OAuth-Rücksprung muss aber auf die Frontend-Route zeigen und darf
// diesen Backend-Pfad nicht erneut enthalten.
const redirect = new URL("/settings/banking", new URL(secrets.API_BASE_URL).origin).toString()
let data: any
if (useCentralBanking) {
data = await centralServicesClient.createBankingRequisition({ institutionId: institutionid, redirect, userLanguage: "de" })