@jskit-ai/auth-provider-oidc-core 0.2.48 → 0.2.50
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
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- The email change operations (`requestEmailChange`, `requestEmailChangeForUser`, `confirmEmailChange`) answer `AUTH_OPERATION_UNSUPPORTED`, and `features.emailChange` is false: the email is the identity provider's.
|
|
5
6
|
- **Breaking:** staging and production (`APP_ENV`), not `NODE_ENV=production`, require `AUTH_OIDC_SESSION_SECRET` and use the `__Host-` session cookie; the config's `isProduction` is now `isDeployed`.
|
|
6
7
|
- The second-factor operations (`getSecondFactorStatus`, `startSecondFactorSetup`, `confirmSecondFactorSetup`, `verifySecondFactor`, `replaceSecondFactorRecoveryCodes`, `removeSecondFactor`, `listSecondFactors`, `resetSecondFactor`) answer `AUTH_OPERATION_UNSUPPORTED`, and `features.secondFactor` is false: the hub asks for its own second factors.
|
|
7
8
|
- `./server/lib/index` exports `OIDC_CLIENT_INFRASTRUCTURE_TABLES` (`auth_oidc_clients`, `auth_oidc_sessions`, `auth_oidc_logout_tokens`), the protocol state the relying party keeps outside table resources, for an app test's `expectEveryTableOwned({ infrastructureTables })`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/auth-provider-oidc-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.50",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"openid-client": "6.8.8"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@jskit-ai/auth-provider-local-core": "0.2.
|
|
24
|
-
"@jskit-ai/auth-web": "0.2.
|
|
23
|
+
"@jskit-ai/auth-provider-local-core": "0.2.37",
|
|
24
|
+
"@jskit-ai/auth-web": "0.2.46",
|
|
25
25
|
"oidc-provider": "9.12.2"
|
|
26
26
|
},
|
|
27
27
|
"description": "Sign in through any OpenID Connect issuer: self-registration or a static client, app-owned sessions, and back-channel logout.",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@jskit-ai/auth-core": "0.2.
|
|
94
|
+
"@jskit-ai/auth-core": "0.2.31",
|
|
95
95
|
"@jskit-ai/kernel": "0.2.27"
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -438,7 +438,10 @@ function createOidcAuthService({ config, store, issuer, profileProjector, logger
|
|
|
438
438
|
replaceSecondFactorRecoveryCodes: unsupported("replaceSecondFactorRecoveryCodes"),
|
|
439
439
|
removeSecondFactor: unsupported("removeSecondFactor"),
|
|
440
440
|
listSecondFactors: unsupported("listSecondFactors"),
|
|
441
|
-
resetSecondFactor: unsupported("resetSecondFactor")
|
|
441
|
+
resetSecondFactor: unsupported("resetSecondFactor"),
|
|
442
|
+
requestEmailChange: unsupported("requestEmailChange"),
|
|
443
|
+
requestEmailChangeForUser: unsupported("requestEmailChangeForUser"),
|
|
444
|
+
confirmEmailChange: unsupported("confirmEmailChange")
|
|
442
445
|
});
|
|
443
446
|
}
|
|
444
447
|
|
|
@@ -128,6 +128,9 @@ test("capabilities: one OIDC button, no password features, preview identity unch
|
|
|
128
128
|
status: 501,
|
|
129
129
|
code: "AUTH_OPERATION_UNSUPPORTED"
|
|
130
130
|
});
|
|
131
|
+
// The identity provider owns the email; JSKIT does not change it.
|
|
132
|
+
assert.equal(features.emailChange, false);
|
|
133
|
+
assert.throws(() => authService.confirmEmailChange({ token: "link" }), { status: 501, code: "AUTH_OPERATION_UNSUPPORTED" });
|
|
131
134
|
});
|
|
132
135
|
|
|
133
136
|
test("auth-web's start and complete routes bind the attempt to the browser and return the page", async (t) => {
|