mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Merge branch 'pr/saml-backend' into pr/saml-client
This commit is contained in:
commit
314fa1780e
@ -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",
|
||||
}
|
||||
|
||||
@ -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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user