Merge remote-tracking branch 'origin/fix-saml' into fix-saml

# Conflicts:
#	apps/login/src/app/login/route.ts
This commit is contained in:
Stefan Benz
2025-03-12 10:06:13 +01:00
7 changed files with 18 additions and 8 deletions

View File

@@ -475,11 +475,13 @@ export async function GET(request: NextRequest) {
if (url && binding.case === "redirect") {
return NextResponse.redirect(url);
} else if (url && binding.case === "post") {
// Create form data after SAML standard
const formData = {
"RelayState": binding.value.relayState,
"SAMLResponse": binding.value.samlResponse,
};
// Convert form data to URL-encoded string
const formBody = Object.entries(formData)
.map(
([key, value]) =>