feat(32.2-02): admin consent card at /connect posts the decision and leaves for redirect_uri
- /connect route without shell and without public, so login round-trips back
- ConnectView ready state: client mark, fact box, catalog-order scope picker
with the token-dialog * rule, Stay connected, Deny and Allow
- Allow/Deny POST /mcp/consent/{request}; the browser leaves through
window.location.assign after refusing javascript:, data: and vbscript:
- MCPConsent, MCPConsentDecision and AccountItem type aliases
- backend::lang.mcp_connect copy in en and pl; connect page title
- smoke test: ticks, POST body, assign called, router never used
This commit is contained in:
@@ -12,6 +12,7 @@ import ReorderView from '../views/ReorderView.vue'
|
||||
import SettingsFormView from '../views/SettingsFormView.vue'
|
||||
import SettingsIndexView from '../views/SettingsIndexView.vue'
|
||||
import AccountView from '../views/AccountView.vue'
|
||||
import ConnectView from '../views/ConnectView.vue'
|
||||
import PluginsView from '../views/PluginsView.vue'
|
||||
import NotFoundView from '../views/NotFoundView.vue'
|
||||
|
||||
@@ -74,6 +75,9 @@ export function createAdminRouter(history: RouterHistory = createWebHistory(runt
|
||||
{ path: '/account', name: 'account', component: AccountView, meta: { shell: true } },
|
||||
// The read-only Plugins screen (Settings → System, backend.view_plugins).
|
||||
{ path: '/system/plugins', name: 'plugins', component: PluginsView, meta: { shell: true } },
|
||||
// The MCP consent card: standalone (no shell) and not public, so an
|
||||
// anonymous visitor goes through login and comes back here (D-03).
|
||||
{ path: '/connect', name: 'connect', component: ConnectView },
|
||||
{ path: '/:vendor/:plugin/:controller', name: 'list', component: ListView, meta: { shell: true } },
|
||||
{ path: '/:vendor/:plugin/:controller/create', name: 'create', component: FormView, meta: { shell: true } },
|
||||
// The tree reorder page of a list with config_reorder.yaml (D-09).
|
||||
|
||||
Reference in New Issue
Block a user