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
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:
@@ -997,7 +997,10 @@ export default async function bankingRoutes(server: FastifyInstance) {
|
|||||||
|
|
||||||
if (!tenantId) return reply.code(401).send({ error: "Unauthorized" })
|
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
|
let data: any
|
||||||
if (useCentralBanking) {
|
if (useCentralBanking) {
|
||||||
data = await centralServicesClient.createBankingRequisition({ institutionId: institutionid, redirect, userLanguage: "de" })
|
data = await centralServicesClient.createBankingRequisition({ institutionId: institutionid, redirect, userLanguage: "de" })
|
||||||
|
|||||||
Reference in New Issue
Block a user