Feature engineering improvements #376

Merged
LukeGus merged 20 commits from feature-engineering-improvements into dev-1.8.0 2025-10-08 01:06:01 +00:00
2 changed files with 6 additions and 9 deletions
Showing only changes of commit 3972c20a5a - Show all commits
+5 -8
View File
@@ -34,14 +34,14 @@ async function verifyOIDCToken(
const possibleIssuers = [ const possibleIssuers = [
issuerUrl, issuerUrl,
normalizedIssuerUrl, normalizedIssuerUrl,
issuerUrl.replace(/\/application\/o\/[^\/]+$/, ""), issuerUrl.replace(/\/application\/o\/[^/]+$/, ""),
normalizedIssuerUrl.replace(/\/application\/o\/[^\/]+$/, ""), normalizedIssuerUrl.replace(/\/application\/o\/[^/]+$/, ""),
]; ];
const jwksUrls = [ const jwksUrls = [
`${normalizedIssuerUrl}/.well-known/jwks.json`, `${normalizedIssuerUrl}/.well-known/jwks.json`,
`${normalizedIssuerUrl}/jwks/`, `${normalizedIssuerUrl}/jwks/`,
`${normalizedIssuerUrl.replace(/\/application\/o\/[^\/]+$/, "")}/.well-known/jwks.json`, `${normalizedIssuerUrl.replace(/\/application\/o\/[^/]+$/, "")}/.well-known/jwks.json`,
]; ];
try { try {
@@ -491,7 +491,7 @@ router.get("/oidc/authorize", async (req, res) => {
let origin = let origin =
req.get("Origin") || req.get("Origin") ||
req.get("Referer")?.replace(/\/[^\/]*$/, "") || req.get("Referer")?.replace(/\/[^/]*$/, "") ||
"http://localhost:5173"; "http://localhost:5173";
if (origin.includes("localhost")) { if (origin.includes("localhost")) {
@@ -598,10 +598,7 @@ router.get("/oidc/callback", async (req, res) => {
const normalizedIssuerUrl = config.issuer_url.endsWith("/") const normalizedIssuerUrl = config.issuer_url.endsWith("/")
? config.issuer_url.slice(0, -1) ? config.issuer_url.slice(0, -1)
: config.issuer_url; : config.issuer_url;
const baseUrl = normalizedIssuerUrl.replace( const baseUrl = normalizedIssuerUrl.replace(/\/application\/o\/[^/]+$/, "");
/\/application\/o\/[^\/]+$/,
"",
);
try { try {
const discoveryUrl = `${normalizedIssuerUrl}/.well-known/openid-configuration`; const discoveryUrl = `${normalizedIssuerUrl}/.well-known/openid-configuration`;
@@ -69,7 +69,7 @@ export function TabProvider({ children }: TabProviderProps) {
} }
const m = t.title.match( const m = t.title.match(
new RegExp( new RegExp(
`^${root.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")} \\((\\d+)\\)$`, `^${root.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")} \\((\\d+)\\)$`,
), ),
); );
if (m) { if (m) {