@simplewebauthn/server 12.0.0 → 13.0.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/README.md +2 -2
- package/esm/authentication/generateAuthenticationOptions.d.ts +13 -13
- package/esm/authentication/generateAuthenticationOptions.d.ts.map +1 -1
- package/esm/authentication/verifyAuthenticationResponse.d.ts +18 -15
- package/esm/authentication/verifyAuthenticationResponse.d.ts.map +1 -1
- package/esm/helpers/convertCertBufferToPEM.d.ts +1 -1
- package/esm/helpers/convertCertBufferToPEM.d.ts.map +1 -1
- package/esm/helpers/cose.d.ts +22 -0
- package/esm/helpers/cose.d.ts.map +1 -1
- package/esm/helpers/cose.js +20 -0
- package/esm/helpers/decodeAttestationObject.d.ts +4 -0
- package/esm/helpers/decodeAttestationObject.d.ts.map +1 -1
- package/esm/helpers/decodeAttestationObject.js +4 -1
- package/esm/helpers/decodeClientDataJSON.d.ts +5 -1
- package/esm/helpers/decodeClientDataJSON.d.ts.map +1 -1
- package/esm/helpers/decodeClientDataJSON.js +4 -1
- package/esm/helpers/decodeCredentialPublicKey.d.ts +4 -0
- package/esm/helpers/decodeCredentialPublicKey.d.ts.map +1 -1
- package/esm/helpers/decodeCredentialPublicKey.js +4 -1
- package/esm/helpers/fetch.d.ts +4 -0
- package/esm/helpers/fetch.d.ts.map +1 -1
- package/esm/helpers/fetch.js +4 -1
- package/esm/helpers/generateChallenge.d.ts +4 -0
- package/esm/helpers/generateChallenge.d.ts.map +1 -1
- package/esm/helpers/generateChallenge.js +4 -1
- package/esm/helpers/generateUserID.d.ts +4 -0
- package/esm/helpers/generateUserID.d.ts.map +1 -1
- package/esm/helpers/generateUserID.js +4 -1
- package/esm/helpers/index.d.ts +16 -23
- package/esm/helpers/index.d.ts.map +1 -1
- package/esm/helpers/index.js +16 -17
- package/esm/helpers/iso/isoBase64URL.d.ts +1 -1
- package/esm/helpers/iso/isoBase64URL.d.ts.map +1 -1
- package/esm/helpers/iso/isoBase64URL.js +4 -0
- package/esm/helpers/iso/isoCBOR.d.ts +4 -0
- package/esm/helpers/iso/isoCBOR.d.ts.map +1 -1
- package/esm/helpers/iso/isoCBOR.js +4 -0
- package/esm/helpers/iso/isoCrypto/getWebCrypto.d.ts +1 -1
- package/esm/helpers/iso/isoCrypto/getWebCrypto.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/index.d.ts +4 -0
- package/esm/helpers/iso/isoCrypto/index.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/index.js +4 -0
- package/esm/helpers/iso/isoUint8Array.d.ts +4 -0
- package/esm/helpers/iso/isoUint8Array.d.ts.map +1 -1
- package/esm/helpers/iso/isoUint8Array.js +4 -0
- package/esm/helpers/parseAuthenticatorData.d.ts +4 -0
- package/esm/helpers/parseAuthenticatorData.d.ts.map +1 -1
- package/esm/helpers/parseAuthenticatorData.js +4 -1
- package/esm/helpers/parseBackupFlags.d.ts +1 -1
- package/esm/helpers/parseBackupFlags.d.ts.map +1 -1
- package/esm/helpers/validateCertificatePath.d.ts +3 -3
- package/esm/helpers/validateCertificatePath.d.ts.map +1 -1
- package/esm/helpers/validateCertificatePath.js +81 -58
- package/esm/helpers/verifySignature.d.ts +4 -0
- package/esm/helpers/verifySignature.d.ts.map +1 -1
- package/esm/helpers/verifySignature.js +4 -1
- package/esm/index.d.ts +8 -17
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +8 -11
- package/esm/metadata/mdsTypes.d.ts +5 -1
- package/esm/metadata/mdsTypes.d.ts.map +1 -1
- package/esm/metadata/verifyAttestationWithMetadata.d.ts +2 -2
- package/esm/metadata/verifyAttestationWithMetadata.d.ts.map +1 -1
- package/esm/metadata/verifyAttestationWithMetadata.js +1 -1
- package/esm/registration/generateRegistrationOptions.d.ts +21 -19
- package/esm/registration/generateRegistrationOptions.d.ts.map +1 -1
- package/esm/registration/generateRegistrationOptions.js +22 -1
- package/esm/registration/verifyRegistrationResponse.d.ts +17 -14
- package/esm/registration/verifyRegistrationResponse.d.ts.map +1 -1
- package/esm/services/metadataService.d.ts +22 -18
- package/esm/services/metadataService.d.ts.map +1 -1
- package/esm/services/metadataService.js +0 -19
- package/esm/services/settingsService.d.ts +11 -1
- package/esm/services/settingsService.d.ts.map +1 -1
- package/esm/services/settingsService.js +0 -10
- package/esm/types/dom.d.ts +329 -0
- package/esm/types/dom.d.ts.map +1 -0
- package/esm/types/dom.js +1 -0
- package/esm/types/index.d.ts +205 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +1 -0
- package/package.json +2 -3
- package/script/authentication/generateAuthenticationOptions.d.ts +13 -13
- package/script/authentication/generateAuthenticationOptions.d.ts.map +1 -1
- package/script/authentication/verifyAuthenticationResponse.d.ts +18 -15
- package/script/authentication/verifyAuthenticationResponse.d.ts.map +1 -1
- package/script/helpers/convertCertBufferToPEM.d.ts +1 -1
- package/script/helpers/convertCertBufferToPEM.d.ts.map +1 -1
- package/script/helpers/cose.d.ts +22 -0
- package/script/helpers/cose.d.ts.map +1 -1
- package/script/helpers/cose.js +20 -0
- package/script/helpers/decodeAttestationObject.d.ts +4 -0
- package/script/helpers/decodeAttestationObject.d.ts.map +1 -1
- package/script/helpers/decodeAttestationObject.js +4 -1
- package/script/helpers/decodeClientDataJSON.d.ts +5 -1
- package/script/helpers/decodeClientDataJSON.d.ts.map +1 -1
- package/script/helpers/decodeClientDataJSON.js +4 -1
- package/script/helpers/decodeCredentialPublicKey.d.ts +4 -0
- package/script/helpers/decodeCredentialPublicKey.d.ts.map +1 -1
- package/script/helpers/decodeCredentialPublicKey.js +4 -1
- package/script/helpers/fetch.d.ts +4 -0
- package/script/helpers/fetch.d.ts.map +1 -1
- package/script/helpers/fetch.js +4 -1
- package/script/helpers/generateChallenge.d.ts +4 -0
- package/script/helpers/generateChallenge.d.ts.map +1 -1
- package/script/helpers/generateChallenge.js +4 -1
- package/script/helpers/generateUserID.d.ts +4 -0
- package/script/helpers/generateUserID.d.ts.map +1 -1
- package/script/helpers/generateUserID.js +4 -1
- package/script/helpers/index.d.ts +16 -23
- package/script/helpers/index.d.ts.map +1 -1
- package/script/helpers/index.js +20 -36
- package/script/helpers/iso/isoBase64URL.d.ts +1 -1
- package/script/helpers/iso/isoBase64URL.d.ts.map +1 -1
- package/script/helpers/iso/isoBase64URL.js +4 -0
- package/script/helpers/iso/isoCBOR.d.ts +4 -0
- package/script/helpers/iso/isoCBOR.d.ts.map +1 -1
- package/script/helpers/iso/isoCBOR.js +4 -0
- package/script/helpers/iso/isoCrypto/getWebCrypto.d.ts +1 -1
- package/script/helpers/iso/isoCrypto/getWebCrypto.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/index.d.ts +4 -0
- package/script/helpers/iso/isoCrypto/index.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/index.js +4 -0
- package/script/helpers/iso/isoUint8Array.d.ts +4 -0
- package/script/helpers/iso/isoUint8Array.d.ts.map +1 -1
- package/script/helpers/iso/isoUint8Array.js +4 -0
- package/script/helpers/parseAuthenticatorData.d.ts +4 -0
- package/script/helpers/parseAuthenticatorData.d.ts.map +1 -1
- package/script/helpers/parseAuthenticatorData.js +4 -1
- package/script/helpers/parseBackupFlags.d.ts +1 -1
- package/script/helpers/parseBackupFlags.d.ts.map +1 -1
- package/script/helpers/validateCertificatePath.d.ts +3 -3
- package/script/helpers/validateCertificatePath.d.ts.map +1 -1
- package/script/helpers/validateCertificatePath.js +81 -58
- package/script/helpers/verifySignature.d.ts +4 -0
- package/script/helpers/verifySignature.d.ts.map +1 -1
- package/script/helpers/verifySignature.js +4 -1
- package/script/index.d.ts +8 -17
- package/script/index.d.ts.map +1 -1
- package/script/index.js +22 -17
- package/script/metadata/mdsTypes.d.ts +5 -1
- package/script/metadata/mdsTypes.d.ts.map +1 -1
- package/script/metadata/verifyAttestationWithMetadata.d.ts +2 -2
- package/script/metadata/verifyAttestationWithMetadata.d.ts.map +1 -1
- package/script/registration/generateRegistrationOptions.d.ts +21 -19
- package/script/registration/generateRegistrationOptions.d.ts.map +1 -1
- package/script/registration/generateRegistrationOptions.js +22 -1
- package/script/registration/verifyRegistrationResponse.d.ts +17 -14
- package/script/registration/verifyRegistrationResponse.d.ts.map +1 -1
- package/script/services/metadataService.d.ts +22 -18
- package/script/services/metadataService.d.ts.map +1 -1
- package/script/services/metadataService.js +0 -19
- package/script/services/settingsService.d.ts +11 -1
- package/script/services/settingsService.d.ts.map +1 -1
- package/script/services/settingsService.js +0 -10
- package/script/types/dom.d.ts +329 -0
- package/script/types/dom.d.ts.map +1 -0
- package/script/types/dom.js +2 -0
- package/script/types/index.d.ts +205 -0
- package/script/types/index.d.ts.map +1 -0
- package/script/types/index.js +2 -0
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
import type { MetadataStatement } from '../metadata/mdsTypes.js';
|
|
2
|
-
type VerificationMode = 'permissive' | 'strict';
|
|
3
|
-
interface MetadataService {
|
|
4
|
-
initialize(opts?: {
|
|
5
|
-
mdsServers?: string[];
|
|
6
|
-
statements?: MetadataStatement[];
|
|
7
|
-
verificationMode?: VerificationMode;
|
|
8
|
-
}): Promise<void>;
|
|
9
|
-
getStatement(aaguid: string | Uint8Array): Promise<MetadataStatement | undefined>;
|
|
10
|
-
}
|
|
11
2
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* https://fidoalliance.org/metadata/
|
|
3
|
+
* Allow MetadataService to accommodate unregistered AAGUIDs (`"permissive"`), or only allow
|
|
4
|
+
* registered AAGUIDs (`"strict"`). Currently primarily impacts how `getStatement()` operates
|
|
16
5
|
*/
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
private statementCache;
|
|
20
|
-
private state;
|
|
21
|
-
private verificationMode;
|
|
6
|
+
export type VerificationMode = 'permissive' | 'strict';
|
|
7
|
+
interface MetadataService {
|
|
22
8
|
/**
|
|
23
9
|
* Prepare the service to handle remote MDS servers and/or cache local metadata statements.
|
|
24
10
|
*
|
|
@@ -44,6 +30,24 @@ export declare class BaseMetadataService implements MetadataService {
|
|
|
44
30
|
* BLOB download.
|
|
45
31
|
*/
|
|
46
32
|
getStatement(aaguid: string | Uint8Array): Promise<MetadataStatement | undefined>;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* An implementation of `MetadataService` that can download and parse BLOBs, and support on-demand
|
|
36
|
+
* requesting and caching of individual metadata statements.
|
|
37
|
+
*
|
|
38
|
+
* https://fidoalliance.org/metadata/
|
|
39
|
+
*/
|
|
40
|
+
export declare class BaseMetadataService implements MetadataService {
|
|
41
|
+
private mdsCache;
|
|
42
|
+
private statementCache;
|
|
43
|
+
private state;
|
|
44
|
+
private verificationMode;
|
|
45
|
+
initialize(opts?: {
|
|
46
|
+
mdsServers?: string[];
|
|
47
|
+
statements?: MetadataStatement[];
|
|
48
|
+
verificationMode?: VerificationMode;
|
|
49
|
+
}): Promise<void>;
|
|
50
|
+
getStatement(aaguid: string | Uint8Array): Promise<MetadataStatement | undefined>;
|
|
47
51
|
/**
|
|
48
52
|
* Download and process the latest BLOB from MDS
|
|
49
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadataService.d.ts","sourceRoot":"","sources":["../../src/services/metadataService.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"metadataService.d.ts","sourceRoot":"","sources":["../../src/services/metadataService.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AA6BjC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,QAAQ,CAAC;AAIvD,UAAU,eAAe;IACvB;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,IAAI,CAAC,EAAE;QAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QACtB,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;QACjC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;KACrC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;CACnF;AAED;;;;;GAKG;AACH,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAoC;IACpD,OAAO,CAAC,cAAc,CAA6C;IACnE,OAAO,CAAC,KAAK,CAAyC;IACtD,OAAO,CAAC,gBAAgB,CAA8B;IAEhD,UAAU,CACd,IAAI,GAAE;QACJ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QACtB,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;QACjC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;KAChC,GACL,OAAO,CAAC,IAAI,CAAC;IA+DV,YAAY,CAChB,MAAM,EAAE,MAAM,GAAG,UAAU,GAC1B,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC;IA6DzC;;OAEG;YACW,YAAY;IAoE1B;;OAEG;IACH,OAAO,CAAC,eAAe;IAgCvB;;OAEG;IACH,OAAO,CAAC,QAAQ;CAWjB;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,eAA2C,CAAC"}
|
|
@@ -48,19 +48,6 @@ export class BaseMetadataService {
|
|
|
48
48
|
value: 'strict'
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Prepare the service to handle remote MDS servers and/or cache local metadata statements.
|
|
53
|
-
*
|
|
54
|
-
* **Options:**
|
|
55
|
-
*
|
|
56
|
-
* @param opts.mdsServers An array of URLs to FIDO Alliance Metadata Service
|
|
57
|
-
* (version 3.0)-compatible servers. Defaults to the official FIDO MDS server
|
|
58
|
-
* @param opts.statements An array of local metadata statements
|
|
59
|
-
* @param opts.verificationMode How MetadataService will handle unregistered AAGUIDs. Defaults to
|
|
60
|
-
* `"strict"` which throws errors during registration response verification when an
|
|
61
|
-
* unregistered AAGUID is encountered. Set to `"permissive"` to allow registration by
|
|
62
|
-
* authenticators with unregistered AAGUIDs
|
|
63
|
-
*/
|
|
64
51
|
async initialize(opts = {}) {
|
|
65
52
|
const { mdsServers = [defaultURLMDS], statements, verificationMode } = opts;
|
|
66
53
|
this.setState(SERVICE_STATE.REFRESHING);
|
|
@@ -112,12 +99,6 @@ export class BaseMetadataService {
|
|
|
112
99
|
}
|
|
113
100
|
this.setState(SERVICE_STATE.READY);
|
|
114
101
|
}
|
|
115
|
-
/**
|
|
116
|
-
* Get a metadata statement for a given AAGUID.
|
|
117
|
-
*
|
|
118
|
-
* This method will coordinate updating the cache as per the `nextUpdate` property in the initial
|
|
119
|
-
* BLOB download.
|
|
120
|
-
*/
|
|
121
102
|
async getStatement(aaguid) {
|
|
122
103
|
if (this.state === SERVICE_STATE.DISABLED) {
|
|
123
104
|
return;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import { AttestationFormat } from '../helpers/decodeAttestationObject.js';
|
|
2
|
-
type RootCertIdentifier = AttestationFormat | 'mds';
|
|
2
|
+
export type RootCertIdentifier = AttestationFormat | 'mds';
|
|
3
3
|
interface SettingsService {
|
|
4
|
+
/**
|
|
5
|
+
* Set potential root certificates for attestation formats that use them. Root certs will be tried
|
|
6
|
+
* one-by-one when validating a certificate path.
|
|
7
|
+
*
|
|
8
|
+
* Certificates can be specified as a raw `Buffer`, or as a PEM-formatted string. If a
|
|
9
|
+
* `Buffer` is passed in it will be converted to PEM format.
|
|
10
|
+
*/
|
|
4
11
|
setRootCertificates(opts: {
|
|
5
12
|
identifier: RootCertIdentifier;
|
|
6
13
|
certificates: (Uint8Array | string)[];
|
|
7
14
|
}): void;
|
|
15
|
+
/**
|
|
16
|
+
* Get any registered root certificates for the specified attestation format
|
|
17
|
+
*/
|
|
8
18
|
getRootCertificates(opts: {
|
|
9
19
|
identifier: RootCertIdentifier;
|
|
10
20
|
}): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settingsService.d.ts","sourceRoot":"","sources":["../../src/services/settingsService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAW1E,
|
|
1
|
+
{"version":3,"file":"settingsService.d.ts","sourceRoot":"","sources":["../../src/services/settingsService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAW1E,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG,KAAK,CAAC;AAE3D,UAAU,eAAe;IACvB;;;;;;OAMG;IACH,mBAAmB,CAAC,IAAI,EAAE;QACxB,UAAU,EAAE,kBAAkB,CAAC;QAC/B,YAAY,EAAE,CAAC,UAAU,GAAG,MAAM,CAAC,EAAE,CAAC;KACvC,GAAG,IAAI,CAAC;IAET;;OAEG;IACH,mBAAmB,CAAC,IAAI,EAAE;QAAE,UAAU,EAAE,kBAAkB,CAAA;KAAE,GAAG,MAAM,EAAE,CAAC;CACzE;AAkCD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,EAAE,eAA2C,CAAC"}
|
|
@@ -14,13 +14,6 @@ class BaseSettingsService {
|
|
|
14
14
|
});
|
|
15
15
|
this.pemCertificates = new Map();
|
|
16
16
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Set potential root certificates for attestation formats that use them. Root certs will be tried
|
|
19
|
-
* one-by-one when validating a certificate path.
|
|
20
|
-
*
|
|
21
|
-
* Certificates can be specified as a raw `Buffer`, or as a PEM-formatted string. If a
|
|
22
|
-
* `Buffer` is passed in it will be converted to PEM format.
|
|
23
|
-
*/
|
|
24
17
|
setRootCertificates(opts) {
|
|
25
18
|
const { identifier, certificates } = opts;
|
|
26
19
|
const newCertificates = [];
|
|
@@ -34,9 +27,6 @@ class BaseSettingsService {
|
|
|
34
27
|
}
|
|
35
28
|
this.pemCertificates.set(identifier, newCertificates);
|
|
36
29
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Get any registered root certificates for the specified attestation format
|
|
39
|
-
*/
|
|
40
30
|
getRootCertificates(opts) {
|
|
41
31
|
const { identifier } = opts;
|
|
42
32
|
return this.pemCertificates.get(identifier) ?? [];
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DO NOT MODIFY THESE FILES!
|
|
3
|
+
*
|
|
4
|
+
* These files were copied from the **types** package. To update this file, make changes to those
|
|
5
|
+
* files instead and then run the following command from the monorepo root folder:
|
|
6
|
+
*
|
|
7
|
+
* deno task codegen:types
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Generated from typescript@5.6.3
|
|
11
|
+
* To regenerate, run the following command from the package root:
|
|
12
|
+
* deno task extract-dom-types
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Available only in secure contexts.
|
|
16
|
+
*
|
|
17
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)
|
|
18
|
+
*/
|
|
19
|
+
export interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
|
|
20
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */
|
|
21
|
+
readonly authenticatorData: ArrayBuffer;
|
|
22
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */
|
|
23
|
+
readonly signature: ArrayBuffer;
|
|
24
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */
|
|
25
|
+
readonly userHandle: ArrayBuffer | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Available only in secure contexts.
|
|
29
|
+
*
|
|
30
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)
|
|
31
|
+
*/
|
|
32
|
+
export interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
|
|
33
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */
|
|
34
|
+
readonly attestationObject: ArrayBuffer;
|
|
35
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */
|
|
36
|
+
getAuthenticatorData(): ArrayBuffer;
|
|
37
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */
|
|
38
|
+
getPublicKey(): ArrayBuffer | null;
|
|
39
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */
|
|
40
|
+
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
|
|
41
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */
|
|
42
|
+
getTransports(): string[];
|
|
43
|
+
}
|
|
44
|
+
export interface AuthenticationExtensionsClientInputs {
|
|
45
|
+
appid?: string;
|
|
46
|
+
credProps?: boolean;
|
|
47
|
+
hmacCreateSecret?: boolean;
|
|
48
|
+
minPinLength?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface AuthenticationExtensionsClientOutputs {
|
|
51
|
+
appid?: boolean;
|
|
52
|
+
credProps?: CredentialPropertiesOutput;
|
|
53
|
+
hmacCreateSecret?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface AuthenticatorSelectionCriteria {
|
|
56
|
+
authenticatorAttachment?: AuthenticatorAttachment;
|
|
57
|
+
requireResidentKey?: boolean;
|
|
58
|
+
residentKey?: ResidentKeyRequirement;
|
|
59
|
+
userVerification?: UserVerificationRequirement;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
|
|
63
|
+
*
|
|
64
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
|
|
65
|
+
*/
|
|
66
|
+
export interface Crypto {
|
|
67
|
+
/**
|
|
68
|
+
* Available only in secure contexts.
|
|
69
|
+
*
|
|
70
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
|
|
71
|
+
*/
|
|
72
|
+
readonly subtle: SubtleCrypto;
|
|
73
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
|
|
74
|
+
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
75
|
+
/**
|
|
76
|
+
* Available only in secure contexts.
|
|
77
|
+
*
|
|
78
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
|
|
79
|
+
*/
|
|
80
|
+
randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Available only in secure contexts.
|
|
84
|
+
*
|
|
85
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
|
|
86
|
+
*/
|
|
87
|
+
export interface PublicKeyCredential extends Credential {
|
|
88
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment) */
|
|
89
|
+
readonly authenticatorAttachment: string | null;
|
|
90
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */
|
|
91
|
+
readonly rawId: ArrayBuffer;
|
|
92
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */
|
|
93
|
+
readonly response: AuthenticatorResponse;
|
|
94
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
|
|
95
|
+
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
|
|
96
|
+
}
|
|
97
|
+
export interface PublicKeyCredentialCreationOptions {
|
|
98
|
+
attestation?: AttestationConveyancePreference;
|
|
99
|
+
authenticatorSelection?: AuthenticatorSelectionCriteria;
|
|
100
|
+
challenge: BufferSource;
|
|
101
|
+
excludeCredentials?: PublicKeyCredentialDescriptor[];
|
|
102
|
+
extensions?: AuthenticationExtensionsClientInputs;
|
|
103
|
+
pubKeyCredParams: PublicKeyCredentialParameters[];
|
|
104
|
+
rp: PublicKeyCredentialRpEntity;
|
|
105
|
+
timeout?: number;
|
|
106
|
+
user: PublicKeyCredentialUserEntity;
|
|
107
|
+
}
|
|
108
|
+
export interface PublicKeyCredentialDescriptor {
|
|
109
|
+
id: BufferSource;
|
|
110
|
+
transports?: AuthenticatorTransport[];
|
|
111
|
+
type: PublicKeyCredentialType;
|
|
112
|
+
}
|
|
113
|
+
export interface PublicKeyCredentialParameters {
|
|
114
|
+
alg: COSEAlgorithmIdentifier;
|
|
115
|
+
type: PublicKeyCredentialType;
|
|
116
|
+
}
|
|
117
|
+
export interface PublicKeyCredentialRequestOptions {
|
|
118
|
+
allowCredentials?: PublicKeyCredentialDescriptor[];
|
|
119
|
+
challenge: BufferSource;
|
|
120
|
+
extensions?: AuthenticationExtensionsClientInputs;
|
|
121
|
+
rpId?: string;
|
|
122
|
+
timeout?: number;
|
|
123
|
+
userVerification?: UserVerificationRequirement;
|
|
124
|
+
}
|
|
125
|
+
export interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
|
|
126
|
+
displayName: string;
|
|
127
|
+
id: BufferSource;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Available only in secure contexts.
|
|
131
|
+
*
|
|
132
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)
|
|
133
|
+
*/
|
|
134
|
+
export interface AuthenticatorResponse {
|
|
135
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */
|
|
136
|
+
readonly clientDataJSON: ArrayBuffer;
|
|
137
|
+
}
|
|
138
|
+
export interface CredentialPropertiesOutput {
|
|
139
|
+
rk?: boolean;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
|
|
143
|
+
* Available only in secure contexts.
|
|
144
|
+
*
|
|
145
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
|
|
146
|
+
*/
|
|
147
|
+
export interface SubtleCrypto {
|
|
148
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
|
|
149
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
150
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
|
|
151
|
+
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
152
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
|
|
153
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
154
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
|
|
155
|
+
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
156
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
|
|
157
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
158
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
|
|
159
|
+
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
160
|
+
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
161
|
+
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
|
|
162
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
|
163
|
+
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
164
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
165
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
166
|
+
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
167
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
|
|
168
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
169
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
170
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
|
|
171
|
+
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
172
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
|
|
173
|
+
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
174
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
|
|
175
|
+
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
|
|
176
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
|
|
177
|
+
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Available only in secure contexts.
|
|
181
|
+
*
|
|
182
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)
|
|
183
|
+
*/
|
|
184
|
+
export interface Credential {
|
|
185
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */
|
|
186
|
+
readonly id: string;
|
|
187
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */
|
|
188
|
+
readonly type: string;
|
|
189
|
+
}
|
|
190
|
+
export interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
|
|
191
|
+
id?: string;
|
|
192
|
+
}
|
|
193
|
+
export interface PublicKeyCredentialEntity {
|
|
194
|
+
name: string;
|
|
195
|
+
}
|
|
196
|
+
export interface RsaOaepParams extends Algorithm {
|
|
197
|
+
label?: BufferSource;
|
|
198
|
+
}
|
|
199
|
+
export interface AesCtrParams extends Algorithm {
|
|
200
|
+
counter: BufferSource;
|
|
201
|
+
length: number;
|
|
202
|
+
}
|
|
203
|
+
export interface AesCbcParams extends Algorithm {
|
|
204
|
+
iv: BufferSource;
|
|
205
|
+
}
|
|
206
|
+
export interface AesGcmParams extends Algorithm {
|
|
207
|
+
additionalData?: BufferSource;
|
|
208
|
+
iv: BufferSource;
|
|
209
|
+
tagLength?: number;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
|
|
213
|
+
* Available only in secure contexts.
|
|
214
|
+
*
|
|
215
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
|
|
216
|
+
*/
|
|
217
|
+
export interface CryptoKey {
|
|
218
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
|
|
219
|
+
readonly algorithm: KeyAlgorithm;
|
|
220
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
|
|
221
|
+
readonly extractable: boolean;
|
|
222
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
|
|
223
|
+
readonly type: KeyType;
|
|
224
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
|
|
225
|
+
readonly usages: KeyUsage[];
|
|
226
|
+
}
|
|
227
|
+
export interface EcdhKeyDeriveParams extends Algorithm {
|
|
228
|
+
public: CryptoKey;
|
|
229
|
+
}
|
|
230
|
+
export interface HkdfParams extends Algorithm {
|
|
231
|
+
hash: HashAlgorithmIdentifier;
|
|
232
|
+
info: BufferSource;
|
|
233
|
+
salt: BufferSource;
|
|
234
|
+
}
|
|
235
|
+
export interface Pbkdf2Params extends Algorithm {
|
|
236
|
+
hash: HashAlgorithmIdentifier;
|
|
237
|
+
iterations: number;
|
|
238
|
+
salt: BufferSource;
|
|
239
|
+
}
|
|
240
|
+
export interface AesDerivedKeyParams extends Algorithm {
|
|
241
|
+
length: number;
|
|
242
|
+
}
|
|
243
|
+
export interface HmacImportParams extends Algorithm {
|
|
244
|
+
hash: HashAlgorithmIdentifier;
|
|
245
|
+
length?: number;
|
|
246
|
+
}
|
|
247
|
+
export interface JsonWebKey {
|
|
248
|
+
alg?: string;
|
|
249
|
+
crv?: string;
|
|
250
|
+
d?: string;
|
|
251
|
+
dp?: string;
|
|
252
|
+
dq?: string;
|
|
253
|
+
e?: string;
|
|
254
|
+
ext?: boolean;
|
|
255
|
+
k?: string;
|
|
256
|
+
key_ops?: string[];
|
|
257
|
+
kty?: string;
|
|
258
|
+
n?: string;
|
|
259
|
+
oth?: RsaOtherPrimesInfo[];
|
|
260
|
+
p?: string;
|
|
261
|
+
q?: string;
|
|
262
|
+
qi?: string;
|
|
263
|
+
use?: string;
|
|
264
|
+
x?: string;
|
|
265
|
+
y?: string;
|
|
266
|
+
}
|
|
267
|
+
export interface CryptoKeyPair {
|
|
268
|
+
privateKey: CryptoKey;
|
|
269
|
+
publicKey: CryptoKey;
|
|
270
|
+
}
|
|
271
|
+
export interface RsaHashedKeyGenParams extends RsaKeyGenParams {
|
|
272
|
+
hash: HashAlgorithmIdentifier;
|
|
273
|
+
}
|
|
274
|
+
export interface EcKeyGenParams extends Algorithm {
|
|
275
|
+
namedCurve: NamedCurve;
|
|
276
|
+
}
|
|
277
|
+
export interface AesKeyGenParams extends Algorithm {
|
|
278
|
+
length: number;
|
|
279
|
+
}
|
|
280
|
+
export interface HmacKeyGenParams extends Algorithm {
|
|
281
|
+
hash: HashAlgorithmIdentifier;
|
|
282
|
+
length?: number;
|
|
283
|
+
}
|
|
284
|
+
export interface RsaHashedImportParams extends Algorithm {
|
|
285
|
+
hash: HashAlgorithmIdentifier;
|
|
286
|
+
}
|
|
287
|
+
export interface EcKeyImportParams extends Algorithm {
|
|
288
|
+
namedCurve: NamedCurve;
|
|
289
|
+
}
|
|
290
|
+
export interface AesKeyAlgorithm extends KeyAlgorithm {
|
|
291
|
+
length: number;
|
|
292
|
+
}
|
|
293
|
+
export interface RsaPssParams extends Algorithm {
|
|
294
|
+
saltLength: number;
|
|
295
|
+
}
|
|
296
|
+
export interface EcdsaParams extends Algorithm {
|
|
297
|
+
hash: HashAlgorithmIdentifier;
|
|
298
|
+
}
|
|
299
|
+
export interface Algorithm {
|
|
300
|
+
name: string;
|
|
301
|
+
}
|
|
302
|
+
export interface KeyAlgorithm {
|
|
303
|
+
name: string;
|
|
304
|
+
}
|
|
305
|
+
export interface RsaOtherPrimesInfo {
|
|
306
|
+
d?: string;
|
|
307
|
+
r?: string;
|
|
308
|
+
t?: string;
|
|
309
|
+
}
|
|
310
|
+
export interface RsaKeyGenParams extends Algorithm {
|
|
311
|
+
modulusLength: number;
|
|
312
|
+
publicExponent: BigInteger;
|
|
313
|
+
}
|
|
314
|
+
export type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
|
|
315
|
+
export type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
|
|
316
|
+
export type COSEAlgorithmIdentifier = number;
|
|
317
|
+
export type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
|
318
|
+
export type AuthenticatorAttachment = "cross-platform" | "platform";
|
|
319
|
+
export type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
|
|
320
|
+
export type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
321
|
+
export type PublicKeyCredentialType = "public-key";
|
|
322
|
+
export type AlgorithmIdentifier = Algorithm | string;
|
|
323
|
+
export type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
324
|
+
export type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
325
|
+
export type KeyType = "private" | "public" | "secret";
|
|
326
|
+
export type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
327
|
+
export type NamedCurve = string;
|
|
328
|
+
export type BigInte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