@atlasauth/nuxt 0.2.0 → 0.2.1
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/CHANGELOG.md +5 -0
- package/README.md +1 -0
- package/dist/module.d.mts +5 -0
- package/dist/module.d.ts +5 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -0
- package/dist/runtime/nuxt-shims.d.ts +1 -0
- package/dist/runtime/server/backend.js +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @atlasauth/nuxt changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1 — 2026-11-06
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `previousIssuers` module option (server-only runtime config), so a sign-in host change does not sign users out: tokens from a listed former issuer are accepted. Absent means only `issuer` is accepted.
|
|
7
|
+
|
|
3
8
|
## 0.2.0 — 2026-10-24
|
|
4
9
|
Requires `@atlasauth/vue` with policy acceptance.
|
|
5
10
|
- **Policy acceptance** (terms of service, privacy, any policy the app defines). `usePolicies` and `usePolicyState` are
|
package/README.md
CHANGED
|
@@ -41,6 +41,7 @@ export default defineNuxtConfig({
|
|
|
41
41
|
atlas: {
|
|
42
42
|
jwksUrl: '', // NUXT_ATLAS_JWKS_URL
|
|
43
43
|
issuer: '', // NUXT_ATLAS_ISSUER
|
|
44
|
+
// previousIssuers: ['https://old-host.example.com'], // optional: still accept a former issuer
|
|
44
45
|
// authorizedParties: ['https://app.example.com'], // optional azp allowlist
|
|
45
46
|
},
|
|
46
47
|
public: {
|
package/dist/module.d.mts
CHANGED
|
@@ -40,6 +40,11 @@ interface ModuleOptions {
|
|
|
40
40
|
* an unchecked issuer would accept a token from any Atlas instance.
|
|
41
41
|
*/
|
|
42
42
|
issuer?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Former issuers still accepted during a sign-in host change. SERVER-ONLY.
|
|
45
|
+
* Absent means only `issuer` is accepted.
|
|
46
|
+
*/
|
|
47
|
+
previousIssuers?: string[];
|
|
43
48
|
/**
|
|
44
49
|
* Optional `azp` allowlist. When set, a token minted for another origin is
|
|
45
50
|
* refused server-side (§7.3). SERVER-ONLY.
|
package/dist/module.d.ts
CHANGED
|
@@ -40,6 +40,11 @@ interface ModuleOptions {
|
|
|
40
40
|
* an unchecked issuer would accept a token from any Atlas instance.
|
|
41
41
|
*/
|
|
42
42
|
issuer?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Former issuers still accepted during a sign-in host change. SERVER-ONLY.
|
|
45
|
+
* Absent means only `issuer` is accepted.
|
|
46
|
+
*/
|
|
47
|
+
previousIssuers?: string[];
|
|
43
48
|
/**
|
|
44
49
|
* Optional `azp` allowlist. When set, a token minted for another origin is
|
|
45
50
|
* refused server-side (§7.3). SERVER-ONLY.
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -47,6 +47,7 @@ const module = defineNuxtModule({
|
|
|
47
47
|
frontendApi: "",
|
|
48
48
|
jwksUrl: "",
|
|
49
49
|
issuer: "",
|
|
50
|
+
previousIssuers: [],
|
|
50
51
|
authorizedParties: []
|
|
51
52
|
},
|
|
52
53
|
setup(options, nuxt) {
|
|
@@ -60,6 +61,7 @@ const module = defineNuxtModule({
|
|
|
60
61
|
nuxt.options.runtimeConfig.atlas = {
|
|
61
62
|
jwksUrl: options.jwksUrl || privateConfig.jwksUrl || "",
|
|
62
63
|
issuer: options.issuer || privateConfig.issuer || "",
|
|
64
|
+
previousIssuers: options.previousIssuers?.length ? options.previousIssuers : privateConfig.previousIssuers || [],
|
|
63
65
|
authorizedParties: options.authorizedParties?.length ? options.authorizedParties : privateConfig.authorizedParties || []
|
|
64
66
|
};
|
|
65
67
|
nuxt.options.build.transpile.push("@atlasauth/vue", "@atlasauth/js", "@atlasauth/authz", resolver.resolve("./runtime"));
|
|
@@ -12,6 +12,7 @@ export function atlasBackend() {
|
|
|
12
12
|
cached = new AtlasBackend({
|
|
13
13
|
jwksUrl: atlas.jwksUrl,
|
|
14
14
|
issuer: atlas.issuer,
|
|
15
|
+
previousIssuers: atlas.previousIssuers?.length ? atlas.previousIssuers : void 0,
|
|
15
16
|
authorizedParties: atlas.authorizedParties?.length ? atlas.authorizedParties : void 0
|
|
16
17
|
});
|
|
17
18
|
return cached;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlasauth/nuxt",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Official Nuxt 3 module for Atlas — SSR session verification (Nitro) built on the @atlasauth/vue client.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@nuxt/kit": "^3.13.0",
|
|
27
|
-
"@atlasauth/
|
|
28
|
-
"@atlasauth/
|
|
29
|
-
"@atlasauth/
|
|
30
|
-
"@atlasauth/
|
|
27
|
+
"@atlasauth/vue": "0.18.7",
|
|
28
|
+
"@atlasauth/js": "0.34.6",
|
|
29
|
+
"@atlasauth/backend": "0.39.0",
|
|
30
|
+
"@atlasauth/authz": "0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"nuxt": "^3"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "nuxt-module-build build",
|
|
50
|
-
"typecheck": "
|
|
50
|
+
"typecheck": "tsgo -p tsconfig.json --noEmit --incremental --tsBuildInfoFile node_modules/.cache/typecheck.tsbuildinfo",
|
|
51
51
|
"test": "vitest run"
|
|
52
52
|
}
|
|
53
53
|
}
|