mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 18:12:22 +00:00
Merge remote-tracking branch 'origin/fix-saml' into fix-saml
# Conflicts: # apps/login/src/app/login/route.ts
This commit is contained in:
@@ -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]) =>
|
||||
|
||||
Reference in New Issue
Block a user