@thunderid/javascript 1.1.0 → 1.2.0
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/IsomorphicCrypto.d.ts +18 -0
- package/dist/IsomorphicCrypto.d.ts.map +1 -1
- package/dist/StorageManager.d.ts +1 -0
- package/dist/StorageManager.d.ts.map +1 -1
- package/dist/ThunderIDJavaScriptClient.d.ts +6 -0
- package/dist/ThunderIDJavaScriptClient.d.ts.map +1 -1
- package/dist/cjs/index.cjs +241 -7
- package/dist/constants/BackchannelLogoutConstants.d.ts +13 -0
- package/dist/constants/BackchannelLogoutConstants.d.ts.map +1 -0
- package/dist/edge/index.js +238 -8
- package/dist/errors/exception.d.ts +7 -0
- package/dist/errors/exception.d.ts.map +1 -1
- package/dist/i18n/models/i18n.d.ts +1 -0
- package/dist/i18n/models/i18n.d.ts.map +1 -1
- package/dist/i18n/translations/en-US.d.ts.map +1 -1
- package/dist/i18n/translations/fr-FR.d.ts.map +1 -1
- package/dist/i18n/translations/hi-IN.d.ts.map +1 -1
- package/dist/i18n/translations/ja-JP.d.ts.map +1 -1
- package/dist/i18n/translations/pt-BR.d.ts.map +1 -1
- package/dist/i18n/translations/pt-PT.d.ts.map +1 -1
- package/dist/i18n/translations/si-LK.d.ts.map +1 -1
- package/dist/i18n/translations/ta-IN.d.ts.map +1 -1
- package/dist/i18n/translations/te-IN.d.ts.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +238 -8
- package/dist/models/embedded-flow.d.ts +14 -1
- package/dist/models/embedded-flow.d.ts.map +1 -1
- package/dist/models/embedded-signup-flow.d.ts +4 -0
- package/dist/models/embedded-signup-flow.d.ts.map +1 -1
- package/dist/models/logout-token.d.ts +58 -0
- package/dist/models/logout-token.d.ts.map +1 -0
- package/dist/utils/AuthenticationHelper.d.ts +31 -0
- package/dist/utils/AuthenticationHelper.d.ts.map +1 -1
- package/dist/utils/parseKeyValuePairs.d.ts +21 -0
- package/dist/utils/parseKeyValuePairs.d.ts.map +1 -0
- package/dist/utils/validateLogoutTokenClaims.d.ts +15 -0
- package/dist/utils/validateLogoutTokenClaims.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { KeyValuePair } from '../models/embedded-flow';
|
|
2
|
+
/**
|
|
3
|
+
* Reads the label and value pairs a KEY_VALUE_LIST renders from the raw value found under its
|
|
4
|
+
* `source` key in `additionalData`. The server publishes them as a JSON-encoded array, since
|
|
5
|
+
* additional data carries strings, so both an array and its encoding are accepted.
|
|
6
|
+
*
|
|
7
|
+
* Entries that are not objects, or that carry no value, are dropped, since an empty row tells the
|
|
8
|
+
* user nothing. Anything that is not a list of pairs yields none.
|
|
9
|
+
*
|
|
10
|
+
* @param raw - The raw value found under the source key.
|
|
11
|
+
* @returns The pairs to render, empty when the value holds none.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* parseKeyValuePairs('[{"label":"Email","value":"a@b.com"}]'); // [{label: 'Email', value: 'a@b.com'}]
|
|
16
|
+
* parseKeyValuePairs('not json'); // []
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const parseKeyValuePairs: (raw: unknown) => KeyValuePair[];
|
|
20
|
+
export default parseKeyValuePairs;
|
|
21
|
+
//# sourceMappingURL=parseKeyValuePairs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseKeyValuePairs.d.ts","sourceRoot":"","sources":["../../src/utils/parseKeyValuePairs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAErD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,kBAAkB,GAAI,KAAK,OAAO,KAAG,YAAY,EA2BtD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LogoutTokenClaims, LogoutTokenValidationOptions } from '../models/logout-token';
|
|
2
|
+
/**
|
|
3
|
+
* Checks the header and claims of a back-channel logout token, per OpenID Connect Back-Channel
|
|
4
|
+
* Logout 1.0 section 2.6. It does not verify the signature: the caller does that with the server's
|
|
5
|
+
* keys. Messages never include the token or its claim values.
|
|
6
|
+
*
|
|
7
|
+
* @param header - The decoded JOSE header.
|
|
8
|
+
* @param payload - The decoded claims.
|
|
9
|
+
* @param options - The issuer, client and clock the claims are checked against.
|
|
10
|
+
* @returns The claims, typed.
|
|
11
|
+
* @throws {InvalidLogoutTokenError} When any check fails.
|
|
12
|
+
*/
|
|
13
|
+
declare const validateLogoutTokenClaims: (header: unknown, payload: unknown, options: LogoutTokenValidationOptions) => LogoutTokenClaims;
|
|
14
|
+
export default validateLogoutTokenClaims;
|
|
15
|
+
//# sourceMappingURL=validateLogoutTokenClaims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateLogoutTokenClaims.d.ts","sourceRoot":"","sources":["../../src/utils/validateLogoutTokenClaims.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,iBAAiB,EAAE,4BAA4B,EAAC,MAAM,wBAAwB,CAAC;AAWvF;;;;;;;;;;GAUG;AACH,QAAA,MAAM,yBAAyB,GAC7B,QAAQ,OAAO,EACf,SAAS,OAAO,EAChB,SAAS,4BAA4B,KACpC,iBA4DF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/javascript",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "JavaScript Ecosystem SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"rimraf": "6.1.3",
|
|
45
45
|
"rolldown": "1.0.0-beta.45",
|
|
46
46
|
"typescript": "5.9.3",
|
|
47
|
-
"vitest": "4.1.
|
|
47
|
+
"vitest": "4.1.11"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"jose": "6.2.3",
|