@authup/client-auth-console 1.0.0-beta.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +28 -0
  3. package/dist/client/.vite/ssr-manifest.json +62048 -0
  4. package/dist/client/assets/asap-latin-400-normal-Dc37g3Il.woff +0 -0
  5. package/dist/client/assets/asap-latin-400-normal-DnZ1MOsG.woff2 +0 -0
  6. package/dist/client/assets/asap-latin-700-normal-Dqcopq14.woff +0 -0
  7. package/dist/client/assets/asap-latin-700-normal-l2Y8pi-F.woff2 +0 -0
  8. package/dist/client/assets/asap-latin-ext-400-normal-C-fcRdtE.woff +0 -0
  9. package/dist/client/assets/asap-latin-ext-400-normal-DwYtpHbV.woff2 +0 -0
  10. package/dist/client/assets/asap-latin-ext-700-normal-D00OESsZ.woff +0 -0
  11. package/dist/client/assets/asap-latin-ext-700-normal-y8bo5aW5.woff2 +0 -0
  12. package/dist/client/assets/asap-vietnamese-400-normal-DGyJlJLT.woff2 +0 -0
  13. package/dist/client/assets/asap-vietnamese-400-normal-lfLaoF2x.woff +0 -0
  14. package/dist/client/assets/asap-vietnamese-700-normal-B-e19ug5.woff +0 -0
  15. package/dist/client/assets/asap-vietnamese-700-normal-D-SxY94i.woff2 +0 -0
  16. package/dist/client/assets/index-C2Zi1oPt.css +2 -0
  17. package/dist/client/assets/index-C52wdgf0.js +106 -0
  18. package/dist/client/assets/nunito-cyrillic-300-normal-BPQV259B.woff2 +0 -0
  19. package/dist/client/assets/nunito-cyrillic-300-normal-g5qSsvc0.woff +0 -0
  20. package/dist/client/assets/nunito-cyrillic-400-normal-D1j0u8EH.woff +0 -0
  21. package/dist/client/assets/nunito-cyrillic-400-normal-xAOo5cBP.woff2 +0 -0
  22. package/dist/client/assets/nunito-cyrillic-600-normal-BUjmtIuu.woff +0 -0
  23. package/dist/client/assets/nunito-cyrillic-600-normal-DJGQ2h05.woff2 +0 -0
  24. package/dist/client/assets/nunito-cyrillic-700-normal-DP36NgGt.woff2 +0 -0
  25. package/dist/client/assets/nunito-cyrillic-700-normal-DfHRUDv-.woff +0 -0
  26. package/dist/client/assets/nunito-cyrillic-ext-300-normal-BDHtqmCR.woff +0 -0
  27. package/dist/client/assets/nunito-cyrillic-ext-300-normal-ChMQLIrm.woff2 +0 -0
  28. package/dist/client/assets/nunito-cyrillic-ext-400-normal-CuPM9foi.woff2 +0 -0
  29. package/dist/client/assets/nunito-cyrillic-ext-400-normal-xaE7D4Sw.woff +0 -0
  30. package/dist/client/assets/nunito-cyrillic-ext-600-normal-CWPPjBOD.woff2 +0 -0
  31. package/dist/client/assets/nunito-cyrillic-ext-600-normal-vnfu4DTE.woff +0 -0
  32. package/dist/client/assets/nunito-cyrillic-ext-700-normal-BuR0mlCG.woff2 +0 -0
  33. package/dist/client/assets/nunito-cyrillic-ext-700-normal-DfoqN4Gs.woff +0 -0
  34. package/dist/client/assets/nunito-latin-300-normal-C3ZIKvzv.woff +0 -0
  35. package/dist/client/assets/nunito-latin-300-normal-COoPE5VN.woff2 +0 -0
  36. package/dist/client/assets/nunito-latin-400-normal-DKg4f3fz.woff +0 -0
  37. package/dist/client/assets/nunito-latin-400-normal-r8SDr6Up.woff2 +0 -0
  38. package/dist/client/assets/nunito-latin-600-normal-Br8yIETf.woff2 +0 -0
  39. package/dist/client/assets/nunito-latin-600-normal-Cd0eNu1l.woff +0 -0
  40. package/dist/client/assets/nunito-latin-700-normal-Dort48En.woff2 +0 -0
  41. package/dist/client/assets/nunito-latin-700-normal-OcDqTBcA.woff +0 -0
  42. package/dist/client/assets/nunito-latin-ext-300-normal-D1SyVuPt.woff2 +0 -0
  43. package/dist/client/assets/nunito-latin-ext-300-normal-DfqbmdMl.woff +0 -0
  44. package/dist/client/assets/nunito-latin-ext-400-normal-CjMJVfGn.woff +0 -0
  45. package/dist/client/assets/nunito-latin-ext-400-normal-i-8OOpdj.woff2 +0 -0
  46. package/dist/client/assets/nunito-latin-ext-600-normal-BKUpuB78.woff +0 -0
  47. package/dist/client/assets/nunito-latin-ext-600-normal-Dd9Zuxh1.woff2 +0 -0
  48. package/dist/client/assets/nunito-latin-ext-700-normal-BWeMsAzO.woff2 +0 -0
  49. package/dist/client/assets/nunito-latin-ext-700-normal-D4woHhbd.woff +0 -0
  50. package/dist/client/assets/nunito-vietnamese-300-normal-DATld5Vw.woff +0 -0
  51. package/dist/client/assets/nunito-vietnamese-300-normal-mLneKULB.woff2 +0 -0
  52. package/dist/client/assets/nunito-vietnamese-400-normal-BHkVbP3T.woff2 +0 -0
  53. package/dist/client/assets/nunito-vietnamese-400-normal-DtOtW02z.woff +0 -0
  54. package/dist/client/assets/nunito-vietnamese-600-normal-BY8O6Cug.woff2 +0 -0
  55. package/dist/client/assets/nunito-vietnamese-600-normal-DO1RqFw5.woff +0 -0
  56. package/dist/client/assets/nunito-vietnamese-700-normal-C9SQsXvj.woff +0 -0
  57. package/dist/client/assets/nunito-vietnamese-700-normal-Ch8EUCfz.woff2 +0 -0
  58. package/dist/client/index.html +21 -0
  59. package/dist/server/assets/multipart-parser-BCMy8Xwv.js +181 -0
  60. package/dist/server/assets/multipart-parser-BVY8pIV2.js +176 -0
  61. package/dist/server/server.js +149266 -0
  62. package/package.json +87 -0
  63. package/src/contract.ts +67 -0
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@authup/client-auth-console",
3
+ "version": "1.0.0-beta.59",
4
+ "type": "module",
5
+ "license": "AGPL-3.0-only",
6
+ "description": "Authup's auth console: the SSR auth workflow UI (authorize, register, activate, password recovery, logout) rendered by server-core on the IdP origin.",
7
+ "types": "./src/contract.ts",
8
+ "files": [
9
+ "dist",
10
+ "src/contract.ts"
11
+ ],
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/authup/authup.git",
15
+ "directory": "apps/client-auth-console"
16
+ },
17
+ "scripts": {
18
+ "build:types": "vue-tsc --noEmit -p tsconfig.json",
19
+ "build:js": "vite build",
20
+ "build": "npm run build:types && npm run build:js",
21
+ "prepublishOnly": "npm run build"
22
+ },
23
+ "engines": {
24
+ "node": "^22.13.0 || ^23.5.0 || >=24.0.0"
25
+ },
26
+ "dependencies": {
27
+ "@authup/core-http-kit": "^1.0.0-beta.59"
28
+ },
29
+ "devDependencies": {
30
+ "@authup/client-web-kit": "^1.0.0-beta.59",
31
+ "@authup/client-web-kit-theme": "^1.0.0-beta.59",
32
+ "@authup/client-web-theme": "^1.0.0-beta.59",
33
+ "@authup/core-kit": "^1.0.0-beta.59",
34
+ "@authup/i18n": "^1.0.0-beta.59",
35
+ "@authup/kit": "^1.0.0-beta.59",
36
+ "@fontsource/asap": "^5.3.0",
37
+ "@fontsource/nunito": "^5.3.0",
38
+ "@iconify-json/fa6-brands": "^1.2.0",
39
+ "@iconify-json/fa6-solid": "^1.2.0",
40
+ "@iconify/vue": "^5.0.0",
41
+ "@ilingo/validup": "^1.1.0",
42
+ "@ilingo/validup-vue": "^1.1.0",
43
+ "@ilingo/vue": "^6.1.0",
44
+ "@nuxt/icon": "^2.4.1",
45
+ "@tailwindcss/vite": "^4.3.3",
46
+ "@validup/vue": "^1.0.0",
47
+ "@vitejs/plugin-vue": "^6.0.8",
48
+ "@vuecs/button": "^1.4.1",
49
+ "@vuecs/core": "^3.5.0",
50
+ "@vuecs/countdown": "^2.1.0",
51
+ "@vuecs/design": "^1.2.0",
52
+ "@vuecs/elements": "^1.5.0",
53
+ "@vuecs/forms": "^5.4.1",
54
+ "@vuecs/icon": "^1.1.0",
55
+ "@vuecs/icons-font-awesome": "^1.3.0",
56
+ "@vuecs/link": "^2.1.1",
57
+ "@vuecs/list": "^1.2.1",
58
+ "@vuecs/locale": "^1.1.1",
59
+ "@vuecs/navigation": "^4.4.1",
60
+ "@vuecs/overlays": "^1.3.0",
61
+ "@vuecs/pagination": "^2.2.0",
62
+ "@vuecs/placeholder": "^1.1.0",
63
+ "@vuecs/table": "^1.6.1",
64
+ "@vuecs/theme-tailwind": "^6.4.1",
65
+ "@vuecs/timeago": "^2.2.0",
66
+ "pinia": "^4.0.2",
67
+ "tailwindcss": "^4.3.1",
68
+ "vite": "^8.1.3",
69
+ "vue": "^3.5.40",
70
+ "vue-router": "^5.0.7",
71
+ "vue-tsc": "^3.3.8"
72
+ },
73
+ "publishConfig": {
74
+ "access": "public"
75
+ },
76
+ "keywords": [
77
+ "auth",
78
+ "authentication",
79
+ "login",
80
+ "consent",
81
+ "oauth2",
82
+ "openid-connect",
83
+ "vue",
84
+ "ssr",
85
+ "iam"
86
+ ]
87
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Copyright (c) 2025-2026.
3
+ * Author Peter Placzek (tada5hi)
4
+ * For the full copyright and license information,
5
+ * view the LICENSE file that was distributed with this source code.
6
+ */
7
+
8
+ /**
9
+ * The render contract between this package and its host (server-core).
10
+ *
11
+ * The host resolves the built dist at runtime (`dist/server/server.js`
12
+ * exports `render`; `dist/client/` holds the template + assets) and
13
+ * compiles against these types only. Everything else in this package is
14
+ * an implementation detail of the rendered app.
15
+ */
16
+
17
+ import type { IClient } from '@authup/core-http-kit';
18
+
19
+ /**
20
+ * The runtime version of the contract described in this file, re-exported
21
+ * from the server bundle so the host can check it before rendering.
22
+ *
23
+ * Bump it whenever a change here breaks a package built against the
24
+ * previous shape (a new required field the host will read, a changed
25
+ * return shape). Additive, optional changes do not bump.
26
+ *
27
+ * Types alone protect this boundary only at compile time: the host calls
28
+ * whatever function the resolved bundle exports, so a custom package built
29
+ * against an older contract would otherwise fail per request on
30
+ * `/authorize` rather than at boot with an actionable message.
31
+ */
32
+ export const CONTRACT_VERSION = 1;
33
+
34
+ export type HydrationPayload<T extends Record<string, any> = Record<string, any>> = {
35
+ config: {
36
+ baseURL: string,
37
+ [key: string]: any
38
+ },
39
+ data: T,
40
+ /**
41
+ * Results the kit produced during the server render, keyed by request
42
+ * identity. Filled while rendering (the payload is serialized afterwards)
43
+ * and consumed once by the hydrating client.
44
+ */
45
+ hydration?: Record<string, any>
46
+ };
47
+
48
+ export type RenderContext = {
49
+ url: string,
50
+ manifest: Record<string, string[]>,
51
+ payload: HydrationPayload,
52
+ /**
53
+ * Pre-built HTTP client handed to the Vue app instead of one
54
+ * constructed from payload.config.baseURL (host self-call rewrite,
55
+ * test injection).
56
+ */
57
+ httpClient?: IClient
58
+ };
59
+
60
+ /**
61
+ * `[appHtml + payloadScript, preloadLinks]` — the window-payload escaping
62
+ * happens inside `render()`, so the host only splices the two strings
63
+ * into the template.
64
+ */
65
+ export type RenderResult = [html: string, preloadLinks: string];
66
+
67
+ export type RenderFunction = (ctx: RenderContext) => Promise<RenderResult>;