@opentdf/sdk 0.19.0 → 0.20.0-rc.183
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/dist/cjs/src/access/access-fetch.js +2 -2
- package/dist/cjs/src/access/access-rpc.js +4 -4
- package/dist/cjs/src/auth/oidc.js +32 -19
- package/dist/cjs/src/auth/token-providers.js +8 -41
- package/dist/cjs/src/auth/tokenExpiry.js +44 -0
- package/dist/cjs/src/version.js +1 -1
- package/dist/cjs/tdf3/src/tdf.js +7 -2
- package/dist/types/src/access/access-fetch.d.ts.map +1 -1
- package/dist/types/src/access/access-rpc.d.ts.map +1 -1
- package/dist/types/src/auth/oidc.d.ts +11 -2
- package/dist/types/src/auth/oidc.d.ts.map +1 -1
- package/dist/types/src/auth/token-providers.d.ts.map +1 -1
- package/dist/types/src/auth/tokenExpiry.d.ts +16 -0
- package/dist/types/src/auth/tokenExpiry.d.ts.map +1 -0
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/tdf3/src/tdf.d.ts.map +1 -1
- package/dist/web/src/access/access-fetch.js +2 -2
- package/dist/web/src/access/access-rpc.js +4 -4
- package/dist/web/src/auth/oidc.js +32 -19
- package/dist/web/src/auth/token-providers.js +2 -35
- package/dist/web/src/auth/tokenExpiry.js +39 -0
- package/dist/web/src/version.js +1 -1
- package/dist/web/tdf3/src/tdf.js +7 -2
- package/package.json +4 -3
- package/src/access/access-fetch.ts +3 -1
- package/src/access/access-rpc.ts +7 -3
- package/src/auth/oidc.ts +42 -18
- package/src/auth/token-providers.ts +1 -34
- package/src/auth/tokenExpiry.ts +38 -0
- package/src/version.ts +1 -1
- package/tdf3/src/tdf.ts +6 -1
package/tdf3/src/tdf.ts
CHANGED
|
@@ -726,8 +726,13 @@ export function splitLookupTableFactory(
|
|
|
726
726
|
for (const kao of keyAccess) {
|
|
727
727
|
const disjunction = splitPotentials[kao.sid ?? ''];
|
|
728
728
|
if (kao.url in disjunction) {
|
|
729
|
+
// TODO(DSPX-3454): Handle duplicate KAS URLs with different KIDs.
|
|
730
|
+
// Each KAO contains a KID - the function should be updated to use this
|
|
731
|
+
// information to differentiate between keys from the same KAS.
|
|
732
|
+
// Cross-SDK validation needed via xtest.
|
|
729
733
|
throw new InvalidFileError(
|
|
730
|
-
`
|
|
734
|
+
`Unable to decrypt: Multiple keys detected for Key Access Server [${kao.url}]. ` +
|
|
735
|
+
`Please contact your administrator.`
|
|
731
736
|
);
|
|
732
737
|
}
|
|
733
738
|
if (allowed(kao)) {
|