File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
apps/sim/app/api/auth/sso/register Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ export async function POST(request: NextRequest) {
407407 const computedIdpMetadataXml =
408408 idpMetadata ||
409409 `<?xml version="1.0"?>
410- <EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="${ escapeXml ( entryPoint ) } ">
410+ <EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="${ escapeXml ( issuer ) } ">
411411 <IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
412412 <KeyDescriptor use="signing">
413413 <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ function buildSSOConfigFromEnv(): SSOProviderConfig | null {
283283 . replace ( / \s / g, '' )
284284 const escapedEntryPoint = escapeXml ( entryPoint )
285285 computedIdpMetadata = `<?xml version="1.0"?>
286- <EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="${ escapedEntryPoint } ">
286+ <EntityDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata" entityID="${ escapeXml ( issuer ) } ">
287287 <IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
288288 <KeyDescriptor use="signing">
289289 <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
You can’t perform that action at this time.
0 commit comments