Merge branch 'pr/saml-backend' into pr/saml-client

This commit is contained in:
BilalG1 2026-04-30 09:33:52 -07:00 committed by GitHub
commit 314fa1780e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -130,6 +130,7 @@ describe("getConfig", () => {
"otp": { "allowSignIn": false },
"passkey": { "allowSignIn": false },
"password": { "allowSignIn": true },
"saml": { "connections": {} },
"signUpRules": {},
"signUpRulesDefaultAction": "allow",
},
@ -159,6 +160,7 @@ describe("updateConfig", () => {
"otp": { "allowSignIn": false },
"passkey": { "allowSignIn": false },
"password": { "allowSignIn": true },
"saml": { "connections": {} },
"signUpRules": {},
"signUpRulesDefaultAction": "allow",
}
@ -179,6 +181,7 @@ describe("updateConfig", () => {
"otp": { "allowSignIn": false },
"passkey": { "allowSignIn": false },
"password": { "allowSignIn": true },
"saml": { "connections": {} },
"signUpRules": {},
"signUpRulesDefaultAction": "allow",
}

View File

@ -228,8 +228,9 @@ const snapshotSerializer: SnapshotSerializer = {
if (headerName === "set-cookie") {
const partsStrings = value.split(";").map((part) => part.trim());
let cookieName = partsStrings[0].split("=")[0];
if (keyedCookieNamePrefixes.some((prefix) => cookieName.startsWith(prefix))) {
cookieName = `${keyedCookieNamePrefixes}<stripped cookie name key>`;
const matchedPrefix = keyedCookieNamePrefixes.find((prefix) => cookieName.startsWith(prefix));
if (matchedPrefix) {
cookieName = `${matchedPrefix}<stripped cookie name key>`;
}
const cookieValue = partsStrings[0].split("=")[1];
const parts = new Map(partsStrings.map((part) => {