Repository navigation
feat: add the account console (/account self-service surface) - #3373
Conversation
End-user self-service on the IdP origin, served by server-core's embedded SSR app: profile, password, authenticators, sessions and application consents. Works headless and gives every downstream RP a stable "Manage account" link target. - login is a full auth-code + PKCE flow against the per-realm account-console client; the ui router guard consumes the kit's saved authorization request (state check, PKCE params, code/state stripping, readable failure state), and the session-continuity machinery reuses the cookie session row and re-stamps its clientId (pinned e2e) - new kit component AAccountShell (+ AAccountShellNavItem type), styled via client-web-kit-theme styles/account.css behind --authup-account-* tokens - accountConsoleEnabled config flag (ACCOUNT_CONSOLE_ENABLED, default true) rides StatusResponseFeatures.accountConsole; disabled state serves the localized workflow-disabled notice - an accessPolicyId denial on the client surfaces as an access-denied card with a use-another-account escape hatch; error presence suppresses the realm-hint auto-kick (no unattended redirect loop) - admin console header links the user name to <apiUrl>/account - docs: dedicated account-console deployment page, config reference, provisioning posture flip for restricting admin-console
Extract the /account surface out of server-core's SSR ui app into the dedicated apps/client-account-console workspace (the reserved name): a client-only Vite/Vue SPA — auth-gated content never server-rendered anyway, so the SPA shape drops the payload/base-path coupling instead of adding machinery. - server-core depends on @authup/client-account-console at runtime and serves its built dist at /account: per-request runtime-config injection (window.__AUTHUP_ACCOUNT__ via the <!--account-config--> marker), lang/color-mode stamping from the shared cookies, asset-href rebase for sub-path deployments, same security headers as the SSR pages; static assets ride the assets middleware (/account/assets) - the same dist is hostable standalone on any static host / other origin with one injected apiUrl (+ TRUSTED_ORIGINS registration); with nothing injected the app derives the API URL same-origin from its base path - the PKCE-aware code-exchange guard moves into the app's own router; the SSR ui app's guard reverts to the bare exchange - no binary, no launcher child; the package ships dist/ only and joins the launcher's packed smoke set so server-core's dependency resolves from the tarball (test:smoke:packed verified green) - registered in release-please config + manifest; AGPL like the other apps; docs gain a standalone-hosting section
|
Note Reviews pausedUse the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a new account-console SPA with account self-service pages, OAuth2 authorization-code and PKCE authentication, shared shell components, server-core ChangesAccount Console Foundation
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related PRs
Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant Browser
participant AccountConsole
participant AuthorizationServer
participant ServerCore
Browser->>ServerCore: Request /account
ServerCore-->>Browser: Return SPA shell and runtime configuration
Browser->>AccountConsole: Mount application
AccountConsole->>AuthorizationServer: Start realm-aware PKCE login
AuthorizationServer-->>AccountConsole: Return authorization code
AccountConsole->>AuthorizationServer: Exchange code and PKCE verifier
AuthorizationServer-->>AccountConsole: Return authenticated session
AccountConsole->>ServerCore: Request account self-service data
ServerCore-->>AccountConsole: Return account data
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
authup
@authup/client-account-console
@authup/client-admin-console
@authup/server-core
@authup/access
@authup/client-web-kit
@authup/client-web-kit-theme
@authup/client-web-nuxt
@authup/client-web-theme
@authup/core-http-kit
@authup/core-kit
@authup/core-realtime-kit
@authup/errors
@authup/i18n
@authup/kit
@authup/server-adapter-kit
@authup/server-adapter-node
@authup/server-adapter-socket-io
@authup/server-adapter-web
@authup/server-kit
@authup/server-test-kit
@authup/specs
commit: |
There was a problem hiding this comment.
Pull request overview
Adds a first-party end-user “Account Console” SPA (/account) to complement server-core-only/headless deployments, and wires it into server-core (serving + config injection) plus ecosystem touchpoints (status feature flag, admin console link, docs, packaging, tests).
Changes:
- Introduces new app workspace
apps/client-account-console(Vite/Vue SPA) with self-service pages (profile/password/authenticators/sessions/consents). - Embeds the built SPA into
apps/server-coreat/account(HTML shell serving, runtime config injection, asset rebasing +/account/assetsmount) and exposesaccountConsoleEnabledvia status features. - Updates kit/theme (
AAccountShell, CSS tokens/styles), i18n keys/catalogs, admin console header link, docs, release-please + packaging manifests, and adds/updates tests.
Reviewed changes
Copilot reviewed 70 out of 72 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| release-please-config.json | Registers client-account-console for release automation. |
| packages/i18n/src/constants.ts | Adds new translation keys and extends “app chrome” namespace scope. |
| packages/i18n/src/catalogs/fr/client.ts | Adds client intro string for account sign-in. |
| packages/i18n/src/catalogs/fr/app.ts | Adds Manage account app label. |
| packages/i18n/src/catalogs/es/client.ts | Adds client intro string for account sign-in. |
| packages/i18n/src/catalogs/es/app.ts | Adds Manage account app label. |
| packages/i18n/src/catalogs/en/client.ts | Adds client intro string for account sign-in. |
| packages/i18n/src/catalogs/en/app.ts | Adds Manage account app label. |
| packages/i18n/src/catalogs/de/client.ts | Adds client intro string for account sign-in. |
| packages/i18n/src/catalogs/de/app.ts | Adds Manage account app label. |
| packages/core-http-kit/src/domains/workflows/status/types.ts | Extends status feature flags with accountConsole. |
| packages/client-web-kit/test/unit/components/utility/account-shell.spec.ts | Adds unit tests for the new account shell component. |
| packages/client-web-kit/src/components/utility/types.ts | Introduces AAccountShellNavItem type for shell nav items. |
| packages/client-web-kit/src/components/utility/index.ts | Exports new account shell component + types. |
| packages/client-web-kit/src/components/utility/AAccountShell.vue | Adds AAccountShell chrome component (header/nav/body + sign-out emit). |
| packages/client-web-kit-theme/assets/css/styles/tokens.css | Adds --authup-account-* design tokens. |
| packages/client-web-kit-theme/assets/css/styles/account.css | Adds component CSS for the account shell surface. |
| packages/client-web-kit-theme/assets/css/index.css | Wires account stylesheet into theme entry. |
| package-lock.json | Adds workspace + dependency graph updates for the new app and server-core dependency. |
| LICENSING.md | Adds licensing row for client-account-console. |
| docs/src/guide/deployment/provisioning.md | Documents account-console client posture + redirects + admin-console restriction guidance. |
| docs/src/guide/deployment/configuration-server-core.md | Documents accountConsoleEnabled config and env var. |
| docs/src/guide/deployment/configuration-server-core-mfa.md | Points MFA self-service to account console. |
| docs/src/guide/deployment/account-console.md | Adds new deployment guide page for the account console. |
| docs/src/.vitepress/config.mjs | Adds navigation entry for Account Console docs. |
| apps/server-core/test/unit/http/controllers/workflows/token/account-console-session.spec.ts | Adds session continuity test for account-console PKCE flow. |
| apps/server-core/test/unit/http/controllers/workflows/status.spec.ts | Updates status feature expectations to include accountConsole. |
| apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts | Adds tests for /account serving, injection, assets, headers, and disabled state. |
| apps/server-core/test/unit/adapters/http/middleware/built-in/assets.spec.ts | Extends assets middleware tests for account console asset mount. |
| apps/server-core/src/app/modules/http/modules/controller.ts | Registers AccountController and includes account-console feature in status features. |
| apps/server-core/src/app/modules/config/validator.ts | Validates accountConsoleEnabled. |
| apps/server-core/src/app/modules/config/types.ts | Adds accountConsoleEnabled to the config model. |
| apps/server-core/src/app/modules/config/read/env.ts | Reads ACCOUNT_CONSOLE_ENABLED from env. |
| apps/server-core/src/app/modules/config/normalize.ts | Defaults accountConsoleEnabled to true. |
| apps/server-core/src/app/modules/config/constants.ts | Adds ACCOUNT_CONSOLE_ENABLED env var name. |
| apps/server-core/src/adapters/http/ui/index.ts | Exports account UI serving helpers. |
| apps/server-core/src/adapters/http/ui/base-path.ts | Adds /account/ asset URL rebasing helper. |
| apps/server-core/src/adapters/http/ui/account.ts | Implements account console bundle resolution + HTML serving + config injection + headers. |
| apps/server-core/src/adapters/http/middleware/built-in/assets.ts | Mounts account console static assets under /account/assets when available. |
| apps/server-core/src/adapters/http/controllers/workflows/index.ts | Exports new account workflow controller module. |
| apps/server-core/src/adapters/http/controllers/workflows/account/module.ts | Adds AccountController to serve SPA shell for /account routes. |
| apps/server-core/src/adapters/http/controllers/workflows/account/index.ts | Re-exports the account controller module. |
| apps/server-core/package.json | Adds runtime dependency on @authup/client-account-console. |
| apps/client-admin-console/components/header.vue | Links header user name to <apiUrl>/account and adds translation key use. |
| apps/client-account-console/vite.config.ts | Vite build config for the new SPA (base /account/, icon bundling scan, aliases). |
| apps/client-account-console/tsconfig.json | TypeScript config for the new SPA workspace. |
| apps/client-account-console/test/vitest.config.ts | Vitest configuration for the new SPA tests. |
| apps/client-account-console/test/unit/config.spec.ts | Unit tests for runtime config resolution behavior. |
| apps/client-account-console/src/tailwind.css | Tailwind v4 entry + theme imports + scan sources for the app. |
| apps/client-account-console/src/pages/utils.ts | Adds toast helpers for page surfaces. |
| apps/client-account-console/src/pages/sessions.vue | Implements sessions page and “log out other devices” action. |
| apps/client-account-console/src/pages/password.vue | Implements password change page using kit component. |
| apps/client-account-console/src/pages/overview.vue | Implements profile overview page using kit component. |
| apps/client-account-console/src/pages/index.vue | Implements shell page with realm chooser, PKCE kick, denial state, and sign-out. |
| apps/client-account-console/src/pages/authenticators.vue | Implements authenticators self-service page using kit component. |
| apps/client-account-console/src/pages/applications.vue | Implements application consents page with grouped display and revoke actions. |
| apps/client-account-console/src/main.ts | Bootstraps Vue app, router guard for code exchange, kit/vuecs installation, themes. |
| apps/client-account-console/src/env.d.ts | Declares Nuxt icon bundle virtual modules for TS. |
| apps/client-account-console/src/di.ts | Provides/injects account console runtime config. |
| apps/client-account-console/src/cookie.ts | Cookie-backed refs for locale/color-mode persistence. |
| apps/client-account-console/src/config.ts | Runtime config resolution (injected vs same-origin derivation). |
| apps/client-account-console/src/color-mode.ts | Cookie-driven color-mode binding for non-Nuxt app. |
| apps/client-account-console/src/App.vue | App root shell using kit <AAuthApp>. |
| apps/client-account-console/package.json | Declares new app package metadata and scripts (build/publish/test). |
| apps/client-account-console/LICENSE | Adds AGPL license file for the new app. |
| apps/client-account-console/index.html | Adds HTML entry with <!--account-config--> marker for injection. |
| apps/authup/test/smoke/run.mjs | Ensures packed smoke test includes the account console workspace tarball. |
| AGENTS.md | Updates licensing guidance to include the new app. |
| .release-please-manifest.json | Adds apps/client-account-console to the release manifest. |
| .agents/structure.md | Documents new app workspace and its relationship to server-core embedding. |
| .agents/conventions.md | Updates app naming/role conventions to include account console. |
| .agents/architecture.md | Documents account console architecture, serving seam, and auth flow details. |
Suppressed comments (2)
apps/client-account-console/src/pages/index.vue:230
errorCodeis computed but not returned fromsetup(), so the template can’t conditionally render a readable error state for?error=invalid_grant(failed code exchange). Expose it to the template (or expose a derivedhasError).
return {
enabled: config.enabled,
denied,
authenticated,
unauthenticated,
items,
translations,
handleRealmSelect,
signOut,
useAnotherAccount,
retry,
};
apps/client-account-console/src/pages/index.vue:276
- When a code exchange fails, the user currently sees the generic sign-in intro, not a readable failure hint. This contradicts the PR description (“failed exchange surfaces a readable error”) and also makes it unclear why the auto re-kick is suppressed. Consider showing a localized failure message when
?error=is present (exceptaccess_denied, which already has its own card).
<template v-else-if="unauthenticated">
<div class="text-center">
{{ translations.accountSignInIntro }}
</div>
<ARealmGrid @select="handleRealmSelect" />
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 11
🧹 Nitpick comments (3)
apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts (1)
27-29: 🩺 Stability & Availability | 🔵 TrivialBuild the UI assets before running this suite.
The production page renderer reads built UI assets. Run
npm run buildbefore server-core tests and preserve that order in CI. Based on learnings, SSR page tests underapps/server-core/test/unit/http/controllers/workflows/require built UI assets.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts` around lines 27 - 29, Update the test/CI setup around the account-pages suite and the SSR tests under workflows so the UI production assets are built with npm run build before server-core tests execute. Preserve this build-before-test ordering in CI, ensuring the existing suite setup in beforeAll runs only after the assets are available.Source: Learnings
apps/client-account-console/src/main.ts (1)
196-198: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winHandle a rejected
router.isReady().If the initial navigation guard throws outside its
tryblocks,router.isReady()rejects. The app then never mounts and the page stays blank without a logged reason. Add a rejection handler that reports the error and still mounts the app.🛡️ Proposed fix
-router.isReady().then(() => { - app.mount('`#app`'); -}); +router.isReady() + .catch((e) => { + console.error('Initial navigation failed.', e); + }) + .finally(() => { + app.mount('`#app`'); + });🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/client-account-console/src/main.ts` around lines 196 - 198, Update the router.isReady() startup chain to handle rejected initial navigation by logging the rejection error, then mount the app regardless of whether the promise resolves or rejects. Preserve the existing successful-navigation mounting behavior in the app.mount call.apps/client-account-console/src/pages/applications.vue (1)
149-160: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick winBound the concurrency and remove the silent truncation.
Two problems exist in this block.
pagination: { limit: 1000 }truncates silently. If a client holds more than 1000 consent rows, the revoke leaves the remaining scopes granted. The comment at lines 145-148 promises the opposite.
Promise.allstarts one request per row at once. With a large result set this produces up to 1000 concurrent requests against the API.Page through the result set and delete in bounded batches.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@apps/client-account-console/src/pages/applications.vue` around lines 149 - 160, Update the consent revocation flow around httpClient.consent.getMany and the subsequent Promise.all to paginate until all matching rows are retrieved, avoiding the fixed limit of 1000 and silent truncation. Delete rows in bounded batches with a small concurrency limit, awaiting each batch before continuing, so every consent row is revoked without issuing one request per row simultaneously.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.agents/architecture.md:
- Around line 965-968: Update the package-resolution approach described near
createRequire(...).resolve so it targets an actually exported account-console
entry rather than assuming `@authup/client-account-console/package.json` is
resolvable; alternatively, update the package metadata to export ./package.json
and ./dist/* and include package.json in published files. Preserve resolution
for both workspace symlinks and published installs.
In @.release-please-manifest.json:
- Line 4: Remove the manually added apps/client-account-console version entry
from .release-please-manifest.json, leaving release-please to create or update
the manifest entry in its release PR.
In `@apps/client-account-console/package.json`:
- Line 3: Remove the manually managed version from the package metadata,
register the client-account-console package in the repository’s release-please
configuration, and rely on release-please to generate future version updates.
In `@apps/client-account-console/src/cookie.ts`:
- Around line 20-21: Update the cookie-reading logic around the document.cookie
match and decodeURIComponent call to catch malformed URI decoding errors and
return undefined. Preserve the existing decoded-value behavior for valid cookies
so createCookieRef can use its initial or fallback value when decoding fails.
In `@apps/client-account-console/src/pages/applications.vue`:
- Around line 104-110: Update revokeOne in
apps/client-account-console/src/pages/applications.vue:104-110 to use a new
single-scope translation key such as CONSENT_REVOKE_DESCRIPTION instead of
translations.consentRevokeAllDescription. Update the bulk-revoke success toast
at apps/client-account-console/src/pages/applications.vue:162-162 to use a new
key such as CONSENT_REVOKE_ALL_SUCCESS, and add both keys to the translation
catalog.
- Around line 247-254: Update the icon-only revoke button in the applications
template to add an aria-label using the existing consentRevoke translation, and
bind its disabled state to revoking so individual revocation cannot start during
a bulk revoke. Preserve the existing click handler and title.
In `@apps/client-account-console/src/pages/index.vue`:
- Around line 208-217: Update the retry function to invoke the current realm’s
kick() authorization flow instead of only replacing the route, preserving the
existing authorization-request and PKCE behavior for account-console
accessPolicyId denial. Keep useAnotherAccount’s logout-and-redirect behavior
unchanged.
In `@apps/client-admin-console/components/header.vue`:
- Around line 56-60: Update the accountUrl computed property to safely handle a
missing runtimeConfig.public.apiUrl before calling replace, preserving the
existing normalized URL and /account suffix when configured while returning a
safe non-throwing result when absent.
In `@apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts`:
- Around line 94-100: Extend the test around extractAccountConfig to verify the
rendered disabled-state notice, not only config.features.accountConsole being
false. Exercise the account app with this runtime configuration or assert the
expected disabled UI message so a client regression that ignores the flag fails
the test.
- Around line 69-76: Update the privacy assertion in the test “should carry no
server-rendered per-user state” to inspect the account runtime global,
window.__AUTHUP_ACCOUNT__, rather than only window.__AUTHUP__. Assert that the
account config contains only documented operator-level fields or explicitly
rejects actor- or session-scoped payloads, preserving the existing static-shell
expectation.
In `@packages/client-web-kit/src/components/utility/AAccountShell.vue`:
- Around line 117-134: Update the VCLink navigation item rendering in
AAccountShell to bind aria-current to item.active, while preserving the existing
active CSS class and navigation behavior.
---
Nitpick comments:
In `@apps/client-account-console/src/main.ts`:
- Around line 196-198: Update the router.isReady() startup chain to handle
rejected initial navigation by logging the rejection error, then mount the app
regardless of whether the promise resolves or rejects. Preserve the existing
successful-navigation mounting behavior in the app.mount call.
In `@apps/client-account-console/src/pages/applications.vue`:
- Around line 149-160: Update the consent revocation flow around
httpClient.consent.getMany and the subsequent Promise.all to paginate until all
matching rows are retrieved, avoiding the fixed limit of 1000 and silent
truncation. Delete rows in bounded batches with a small concurrency limit,
awaiting each batch before continuing, so every consent row is revoked without
issuing one request per row simultaneously.
In `@apps/server-core/test/unit/http/controllers/workflows/account-pages.spec.ts`:
- Around line 27-29: Update the test/CI setup around the account-pages suite and
the SSR tests under workflows so the UI production assets are built with npm run
build before server-core tests execute. Preserve this build-before-test ordering
in CI, ensuring the existing suite setup in beforeAll runs only after the assets
are available.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 9333fa85-ea38-4af2-9f44-29ad6c5ef4fc
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (71)
.agents/architecture.md.agents/conventions.md.agents/structure.md.release-please-manifest.jsonAGENTS.mdLICENSING.mdapps/authup/test/smoke/run.mjsapps/client-account-console/LICENSEapps/client-account-console/index.htmlapps/client-account-console/package.jsonapps/client-account-console/src/App.vueapps/client-account-console/src/color-mode.tsapps/client-account-console/src/config.tsapps/client-account-console/src/cookie.tsapps/client-account-console/src/di.tsapps/client-account-console/src/env.d.tsapps/client-account-console/src/main.tsapps/client-account-console/src/pages/applications.vueapps/client-account-console/src/pages/authenticators.vueapps/client-account-console/src/pages/index.vueapps/client-account-console/src/pages/overview.vueapps/client-account-console/src/pages/password.vueapps/client-account-console/src/pages/sessions.vueapps/client-account-console/src/pages/utils.tsapps/client-account-console/src/tailwind.cssapps/client-account-console/test/unit/config.spec.tsapps/client-account-console/test/vitest.config.tsapps/client-account-console/tsconfig.jsonapps/client-account-console/vite.config.tsapps/client-admin-console/components/header.vueapps/server-core/package.jsonapps/server-core/src/adapters/http/controllers/workflows/account/index.tsapps/server-core/src/adapters/http/controllers/workflows/account/module.tsapps/server-core/src/adapters/http/controllers/workflows/index.tsapps/server-core/src/adapters/http/middleware/built-in/assets.tsapps/server-core/src/adapters/http/ui/account.tsapps/server-core/src/adapters/http/ui/base-path.tsapps/server-core/src/adapters/http/ui/index.tsapps/server-core/src/app/modules/config/constants.tsapps/server-core/src/app/modules/config/normalize.tsapps/server-core/src/app/modules/config/read/env.tsapps/server-core/src/app/modules/config/types.tsapps/server-core/src/app/modules/config/validator.tsapps/server-core/src/app/modules/http/modules/controller.tsapps/server-core/test/unit/adapters/http/middleware/built-in/assets.spec.tsapps/server-core/test/unit/http/controllers/workflows/account-pages.spec.tsapps/server-core/test/unit/http/controllers/workflows/status.spec.tsapps/server-core/test/unit/http/controllers/workflows/token/account-console-session.spec.tsdocs/src/.vitepress/config.mjsdocs/src/guide/deployment/account-console.mddocs/src/guide/deployment/configuration-server-core-mfa.mddocs/src/guide/deployment/configuration-server-core.mddocs/src/guide/deployment/provisioning.mdpackages/client-web-kit-theme/assets/css/index.csspackages/client-web-kit-theme/assets/css/styles/account.csspackages/client-web-kit-theme/assets/css/styles/tokens.csspackages/client-web-kit/src/components/utility/AAccountShell.vuepackages/client-web-kit/src/components/utility/index.tspackages/client-web-kit/src/components/utility/types.tspackages/client-web-kit/test/unit/components/utility/account-shell.spec.tspackages/core-http-kit/src/domains/workflows/status/types.tspackages/i18n/src/catalogs/de/app.tspackages/i18n/src/catalogs/de/client.tspackages/i18n/src/catalogs/en/app.tspackages/i18n/src/catalogs/en/client.tspackages/i18n/src/catalogs/es/app.tspackages/i18n/src/catalogs/es/client.tspackages/i18n/src/catalogs/fr/app.tspackages/i18n/src/catalogs/fr/client.tspackages/i18n/src/constants.tsrelease-please-config.json
| { | ||
| ".": "1.0.0-beta.58", | ||
| "apps/authup": "1.0.0-beta.58", | ||
| "apps/client-account-console": "1.0.0-beta.58", |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Do not hand-edit the release manifest.
Remove this version entry from the feature change and let release-please create or update it in its release PR. A manual version can drift from release-please state and break package release coordination.
As per coding guidelines, .release-please-manifest.json is owned by release-please and must not be hand-edited.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In @.release-please-manifest.json at line 4, Remove the manually added
apps/client-account-console version entry from .release-please-manifest.json,
leaving release-please to create or update the manifest entry in its release PR.
Source: Coding guidelines
| @@ -0,0 +1,75 @@ | |||
| { | |||
| "name": "@authup/client-account-console", | |||
| "version": "1.0.0-beta.58", | |||
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Let release-please manage this version.
Line 3 manually sets a release-please-managed version. Register the new package in release-please configuration and use the generated version update.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@apps/client-account-console/package.json` at line 3, Remove the manually
managed version from the package metadata, register the client-account-console
package in the repository’s release-please configuration, and rely on
release-please to generate future version updates.
Source: Coding guidelines
Replace the createRequire + require.resolve dance with locter's locateUpSync (already a server-core dependency): the node_modules ancestor walk from server-core's package root, covering the workspace symlink and published installs alike. Verified against the packed install layout (test:smoke:packed).
|
@coderabbitai pause |
✅ Action performedReviews paused. |
Documents running the vite dev server against a running authup server (VITE_API_URL + TRUSTED_ORIGINS for the sign-in round-trip); config resolution gains the VITE_API_URL build/dev-time fallback.
- consent "revoke all" now loops fetch-and-delete pages: the previous single fetch asked for 1000 rows but the consent schema caps pages at 50, so grants beyond the first page survived (also fixed in the admin console's twin page) - the account console's retry button re-runs the authorization-code flow instead of only clearing the error marker — a bare clear rendered the shell off the shared cookie session and sidestepped the client's access policy - a failed code exchange now surfaces a localized notice on the sign-in state (CLIENT.LOGIN_FAILED) - bulk-revoke success toast gets its own key (APP.CONSENT_REVOKE_ALL_SUCCESS, x4 locales) instead of reusing the confirm description; the shared dialog description stays deliberate (accurate for single and bulk revoke alike) - cookie reads tolerate malformed percent escapes (URIError degraded to the fallback value; both the account app and the SSR ui copies) - scope-revoke chip button: aria-label + disabled during a bulk revoke; AAccountShell nav links expose aria-current - admin console header derives the account URL defensively (missing apiUrl degrades to a relative link instead of throwing) - account-pages spec pins the injected config to exactly the documented operator-level keys; disabled-flag test renamed to what it asserts
Implements plan 080: the end-user account self-service surface on the IdP origin, closing the headless gap (a server-core-only deployment previously had no UI for MFA/session/consent management) and giving every downstream RP a stable "Manage account" link target.
What
apps/client-account-console(@authup/client-account-console, AGPL): a client-only Vite/Vue SPA with pages for profile, password, authenticators, sessions, and application consents — thin wrappers over the existing kit components (AUserForm,AUserPasswordForm,AUserAuthenticators,ASessionsincl. "log out other devices",AConsents).dist/at/account— per-request runtime-config injection (window.__AUTHUP_ACCOUNT__via an<!--account-config-->marker), lang/color-mode stamping from the shared cookies, asset-href rebase for sub-path deployments, and the same security headers as the SSR auth pages. Static assets ride the assets middleware.apiUrlplusTRUSTED_ORIGINSregistration (theaccount-consoleclient's redirect/post-logout allowlists derive from the origin set). With nothing injected, the app derives the API URL same-origin from its base path.account-consoleclient (Keycloak model): per-app session/audit attribution and access-policy enforceability. The app's router guard consumes the saved authorization request (state check, PKCE params, code/state stripping; a failed exchange surfaces a readable error that also suppresses the automatic re-kick). A session-less visit renders the realm chooser;?realmId=deep links skip it. AnaccessPolicyIddenial renders a readable access-denied card with a use-another-account escape hatch.clientIdtoaccount-console— one session per interactive login, pinned end-to-end.AAccountShellchrome (nav tabs, user chip, sign-out) styled viaclient-web-kit-theme's newstyles/account.cssbehind--authup-account-*tokens.accountConsoleEnabled(ACCOUNT_CONSOLE_ENABLED, defaulttrue) ridesStatusResponseFeatures.accountConsole(status endpoint + injected config); disabled state renders the localized workflow-disabled notice, so stale links do not dead-end.<apiUrl>/account; the documented posture for restrictingadmin-consolevia access policy is flipped now that regular users have somewhere else to go.Tests
account-pages.spec.ts: shell serving, config injection, assets, security headers, disabled flag, no per-user state in the response body.account-console-session.spec.ts: the work-item-0 pin — login → authorize vs the provisionedaccount-consoleclient → PKCE exchange → exactly one session row,clientIdre-stamped.account-shell.spec.ts; account appconfig.spec.ts(runtime-config resolution matrix).check:types, root build, andtest:smoke:packedverified green.Docs
New deployment-guide page (
account-console.md, incl. standalone hosting), config reference entries, MFA-guide self-service pointer, provisioning posture update, LICENSING/AGENTS +.agents/*updates.Summary by CodeRabbit
New Features
/accountfor managing profiles, passwords, authenticators, active sessions, and application permissions.Configuration
Documentation