fix(login): idp success url (#10997)

# Which Problems Are Solved

An IDP Intent could not be completed due to a missing change of
successUrl property in a recent PR.

# How the Problems Are Solved

The /success page has been replaced by /process to finish the IDP flow
in all occurences.

(cherry picked from commit c913904df3)
This commit is contained in:
Max Peintner
2025-10-29 10:54:28 +01:00
committed by Livio Spring
parent f7309f8295
commit dd64977f8d

View File

@@ -120,7 +120,7 @@ export async function sendLoginname(command: SendLoginnameCommand) {
idpId: activeIdps[0].id, idpId: activeIdps[0].id,
urls: { urls: {
successUrl: successUrl:
`${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/success?` + `${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/process?` +
new URLSearchParams(params), new URLSearchParams(params),
failureUrl: failureUrl:
`${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/failure?` + `${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/failure?` +
@@ -178,7 +178,7 @@ export async function sendLoginname(command: SendLoginnameCommand) {
idpId: idp.id, idpId: idp.id,
urls: { urls: {
successUrl: successUrl:
`${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/success?` + `${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/process?` +
new URLSearchParams(params), new URLSearchParams(params),
failureUrl: failureUrl:
`${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/failure?` + `${host.includes("localhost") ? "http://" : "https://"}${host}${basePath}/idp/${provider}/failure?` +