Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(control-ui): decide scopes and the charset exception by any authorization-server profile (F4-N1)
Diego Zacariasea7fea70b9fc
diff --git a/control-ui/components/AddRemoteServerWizard/index.tsx b/control-ui/components/AddRemoteServerWizard/index.tsxindex 71ce58dbe..2c7ca4f44 100644--- a/control-ui/components/AddRemoteServerWizard/index.tsx+++ b/control-ui/components/AddRemoteServerWizard/index.tsx@@ -155,6 +155,9 @@ export function AddRemoteServerWizard({: nullconst asEndpointHosts = detected?.asEndpointHosts+ // control-api requires the scopes for any authorization-server profile, not only+ // Entra's; `entraProfile` only picks Entra-specific copy.+ const hasAsProfile = Boolean(detected?.asProfile)const entraProfile = detected?.asProfile === 'entra-v2'// Without a profile, the advertised list is accepted as typed even when it breaks// RFC 6749, so a server with non-conforming scopes is not blocked here. With a profile@@ -162,7 +165,7 @@ export function AddRemoteServerWizard({const scopeTokens = scopesInput.trim().split(/\s+/).filter(Boolean)const scopesAsAdvertised =detected !== null &&- !entraProfile &&+ !hasAsProfile &&scopeTokens.length === detected.scopes.length &&scopeTokens.every((scope, i) => scope === detected.scopes[i])const parsedScopes = scopesAsAdvertised@@ -307,7 +310,7 @@ export function AddRemoteServerWizard({clientSecret: needsCredentials ? clientSecret : undefined,// With a profile control-api requires the list, so the one on screen is always// sent rather than letting a re-discovery decide what gets installed.- scopes: entraProfile ? effectiveScopes : scopesOverride,+ scopes: hasAsProfile ? effectiveScopes : scopesOverride,authorizationServer: detectedAuthorizationServer,confirmedUnverifiedScopes: unverifiedConfirmed ? unverifiedToConfirm : undefined,})diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 7496c0a55..39cfaf1b9 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.738",+ "version": "0.1.739","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.738",+ "version": "0.1.739","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/frontend-components": "file:../packages/frontend-components",diff --git a/control-ui/package.json b/control-ui/package.jsonindex 7cd3923b6..cf97cc7a7 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.738",+ "version": "0.1.739","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",