@authup/client-auth-console 1.0.0-beta.62 → 1.0.0-beta.63
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@authup/client-auth-console",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
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.",
|
|
@@ -18,21 +18,22 @@
|
|
|
18
18
|
"build:types": "vue-tsc --noEmit -p tsconfig.json",
|
|
19
19
|
"build:js": "vite build",
|
|
20
20
|
"build": "npm run build:types && npm run build:js",
|
|
21
|
+
"test": "cross-env NODE_ENV=test vitest run --config test/vitest.config.ts",
|
|
21
22
|
"prepublishOnly": "npm run build"
|
|
22
23
|
},
|
|
23
24
|
"engines": {
|
|
24
25
|
"node": "^22.13.0 || ^23.5.0 || >=24.0.0"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"@authup/core-http-kit": "^1.0.0-beta.
|
|
28
|
+
"@authup/core-http-kit": "^1.0.0-beta.63"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@authup/client-web-kit": "^1.0.0-beta.
|
|
31
|
-
"@authup/client-web-kit-theme": "^1.0.0-beta.
|
|
32
|
-
"@authup/client-web-theme": "^1.0.0-beta.
|
|
33
|
-
"@authup/core-kit": "^1.0.0-beta.
|
|
34
|
-
"@authup/i18n": "^1.0.0-beta.
|
|
35
|
-
"@authup/kit": "^1.0.0-beta.
|
|
31
|
+
"@authup/client-web-kit": "^1.0.0-beta.63",
|
|
32
|
+
"@authup/client-web-kit-theme": "^1.0.0-beta.63",
|
|
33
|
+
"@authup/client-web-theme": "^1.0.0-beta.63",
|
|
34
|
+
"@authup/core-kit": "^1.0.0-beta.63",
|
|
35
|
+
"@authup/i18n": "^1.0.0-beta.63",
|
|
36
|
+
"@authup/kit": "^1.0.0-beta.63",
|
|
36
37
|
"@fontsource/asap": "^5.3.0",
|
|
37
38
|
"@fontsource/nunito": "^5.3.0",
|
|
38
39
|
"@iconify-json/fa6-brands": "^1.2.0",
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"@tailwindcss/vite": "^4.3.3",
|
|
46
47
|
"@validup/vue": "^2.0.1",
|
|
47
48
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
49
|
+
"@vue/test-utils": "^2.4.6",
|
|
48
50
|
"@vuecs/button": "^1.4.1",
|
|
49
51
|
"@vuecs/core": "^3.5.0",
|
|
50
52
|
"@vuecs/countdown": "^2.1.0",
|
|
@@ -63,9 +65,12 @@
|
|
|
63
65
|
"@vuecs/table": "^1.6.1",
|
|
64
66
|
"@vuecs/theme-tailwind": "^6.4.2",
|
|
65
67
|
"@vuecs/timeago": "^2.2.0",
|
|
68
|
+
"cross-env": "^10.1.0",
|
|
69
|
+
"happy-dom": "^20.11.2",
|
|
66
70
|
"pinia": "^4.0.2",
|
|
67
71
|
"tailwindcss": "^4.3.1",
|
|
68
72
|
"vite": "^8.2.1",
|
|
73
|
+
"vitest": "^4.0.14",
|
|
69
74
|
"vue": "^3.5.41",
|
|
70
75
|
"vue-router": "^5.0.7",
|
|
71
76
|
"vue-tsc": "^3.3.9"
|
package/src/contract.ts
CHANGED
|
@@ -29,11 +29,20 @@ import type { IClient } from '@authup/core-http-kit';
|
|
|
29
29
|
* against an older contract would otherwise fail per request on
|
|
30
30
|
* `/authorize` rather than at boot with an actionable message.
|
|
31
31
|
*/
|
|
32
|
-
export const CONTRACT_VERSION =
|
|
32
|
+
export const CONTRACT_VERSION = 3;
|
|
33
33
|
|
|
34
34
|
/*
|
|
35
35
|
* History:
|
|
36
36
|
*
|
|
37
|
+
* 3 - the `/authorize` payload carries `federatedLogin: { providerId }` and
|
|
38
|
+
* the page has to complete it with a payload-less, same-origin
|
|
39
|
+
* `POST /identity-providers/:id/login-complete`. The pending login rides
|
|
40
|
+
* the HttpOnly `authup_federated_login` cookie the callback set, so the
|
|
41
|
+
* page presents nothing itself (plan 094). The federated callback no
|
|
42
|
+
* longer mints the application's code, so a package that ignores the
|
|
43
|
+
* field strands every federated login on the login form. The interstitial
|
|
44
|
+
* route from version 2 stays exported but the host no longer renders it.
|
|
45
|
+
*
|
|
37
46
|
* 2 - the host renders `/identity-providers/:id/authorize-in` (the federated
|
|
38
47
|
* callback's interstitial for a non-http(s) redirect_uri) with a payload
|
|
39
48
|
* of `{ redirect, authorizeUrl, client }`; a package without that route
|