@pagopa/io-react-native-wallet 0.18.1 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/commonjs/client/generated/wallet-provider.js +1 -5
- package/lib/commonjs/client/generated/wallet-provider.js.map +1 -1
- package/lib/commonjs/utils/errors.js +71 -2
- package/lib/commonjs/utils/errors.js.map +1 -1
- package/lib/commonjs/wallet-instance/README.md +6 -0
- package/lib/commonjs/wallet-instance/index.js +11 -1
- package/lib/commonjs/wallet-instance/index.js.map +1 -1
- package/lib/commonjs/wallet-instance-attestation/README.md +6 -0
- package/lib/commonjs/wallet-instance-attestation/issuing.js +3 -0
- package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/module/client/generated/wallet-provider.js +0 -2
- package/lib/module/client/generated/wallet-provider.js.map +1 -1
- package/lib/module/utils/errors.js +66 -0
- package/lib/module/utils/errors.js.map +1 -1
- package/lib/module/wallet-instance/README.md +6 -0
- package/lib/module/wallet-instance/index.js +11 -1
- package/lib/module/wallet-instance/index.js.map +1 -1
- package/lib/module/wallet-instance-attestation/README.md +6 -0
- package/lib/module/wallet-instance-attestation/issuing.js +4 -1
- package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
- package/lib/typescript/client/generated/wallet-provider.d.ts +0 -4
- package/lib/typescript/client/generated/wallet-provider.d.ts.map +1 -1
- package/lib/typescript/utils/errors.d.ts +32 -0
- package/lib/typescript/utils/errors.d.ts.map +1 -1
- package/lib/typescript/wallet-instance/index.d.ts.map +1 -1
- package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/generated/wallet-provider.ts +0 -6
- package/src/utils/errors.ts +69 -0
- package/src/wallet-instance/README.md +6 -0
- package/src/wallet-instance/index.ts +34 -7
- package/src/wallet-instance-attestation/README.md +6 -0
- package/src/wallet-instance-attestation/issuing.ts +9 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.WalletAttestationView = exports.ProblemDetail = exports.NonceDetailView = exports.
|
6
|
+
exports.WalletAttestationView = exports.ProblemDetail = exports.NonceDetailView = exports.EndpointByMethod = exports.CreateWalletInstanceBody = exports.CreateWalletAttestationBody = exports.ApiClient = void 0;
|
7
7
|
exports.createApiClient = createApiClient;
|
8
8
|
exports.post_CreateWalletInstance = exports.post_CreateWalletAttestation = exports.get_GetNonce = void 0;
|
9
9
|
var _zod = _interopRequireDefault(require("zod"));
|
@@ -35,10 +35,6 @@ const ProblemDetail = _zod.default.object({
|
|
35
35
|
instance: _zod.default.string().optional()
|
36
36
|
});
|
37
37
|
exports.ProblemDetail = ProblemDetail;
|
38
|
-
const FiscalCode = _zod.default.string();
|
39
|
-
exports.FiscalCode = FiscalCode;
|
40
|
-
const Id = _zod.default.string();
|
41
|
-
exports.Id = Id;
|
42
38
|
const get_GetNonce = {
|
43
39
|
method: _zod.default.literal("GET"),
|
44
40
|
path: _zod.default.literal("/nonce"),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_zod","_interopRequireDefault","require","obj","__esModule","default","NonceDetailView","z","object","nonce","string","exports","WalletAttestationView","wallet_attestation","CreateWalletInstanceBody","challenge","key_attestation","hardware_key_tag","CreateWalletAttestationBody","grant_type","literal","assertion","ProblemDetail","type","optional","title","status","number","detail","instance","
|
1
|
+
{"version":3,"names":["_zod","_interopRequireDefault","require","obj","__esModule","default","NonceDetailView","z","object","nonce","string","exports","WalletAttestationView","wallet_attestation","CreateWalletInstanceBody","challenge","key_attestation","hardware_key_tag","CreateWalletAttestationBody","grant_type","literal","assertion","ProblemDetail","type","optional","title","status","number","detail","instance","get_GetNonce","method","path","parameters","never","response","post_CreateWalletInstance","body","unknown","post_CreateWalletAttestation","EndpointByMethod","get","post","ApiClient","baseUrl","constructor","fetcher","setBaseUrl","arguments","length","undefined","createApiClient"],"sourceRoot":"../../../../src","sources":["client/generated/wallet-provider.ts"],"mappings":";;;;;;;;AAAA,IAAAA,IA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yB;IAC9C,QAAQ,EAAEG;EACZ;AACF,CAAC;;AAED;;AAEA;;AAIA;;AAEA;AAAA5B,OAAA,CAAA6B,gBAAA,GAAAA,gBAAA;AAyCA;;AAEA;AACO,MAAMG,SAAS,CAAC;EACrBC,OAAO,GAAW,EAAE;EAEpBC,WAAWA,CAAQC,OAAgB,EAAE;IAAA,KAAlBA,OAAgB,GAAhBA,OAAgB;EAAG;EAEtCC,UAAUA,CAACH,OAAe,EAAE;IAC1B,IAAI,CAACA,OAAO,GAAGA,OAAO;IACtB,OAAO,IAAI;EACb;;EAEA;EACAH,GAAGA,CACDT,IAAU,EAE+B;IACzC,OAAO,IAAI,CAACc,OAAO,CAAC,KAAK,EAAE,IAAI,CAACF,OAAO,GAAGZ,IAAI,EAAAgB,SAAA,CAAAC,MAAA,QAAAC,SAAA,GAAAF,SAAA,GAAW,CAAC;EAC5D;EACA;;EAEA;EACAN,IAAIA,CACFV,IAAU,EAE+B;IACzC,OAAO,IAAI,CAACc,OAAO,CAAC,MAAM,EAAE,IAAI,CAACF,OAAO,GAAGZ,IAAI,EAAAgB,SAAA,CAAAC,MAAA,QAAAC,SAAA,GAAAF,SAAA,GAAW,CAAC;EAC7D;EACA;AACF;AAACrC,OAAA,CAAAgC,SAAA,GAAAA,SAAA;AAEM,SAASQ,eAAeA,CAACL,OAAgB,EAAEF,OAAgB,EAAE;EAClE,OAAO,IAAID,SAAS,CAACG,OAAO,CAAC,CAACC,UAAU,CAACH,OAAO,IAAI,EAAE,CAAC;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA"}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.serializeAttrs = exports.WalletProviderResponseError = exports.WalletInstanceRevokedError = exports.WalletInstanceNotFoundError = exports.WalletInstanceAttestationIssuingError = exports.ValidationFailed = exports.UnexpectedStatusCodeError = exports.StatusAttestationInvalid = exports.StatusAttestationError = exports.PidMetadataError = exports.PidIssuingError = exports.OperationAbortedError = exports.NoSuitableKeysFoundInEntityConfiguration = exports.IoWalletError = exports.CredentialRequestError = exports.CredentialNotEntitledError = exports.CredentialIssuingNotSynchronousError = exports.ClaimsNotFoundInToken = exports.ClaimsNotFoundBetweenDislosures = exports.AuthorizationIdpError = exports.AuthorizationError = exports.AuthRequestDecodeError = void 0;
|
6
|
+
exports.serializeAttrs = exports.WalletProviderResponseError = exports.WalletInstanceRevokedError = exports.WalletInstanceNotFoundError = exports.WalletInstanceIntegrityFailedError = exports.WalletInstanceCreationIntegrityError = exports.WalletInstanceCreationError = exports.WalletInstanceAttestationIssuingError = exports.ValidationFailed = exports.UnexpectedStatusCodeError = exports.StatusAttestationInvalid = exports.StatusAttestationError = exports.PidMetadataError = exports.PidIssuingError = exports.OperationAbortedError = exports.NoSuitableKeysFoundInEntityConfiguration = exports.IoWalletError = exports.CredentialRequestError = exports.CredentialNotEntitledError = exports.CredentialIssuingNotSynchronousError = exports.ClaimsNotFoundInToken = exports.ClaimsNotFoundBetweenDislosures = exports.AuthorizationIdpError = exports.AuthorizationError = exports.AuthRequestDecodeError = void 0;
|
7
7
|
/**
|
8
8
|
* utility to format a set of attributes into an error message string
|
9
9
|
*
|
@@ -323,9 +323,78 @@ class WalletInstanceNotFoundError extends IoWalletError {
|
|
323
323
|
}
|
324
324
|
|
325
325
|
/**
|
326
|
-
* An error subclass thrown when
|
326
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
327
327
|
*/
|
328
328
|
exports.WalletInstanceNotFoundError = WalletInstanceNotFoundError;
|
329
|
+
class WalletInstanceIntegrityFailedError extends IoWalletError {
|
330
|
+
static get code() {
|
331
|
+
return "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED";
|
332
|
+
}
|
333
|
+
code = "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED";
|
334
|
+
constructor(message, claim) {
|
335
|
+
let reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "unspecified";
|
336
|
+
super(serializeAttrs({
|
337
|
+
message,
|
338
|
+
claim,
|
339
|
+
reason
|
340
|
+
}));
|
341
|
+
this.reason = reason;
|
342
|
+
this.claim = claim;
|
343
|
+
}
|
344
|
+
}
|
345
|
+
|
346
|
+
/**
|
347
|
+
* An error subclass thrown when an error occurs during the wallet instance creation process.
|
348
|
+
*/
|
349
|
+
exports.WalletInstanceIntegrityFailedError = WalletInstanceIntegrityFailedError;
|
350
|
+
class WalletInstanceCreationError extends IoWalletError {
|
351
|
+
static get code() {
|
352
|
+
return "ERR_IO_WALLET_INSTANCE_CREATION_ERROR";
|
353
|
+
}
|
354
|
+
code = "ERR_IO_WALLET_INSTANCE_CREATION_ERROR";
|
355
|
+
|
356
|
+
/** The Claim for which the validation failed. */
|
357
|
+
|
358
|
+
/** Reason code for the validation failure. */
|
359
|
+
|
360
|
+
constructor(message) {
|
361
|
+
let claim = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "unspecified";
|
362
|
+
let reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "unspecified";
|
363
|
+
super(serializeAttrs({
|
364
|
+
message,
|
365
|
+
claim,
|
366
|
+
reason
|
367
|
+
}));
|
368
|
+
this.claim = claim;
|
369
|
+
this.reason = reason;
|
370
|
+
}
|
371
|
+
}
|
372
|
+
|
373
|
+
/**
|
374
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
375
|
+
*/
|
376
|
+
exports.WalletInstanceCreationError = WalletInstanceCreationError;
|
377
|
+
class WalletInstanceCreationIntegrityError extends IoWalletError {
|
378
|
+
static get code() {
|
379
|
+
return "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR";
|
380
|
+
}
|
381
|
+
code = "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR";
|
382
|
+
constructor(message, claim) {
|
383
|
+
let reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "unspecified";
|
384
|
+
super(serializeAttrs({
|
385
|
+
message,
|
386
|
+
claim,
|
387
|
+
reason
|
388
|
+
}));
|
389
|
+
this.reason = reason;
|
390
|
+
this.claim = claim;
|
391
|
+
}
|
392
|
+
}
|
393
|
+
|
394
|
+
/**
|
395
|
+
* An error subclass thrown when an error occurs during the authorization process.
|
396
|
+
*/
|
397
|
+
exports.WalletInstanceCreationIntegrityError = WalletInstanceCreationIntegrityError;
|
329
398
|
class AuthorizationError extends IoWalletError {
|
330
399
|
static get code() {
|
331
400
|
return "ERR_IO_WALLET_AUTHORIZATION_ERROR";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["serializeAttrs","attrs","Object","entries","map","_ref","k","v","Array","isArray","join","_","exports","IoWalletError","Error","code","constructor","message","_Error$captureStackTr","name","captureStackTrace","call","UnexpectedStatusCodeError","statusCode","toString","ValidationFailed","claim","arguments","length","undefined","reason","WalletInstanceAttestationIssuingError","AuthRequestDecodeError","PidIssuingError","ClaimsNotFoundBetweenDislosures","claims","c","ClaimsNotFoundInToken","NoSuitableKeysFoundInEntityConfiguration","scenario","PidMetadataError","WalletProviderResponseError","WalletInstanceRevokedError","WalletInstanceNotFoundError","AuthorizationError","AuthorizationIdpError","error","errorDescription","OperationAbortedError","operation","StatusAttestationInvalid","StatusAttestationError","CredentialNotEntitledError","CredentialRequestError","CredentialIssuingNotSynchronousError"],"sourceRoot":"../../../src","sources":["utils/errors.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GACzBC,KAAsC,IAEtCC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CAClBG,GAAG,CAACC,IAAA;EAAA,IAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,GAAAF,IAAA;EAAA,OAAK,CAACC,CAAC,EAAEE,KAAK,CAACC,OAAO,CAACF,CAAC,CAAC,GAAI,IAAGA,CAAC,CAACG,IAAI,CAAC,IAAI,CA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AA;AAGO,MAAMC,oCAAoC,SAASzC,aAAa,CAAC;EACtE,WAAWE,IAAIA,CAAA,EAA+C;IAC5D,OAAO,0CAA0C;EACnD;EAEAA,IAAI,GAAG,0CAA0C;EAIjDC,WAAWA,CAACC,OAAe,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC3B,cAAc,CAAC;MAAEiB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF;AAAClB,OAAA,CAAA0C,oCAAA,GAAAA,oCAAA"}
|
1
|
+
{"version":3,"names":["serializeAttrs","attrs","Object","entries","map","_ref","k","v","Array","isArray","join","_","exports","IoWalletError","Error","code","constructor","message","_Error$captureStackTr","name","captureStackTrace","call","UnexpectedStatusCodeError","statusCode","toString","ValidationFailed","claim","arguments","length","undefined","reason","WalletInstanceAttestationIssuingError","AuthRequestDecodeError","PidIssuingError","ClaimsNotFoundBetweenDislosures","claims","c","ClaimsNotFoundInToken","NoSuitableKeysFoundInEntityConfiguration","scenario","PidMetadataError","WalletProviderResponseError","WalletInstanceRevokedError","WalletInstanceNotFoundError","WalletInstanceIntegrityFailedError","WalletInstanceCreationError","WalletInstanceCreationIntegrityError","AuthorizationError","AuthorizationIdpError","error","errorDescription","OperationAbortedError","operation","StatusAttestationInvalid","StatusAttestationError","CredentialNotEntitledError","CredentialRequestError","CredentialIssuingNotSynchronousError"],"sourceRoot":"../../../src","sources":["utils/errors.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,cAAc,GACzBC,KAAsC,IAEtCC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CAClBG,GAAG,CAACC,IAAA;EAAA,IAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,GAAAF,IAAA;EAAA,OA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F;;AAEA;AACA;AACA;AAFAlB,OAAA,CAAA2C,0BAAA,GAAAA,0BAAA;AAGO,MAAMC,sBAAsB,SAAS3C,aAAa,CAAC;EACxD,WAAWE,IAAIA,CAAA,EAA+B;IAC5C,OAAO,0BAA0B;EACnC;EAEAA,IAAI,GAAG,0BAA0B;EAIjCC,WAAWA,CAACC,OAAe,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC3B,cAAc,CAAC;MAAEiB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AAFAlB,OAAA,CAAA4C,sBAAA,GAAAA,sBAAA;AAGO,MAAMC,oCAAoC,SAAS5C,aAAa,CAAC;EACtE,WAAWE,IAAIA,CAAA,EAA+C;IAC5D,OAAO,0CAA0C;EACnD;EAEAA,IAAI,GAAG,0CAA0C;EAIjDC,WAAWA,CAACC,OAAe,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC3B,cAAc,CAAC;MAAEiB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF;AAAClB,OAAA,CAAA6C,oCAAA,GAAAA,oCAAA"}
|
@@ -27,3 +27,9 @@ return integrityKeyTag;
|
|
27
27
|
```
|
28
28
|
|
29
29
|
The returned `integrityKeyTag` is supposed to be stored and used to verify the integrity of the device in the future when using an `IntegrityContext` object. It must be regenerated if another wallet instance is created.
|
30
|
+
|
31
|
+
## Mapped results
|
32
|
+
|
33
|
+
### 409 Conflict (WalletInstanceCreationIntegrityError)
|
34
|
+
|
35
|
+
A `409 Conflict` response is returned by the wallet provider when an integrity check fails.
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.createWalletInstance = createWalletInstance;
|
7
7
|
var _client = require("../client");
|
8
|
+
var _errors = require("../utils/errors");
|
8
9
|
async function createWalletInstance(context) {
|
9
10
|
const {
|
10
11
|
integrityContext
|
@@ -23,7 +24,16 @@ async function createWalletInstance(context) {
|
|
23
24
|
key_attestation: keyAttestation,
|
24
25
|
hardware_key_tag: hardwareKeyTag
|
25
26
|
}
|
26
|
-
});
|
27
|
+
}).catch(handleCreateWalletInstanceError);
|
27
28
|
return hardwareKeyTag;
|
28
29
|
}
|
30
|
+
const handleCreateWalletInstanceError = e => {
|
31
|
+
if (!(e instanceof _errors.WalletProviderResponseError)) {
|
32
|
+
throw e;
|
33
|
+
}
|
34
|
+
if (e.statusCode === 409) {
|
35
|
+
throw new _errors.WalletInstanceCreationIntegrityError("Unable to get an attestation for a Wallet Instance that failed the integrity check", e.claim, e.reason);
|
36
|
+
}
|
37
|
+
throw new _errors.WalletInstanceCreationError(`Unable to obtain wallet instance attestation [response status code: ${e.statusCode}]`, e.claim, e.reason);
|
38
|
+
};
|
29
39
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_client","require","createWalletInstance","context","integrityContext","api","getWalletProviderClient","challenge","get","then","response","nonce","keyAttestation","getAttestation","hardwareKeyTag","getHardwareKeyTag","post","body","key_attestation","hardware_key_tag"],"sourceRoot":"../../../src","sources":["wallet-instance/index.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;
|
1
|
+
{"version":3,"names":["_client","require","_errors","createWalletInstance","context","integrityContext","api","getWalletProviderClient","challenge","get","then","response","nonce","keyAttestation","getAttestation","hardwareKeyTag","getHardwareKeyTag","post","body","key_attestation","hardware_key_tag","catch","handleCreateWalletInstanceError","e","WalletProviderResponseError","statusCode","WalletInstanceCreationIntegrityError","claim","reason","WalletInstanceCreationError"],"sourceRoot":"../../../src","sources":["wallet-instance/index.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAMO,eAAeE,oBAAoBA,CAACC,OAI1C,EAAE;EACD,MAAM;IAAEC;EAAiB,CAAC,GAAGD,OAAO;EAEpC,MAAME,GAAG,GAAG,IAAAC,+BAAuB,EAACH,OAAO,CAAC;;EAE5C;EACA,MAAMI,SAAS,GAAG,MAAMF,GAAG,CAACG,GAAG,CAAC,QAAQ,CAAC,CAACC,IAAI,CAAEC,QAAQ,IAAKA,QAAQ,CAACC,KAAK,CAAC;EAE5E,MAAMC,cAAc,GAAG,MAAMR,gBAAgB,CAACS,cAAc,CAACN,SAAS,CAAC;EACvE,MAAMO,cAAc,GAAGV,gBAAgB,CAACW,iBAAiB,CAAC,CAAC;;EAE3D;EACA,MAAMV,GAAG,CACNW,IAAI,CAAC,mBAAmB,EAAE;IACzBC,IAAI,EAAE;MACJV,SAAS;MACTW,eAAe,EAAEN,cAAc;MAC/BO,gBAAgB,EAAEL;IACpB;EACF,CAAC,CAAC,CACDM,KAAK,CAACC,+BAA+B,CAAC;EAEzC,OAAOP,cAAc;AACvB;AAEA,MAAMO,+BAA+B,GAAIC,CAAU,IAAK;EACtD,IAAI,EAAEA,CAAC,YAAYC,mCAA2B,CAAC,EAAE;IAC/C,MAAMD,CAAC;EACT;EAEA,IAAIA,CAAC,CAACE,UAAU,KAAK,GAAG,EAAE;IACxB,MAAM,IAAIC,4CAAoC,CAC5C,oFAAoF,EACpFH,CAAC,CAACI,KAAK,EACPJ,CAAC,CAACK,MACJ,CAAC;EACH;EAEA,MAAM,IAAIC,mCAA2B,CAClC,uEAAsEN,CAAC,CAACE,UAAW,GAAE,EACtFF,CAAC,CAACI,KAAK,EACPJ,CAAC,CAACK,MACJ,CAAC;AACH,CAAC"}
|
@@ -33,3 +33,9 @@ return issuedAttestation;
|
|
33
33
|
```
|
34
34
|
|
35
35
|
The returned `issuedAttestation` is supposed to be stored and used for any future operation that requires a Wallet Instance Attestation. The wallet attestation has a limited validity and must be regenerated when it expires.
|
36
|
+
|
37
|
+
## Mapped results
|
38
|
+
|
39
|
+
### 409 Conflict (WalletInstanceIntegrityFailedError)
|
40
|
+
|
41
|
+
A `409 Conflict` response is returned by the wallet provider when an integrity check fails.
|
@@ -100,6 +100,9 @@ const handleAttestationCreationError = e => {
|
|
100
100
|
if (e.statusCode === 404) {
|
101
101
|
throw new _errors.WalletInstanceNotFoundError("Unable to get an attestation for a Wallet Instance that does not exist", e.claim, e.reason);
|
102
102
|
}
|
103
|
+
if (e.statusCode === 409) {
|
104
|
+
throw new _errors.WalletInstanceIntegrityFailedError("Unable to get an attestation for a Wallet Instance that failed the integrity check", e.claim, e.reason);
|
105
|
+
}
|
103
106
|
throw new _errors.WalletInstanceAttestationIssuingError(`Unable to obtain wallet instance attestation [response status code: ${e.statusCode}]`, e.claim, e.reason);
|
104
107
|
};
|
105
108
|
//# sourceMappingURL=issuing.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_ioReactNativeJwt","require","_jwk","_client","_errors","_types","getAttestationRequest","challenge","wiaCryptoContext","integrityContext","walletProviderBaseUrl","jwk","getPublicKey","parsedJwk","JWK","parse","keyThumbprint","thumbprint","publicKey","kid","clientData","jwk_thumbprint","hardwareKeyTag","getHardwareKeyTag","signature","authenticatorData","getHardwareSignatureWithAuthData","JSON","stringify","SignJWT","setPayload","iss","sub","hardware_signature","integrity_assertion","hardware_key_tag","cnf","fixBase64EncodingOnKey","setProtectedHeader","typ","setIssuedAt","setExpirationTime","sign","getAttestation","_ref","appFetch","fetch","api","getWalletProviderClient","get","then","response","nonce","signedAttestationRequest","tokenResponse","post","body","grant_type","assertion","result","TokenResponse","catch","handleAttestationCreationError","wallet_attestation","exports","e","WalletProviderResponseError","statusCode","WalletInstanceRevokedError","claim","reason","WalletInstanceNotFoundError","WalletInstanceAttestationIssuingError"],"sourceRoot":"../../../src","sources":["wallet-instance-attestation/issuing.ts"],"mappings":";;;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;
|
1
|
+
{"version":3,"names":["_ioReactNativeJwt","require","_jwk","_client","_errors","_types","getAttestationRequest","challenge","wiaCryptoContext","integrityContext","walletProviderBaseUrl","jwk","getPublicKey","parsedJwk","JWK","parse","keyThumbprint","thumbprint","publicKey","kid","clientData","jwk_thumbprint","hardwareKeyTag","getHardwareKeyTag","signature","authenticatorData","getHardwareSignatureWithAuthData","JSON","stringify","SignJWT","setPayload","iss","sub","hardware_signature","integrity_assertion","hardware_key_tag","cnf","fixBase64EncodingOnKey","setProtectedHeader","typ","setIssuedAt","setExpirationTime","sign","getAttestation","_ref","appFetch","fetch","api","getWalletProviderClient","get","then","response","nonce","signedAttestationRequest","tokenResponse","post","body","grant_type","assertion","result","TokenResponse","catch","handleAttestationCreationError","wallet_attestation","exports","e","WalletProviderResponseError","statusCode","WalletInstanceRevokedError","claim","reason","WalletInstanceNotFoundError","WalletInstanceIntegrityFailedError","WalletInstanceAttestationIssuingError"],"sourceRoot":"../../../src","sources":["wallet-instance-attestation/issuing.ts"],"mappings":";;;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAOA,IAAAI,MAAA,GAAAJ,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,eAAeK,qBAAqBA,CACzCC,SAAiB,EACjBC,gBAA+B,EAC/BC,gBAAkC,EAClCC,qBAA6B,EACZ;EACjB,MAAMC,GAAG,GAAG,MAAMH,gBAAgB,CAACI,YAAY,CAAC,CAAC;EACjD,MAAMC,SAAS,GAAGC,QAAG,CAACC,KAAK,CAACJ,GAAG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AW,GAAE,EACtFF,CAAC,CAACI,KAAK,EACPJ,CAAC,CAACK,MACJ,CAAC;AACH,CAAC"}
|
@@ -21,8 +21,6 @@ export const ProblemDetail = z.object({
|
|
21
21
|
detail: z.string().optional(),
|
22
22
|
instance: z.string().optional()
|
23
23
|
});
|
24
|
-
export const FiscalCode = z.string();
|
25
|
-
export const Id = z.string();
|
26
24
|
export const get_GetNonce = {
|
27
25
|
method: z.literal("GET"),
|
28
26
|
path: z.literal("/nonce"),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["z","NonceDetailView","object","nonce","string","WalletAttestationView","wallet_attestation","CreateWalletInstanceBody","challenge","key_attestation","hardware_key_tag","CreateWalletAttestationBody","grant_type","literal","assertion","ProblemDetail","type","optional","title","status","number","detail","instance","
|
1
|
+
{"version":3,"names":["z","NonceDetailView","object","nonce","string","WalletAttestationView","wallet_attestation","CreateWalletInstanceBody","challenge","key_attestation","hardware_key_tag","CreateWalletAttestationBody","grant_type","literal","assertion","ProblemDetail","type","optional","title","status","number","detail","instance","get_GetNonce","method","path","parameters","never","response","post_CreateWalletInstance","body","unknown","post_CreateWalletAttestation","EndpointByMethod","get","post","ApiClient","baseUrl","constructor","fetcher","setBaseUrl","arguments","length","undefined","createApiClient"],"sourceRoot":"../../../../src","sources":["client/generated/wallet-provider.ts"],"mappings":"AAAA,OAAOA,CAAC,MAAM,KAAK;AAGnB,OAAO,MAAMC,eAAe,GAAGD,CAAC,CAACE,MAAM,CAAC;EACtCC,KAAK,EAAEH,CAAC,CAACI,MAAM,CAAC;AAClB,CAAC,CAAC;AAGF,OAAO,MAAMC,qBAAqB,GAAGL,CAAC,CAACE,MAAM,CAAC;EAC5CI,kBAAkB,EAAEN,CAAC,CAACI,MAAM,CAAC;AAC/B,CAAC,CAAC;AAGF,OAAO,MAAMG,wBAAwB,GAAGP,CAAC,CAACE,MAAM,CAAC;EAC/CM,SAAS,EAAER,CAAC,CAACI,MAAM,CAAC,CAAC;EACrBK,eAAe,E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AO,IAAID,SAAS,CAACG,OAAO,CAAC,CAACC,UAAU,CAACH,OAAO,IAAI,EAAE,CAAC;AACzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA"}
|
@@ -303,6 +303,72 @@ export class WalletInstanceNotFoundError extends IoWalletError {
|
|
303
303
|
}
|
304
304
|
}
|
305
305
|
|
306
|
+
/**
|
307
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
308
|
+
*/
|
309
|
+
export class WalletInstanceIntegrityFailedError extends IoWalletError {
|
310
|
+
static get code() {
|
311
|
+
return "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED";
|
312
|
+
}
|
313
|
+
code = "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED";
|
314
|
+
constructor(message, claim) {
|
315
|
+
let reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "unspecified";
|
316
|
+
super(serializeAttrs({
|
317
|
+
message,
|
318
|
+
claim,
|
319
|
+
reason
|
320
|
+
}));
|
321
|
+
this.reason = reason;
|
322
|
+
this.claim = claim;
|
323
|
+
}
|
324
|
+
}
|
325
|
+
|
326
|
+
/**
|
327
|
+
* An error subclass thrown when an error occurs during the wallet instance creation process.
|
328
|
+
*/
|
329
|
+
export class WalletInstanceCreationError extends IoWalletError {
|
330
|
+
static get code() {
|
331
|
+
return "ERR_IO_WALLET_INSTANCE_CREATION_ERROR";
|
332
|
+
}
|
333
|
+
code = "ERR_IO_WALLET_INSTANCE_CREATION_ERROR";
|
334
|
+
|
335
|
+
/** The Claim for which the validation failed. */
|
336
|
+
|
337
|
+
/** Reason code for the validation failure. */
|
338
|
+
|
339
|
+
constructor(message) {
|
340
|
+
let claim = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "unspecified";
|
341
|
+
let reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "unspecified";
|
342
|
+
super(serializeAttrs({
|
343
|
+
message,
|
344
|
+
claim,
|
345
|
+
reason
|
346
|
+
}));
|
347
|
+
this.claim = claim;
|
348
|
+
this.reason = reason;
|
349
|
+
}
|
350
|
+
}
|
351
|
+
|
352
|
+
/**
|
353
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
354
|
+
*/
|
355
|
+
export class WalletInstanceCreationIntegrityError extends IoWalletError {
|
356
|
+
static get code() {
|
357
|
+
return "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR";
|
358
|
+
}
|
359
|
+
code = "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR";
|
360
|
+
constructor(message, claim) {
|
361
|
+
let reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "unspecified";
|
362
|
+
super(serializeAttrs({
|
363
|
+
message,
|
364
|
+
claim,
|
365
|
+
reason
|
366
|
+
}));
|
367
|
+
this.reason = reason;
|
368
|
+
this.claim = claim;
|
369
|
+
}
|
370
|
+
}
|
371
|
+
|
306
372
|
/**
|
307
373
|
* An error subclass thrown when an error occurs during the authorization process.
|
308
374
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["serializeAttrs","attrs","Object","entries","map","_ref","k","v","Array","isArray","join","_","IoWalletError","Error","code","constructor","message","_Error$captureStackTr","name","captureStackTrace","call","UnexpectedStatusCodeError","statusCode","toString","ValidationFailed","claim","arguments","length","undefined","reason","WalletInstanceAttestationIssuingError","AuthRequestDecodeError","PidIssuingError","ClaimsNotFoundBetweenDislosures","claims","c","ClaimsNotFoundInToken","NoSuitableKeysFoundInEntityConfiguration","scenario","PidMetadataError","WalletProviderResponseError","WalletInstanceRevokedError","WalletInstanceNotFoundError","AuthorizationError","AuthorizationIdpError","error","errorDescription","OperationAbortedError","operation","StatusAttestationInvalid","StatusAttestationError","CredentialNotEntitledError","CredentialRequestError","CredentialIssuingNotSynchronousError"],"sourceRoot":"../../../src","sources":["utils/errors.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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G,+BAA+B;EAItCC,WAAWA,CAACC,OAAe,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC1B,cAAc,CAAC;MAAEgB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA,OAAO,MAAMuB,sBAAsB,SAASxC,aAAa,CAAC;EACxD,WAAWE,IAAIA,CAAA,EAA+B;IAC5C,OAAO,0BAA0B;EACnC;EAEAA,IAAI,GAAG,0BAA0B;EAIjCC,WAAWA,CAACC,OAAe,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC1B,cAAc,CAAC;MAAEgB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA,OAAO,MAAMwB,oCAAoC,SAASzC,aAAa,CAAC;EACtE,WAAWE,IAAIA,CAAA,EAA+C;IAC5D,OAAO,0CAA0C;EACnD;EAEAA,IAAI,GAAG,0CAA0C;EAIjDC,WAAWA,CAACC,OAAe,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC1B,cAAc,CAAC;MAAEgB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF"}
|
1
|
+
{"version":3,"names":["serializeAttrs","attrs","Object","entries","map","_ref","k","v","Array","isArray","join","_","IoWalletError","Error","code","constructor","message","_Error$captureStackTr","name","captureStackTrace","call","UnexpectedStatusCodeError","statusCode","toString","ValidationFailed","claim","arguments","length","undefined","reason","WalletInstanceAttestationIssuingError","AuthRequestDecodeError","PidIssuingError","ClaimsNotFoundBetweenDislosures","claims","c","ClaimsNotFoundInToken","NoSuitableKeysFoundInEntityConfiguration","scenario","PidMetadataError","WalletProviderResponseError","WalletInstanceRevokedError","WalletInstanceNotFoundError","WalletInstanceIntegrityFailedError","WalletInstanceCreationError","WalletInstanceCreationIntegrityError","AuthorizationError","AuthorizationIdpError","error","errorDescription","OperationAbortedError","operation","StatusAttestationInvalid","StatusAttestationError","CredentialNotEntitledError","CredentialRequestError","CredentialIssuingNotSynchronousError"],"sourceRoot":"../../../src","sources":["utils/errors.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,cAAc,GACzBC,KAAsC,IAEtCC,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,CAClBG,GAAG,CAACC,IAAA;EAAA,IAAC,CAACC,CAAC,EAAEC,CAAC,CAAC,GAAAF,IAAA;EAAA,OAAK,CAACC,CAAC,EAAEE,KAAK,CAACC,OAAO,CAACF,CAAC,CAAC,GAAI,IAAGA,CAAC,CAACG,IAAI,CAAC,IAAI,CAAE,GAAE,GAAGH,CAAC,CAAC;AAAA,EAAC,CAChEH,GAAG,CAAEO,CAAC,IAAKA,CAAC,CAACD,IAAI,CAAC,GAAG,CAAC,CAAC,CACvBA,IAAI,CAAC,GAAG,CAAC;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAME,aAAa,SAASC,KAAK,CAAC;EACvC;EACA,WAAWC,IAAIA,CAAA,EAAW;IACxB,OAAO,uBAAuB;EAChC;;EAEA;EACAA,IAAI,GAAW,uBAAuB;EAEtCC,WAAWA,CAACC,OAAgB,EAAE;IAAA,IAAAC,qBAAA;IAC5B,KAAK,CAACD,OAAO,CAAC;IACd,IAAI,CAACE,IAAI,GAAG,IAAI,CAACH,W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,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC1B,cAAc,CAAC;MAAEgB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF;;AAEA;AACA;AACA;AACA,OAAO,MAAM2B,oCAAoC,SAAS5C,aAAa,CAAC;EACtE,WAAWE,IAAIA,CAAA,EAA+C;IAC5D,OAAO,0CAA0C;EACnD;EAEAA,IAAI,GAAG,0CAA0C;EAIjDC,WAAWA,CAACC,OAAe,EAAkC;IAAA,IAAhCa,MAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,aAAa;IACzD,KAAK,CAAC1B,cAAc,CAAC;MAAEgB,OAAO;MAAEa;IAAO,CAAC,CAAC,CAAC;IAC1C,IAAI,CAACA,MAAM,GAAGA,MAAM;EACtB;AACF"}
|
@@ -27,3 +27,9 @@ return integrityKeyTag;
|
|
27
27
|
```
|
28
28
|
|
29
29
|
The returned `integrityKeyTag` is supposed to be stored and used to verify the integrity of the device in the future when using an `IntegrityContext` object. It must be regenerated if another wallet instance is created.
|
30
|
+
|
31
|
+
## Mapped results
|
32
|
+
|
33
|
+
### 409 Conflict (WalletInstanceCreationIntegrityError)
|
34
|
+
|
35
|
+
A `409 Conflict` response is returned by the wallet provider when an integrity check fails.
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { getWalletProviderClient } from "../client";
|
2
|
+
import { WalletInstanceCreationError, WalletInstanceCreationIntegrityError, WalletProviderResponseError } from "../utils/errors";
|
2
3
|
export async function createWalletInstance(context) {
|
3
4
|
const {
|
4
5
|
integrityContext
|
@@ -17,7 +18,16 @@ export async function createWalletInstance(context) {
|
|
17
18
|
key_attestation: keyAttestation,
|
18
19
|
hardware_key_tag: hardwareKeyTag
|
19
20
|
}
|
20
|
-
});
|
21
|
+
}).catch(handleCreateWalletInstanceError);
|
21
22
|
return hardwareKeyTag;
|
22
23
|
}
|
24
|
+
const handleCreateWalletInstanceError = e => {
|
25
|
+
if (!(e instanceof WalletProviderResponseError)) {
|
26
|
+
throw e;
|
27
|
+
}
|
28
|
+
if (e.statusCode === 409) {
|
29
|
+
throw new WalletInstanceCreationIntegrityError("Unable to get an attestation for a Wallet Instance that failed the integrity check", e.claim, e.reason);
|
30
|
+
}
|
31
|
+
throw new WalletInstanceCreationError(`Unable to obtain wallet instance attestation [response status code: ${e.statusCode}]`, e.claim, e.reason);
|
32
|
+
};
|
23
33
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["getWalletProviderClient","createWalletInstance","context","integrityContext","api","challenge","get","then","response","nonce","keyAttestation","getAttestation","hardwareKeyTag","getHardwareKeyTag","post","body","key_attestation","hardware_key_tag"],"sourceRoot":"../../../src","sources":["wallet-instance/index.ts"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ,WAAW;
|
1
|
+
{"version":3,"names":["getWalletProviderClient","WalletInstanceCreationError","WalletInstanceCreationIntegrityError","WalletProviderResponseError","createWalletInstance","context","integrityContext","api","challenge","get","then","response","nonce","keyAttestation","getAttestation","hardwareKeyTag","getHardwareKeyTag","post","body","key_attestation","hardware_key_tag","catch","handleCreateWalletInstanceError","e","statusCode","claim","reason"],"sourceRoot":"../../../src","sources":["wallet-instance/index.ts"],"mappings":"AAAA,SAASA,uBAAuB,QAAQ,WAAW;AAEnD,SACEC,2BAA2B,EAC3BC,oCAAoC,EACpCC,2BAA2B,QACtB,iBAAiB;AAExB,OAAO,eAAeC,oBAAoBA,CAACC,OAI1C,EAAE;EACD,MAAM;IAAEC;EAAiB,CAAC,GAAGD,OAAO;EAEpC,MAAME,GAAG,GAAGP,uBAAuB,CAACK,OAAO,CAAC;;EAE5C;EACA,MAAMG,SAAS,GAAG,MAAMD,GAAG,CAACE,GAAG,CAAC,QAAQ,CAAC,CAACC,IAAI,CAAEC,QAAQ,IAAKA,QAAQ,CAACC,KAAK,CAAC;EAE5E,MAAMC,cAAc,GAAG,MAAMP,gBAAgB,CAACQ,cAAc,CAACN,SAAS,CAAC;EACvE,MAAMO,cAAc,GAAGT,gBAAgB,CAACU,iBAAiB,CAAC,CAAC;;EAE3D;EACA,MAAMT,GAAG,CACNU,IAAI,CAAC,mBAAmB,EAAE;IACzBC,IAAI,EAAE;MACJV,SAAS;MACTW,eAAe,EAAEN,cAAc;MAC/BO,gBAAgB,EAAEL;IACpB;EACF,CAAC,CAAC,CACDM,KAAK,CAACC,+BAA+B,CAAC;EAEzC,OAAOP,cAAc;AACvB;AAEA,MAAMO,+BAA+B,GAAIC,CAAU,IAAK;EACtD,IAAI,EAAEA,CAAC,YAAYpB,2BAA2B,CAAC,EAAE;IAC/C,MAAMoB,CAAC;EACT;EAEA,IAAIA,CAAC,CAACC,UAAU,KAAK,GAAG,EAAE;IACxB,MAAM,IAAItB,oCAAoC,CAC5C,oFAAoF,EACpFqB,CAAC,CAACE,KAAK,EACPF,CAAC,CAACG,MACJ,CAAC;EACH;EAEA,MAAM,IAAIzB,2BAA2B,CAClC,uEAAsEsB,CAAC,CAACC,UAAW,GAAE,EACtFD,CAAC,CAACE,KAAK,EACPF,CAAC,CAACG,MACJ,CAAC;AACH,CAAC"}
|
@@ -33,3 +33,9 @@ return issuedAttestation;
|
|
33
33
|
```
|
34
34
|
|
35
35
|
The returned `issuedAttestation` is supposed to be stored and used for any future operation that requires a Wallet Instance Attestation. The wallet attestation has a limited validity and must be regenerated when it expires.
|
36
|
+
|
37
|
+
## Mapped results
|
38
|
+
|
39
|
+
### 409 Conflict (WalletInstanceIntegrityFailedError)
|
40
|
+
|
41
|
+
A `409 Conflict` response is returned by the wallet provider when an integrity check fails.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SignJWT, thumbprint } from "@pagopa/io-react-native-jwt";
|
2
2
|
import { JWK, fixBase64EncodingOnKey } from "../utils/jwk";
|
3
3
|
import { getWalletProviderClient } from "../client";
|
4
|
-
import { WalletProviderResponseError, WalletInstanceRevokedError, WalletInstanceNotFoundError, WalletInstanceAttestationIssuingError } from "../utils/errors";
|
4
|
+
import { WalletProviderResponseError, WalletInstanceRevokedError, WalletInstanceNotFoundError, WalletInstanceAttestationIssuingError, WalletInstanceIntegrityFailedError } from "../utils/errors";
|
5
5
|
import { TokenResponse } from "./types";
|
6
6
|
|
7
7
|
/**
|
@@ -93,6 +93,9 @@ const handleAttestationCreationError = e => {
|
|
93
93
|
if (e.statusCode === 404) {
|
94
94
|
throw new WalletInstanceNotFoundError("Unable to get an attestation for a Wallet Instance that does not exist", e.claim, e.reason);
|
95
95
|
}
|
96
|
+
if (e.statusCode === 409) {
|
97
|
+
throw new WalletInstanceIntegrityFailedError("Unable to get an attestation for a Wallet Instance that failed the integrity check", e.claim, e.reason);
|
98
|
+
}
|
96
99
|
throw new WalletInstanceAttestationIssuingError(`Unable to obtain wallet instance attestation [response status code: ${e.statusCode}]`, e.claim, e.reason);
|
97
100
|
};
|
98
101
|
//# sourceMappingURL=issuing.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["SignJWT","thumbprint","JWK","fixBase64EncodingOnKey","getWalletProviderClient","WalletProviderResponseError","WalletInstanceRevokedError","WalletInstanceNotFoundError","WalletInstanceAttestationIssuingError","TokenResponse","getAttestationRequest","challenge","wiaCryptoContext","integrityContext","walletProviderBaseUrl","jwk","getPublicKey","parsedJwk","parse","keyThumbprint","publicKey","kid","clientData","jwk_thumbprint","hardwareKeyTag","getHardwareKeyTag","signature","authenticatorData","getHardwareSignatureWithAuthData","JSON","stringify","setPayload","iss","sub","hardware_signature","integrity_assertion","hardware_key_tag","cnf","setProtectedHeader","typ","setIssuedAt","setExpirationTime","sign","getAttestation","_ref","appFetch","fetch","api","get","then","response","nonce","signedAttestationRequest","tokenResponse","post","body","grant_type","assertion","result","catch","handleAttestationCreationError","wallet_attestation","e","statusCode","claim","reason"],"sourceRoot":"../../../src","sources":["wallet-instance-attestation/issuing.ts"],"mappings":"AACA,SAASA,OAAO,EAAEC,UAAU,QAAQ,6BAA6B;AACjE,SAASC,GAAG,EAAEC,sBAAsB,QAAQ,cAAc;AAC1D,SAASC,uBAAuB,QAAQ,WAAW;AAEnD,SACEC,2BAA2B,EAC3BC,0BAA0B,EAC1BC,2BAA2B,EAC3BC,qCAAqC,
|
1
|
+
{"version":3,"names":["SignJWT","thumbprint","JWK","fixBase64EncodingOnKey","getWalletProviderClient","WalletProviderResponseError","WalletInstanceRevokedError","WalletInstanceNotFoundError","WalletInstanceAttestationIssuingError","WalletInstanceIntegrityFailedError","TokenResponse","getAttestationRequest","challenge","wiaCryptoContext","integrityContext","walletProviderBaseUrl","jwk","getPublicKey","parsedJwk","parse","keyThumbprint","publicKey","kid","clientData","jwk_thumbprint","hardwareKeyTag","getHardwareKeyTag","signature","authenticatorData","getHardwareSignatureWithAuthData","JSON","stringify","setPayload","iss","sub","hardware_signature","integrity_assertion","hardware_key_tag","cnf","setProtectedHeader","typ","setIssuedAt","setExpirationTime","sign","getAttestation","_ref","appFetch","fetch","api","get","then","response","nonce","signedAttestationRequest","tokenResponse","post","body","grant_type","assertion","result","catch","handleAttestationCreationError","wallet_attestation","e","statusCode","claim","reason"],"sourceRoot":"../../../src","sources":["wallet-instance-attestation/issuing.ts"],"mappings":"AACA,SAASA,OAAO,EAAEC,UAAU,QAAQ,6BAA6B;AACjE,SAASC,GAAG,EAAEC,sBAAsB,QAAQ,cAAc;AAC1D,SAASC,uBAAuB,QAAQ,WAAW;AAEnD,SACEC,2BAA2B,EAC3BC,0BAA0B,EAC1BC,2BAA2B,EAC3BC,qCAAqC,EACrCC,kCAAkC,QAC7B,iBAAiB;AACxB,SAASC,aAAa,QAAQ,SAAS;;AAEvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,eAAeC,qBAAqBA,CACzCC,SAAiB,EACjBC,gBAA+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AAC,CAACE,KAAK,EACPF,CAAC,CAACG,MACJ,CAAC;EACH;EAEA,MAAM,IAAI1D,qCAAqC,CAC5C,uEAAsEuD,CAAC,CAACC,UAAW,GAAE,EACtFD,CAAC,CAACE,KAAK,EACPF,CAAC,CAACG,MACJ,CAAC;AACH,CAAC"}
|
@@ -60,10 +60,6 @@ export declare const ProblemDetail: z.ZodObject<{
|
|
60
60
|
detail?: string | undefined;
|
61
61
|
instance?: string | undefined;
|
62
62
|
}>;
|
63
|
-
export type FiscalCode = z.infer<typeof FiscalCode>;
|
64
|
-
export declare const FiscalCode: z.ZodString;
|
65
|
-
export type Id = z.infer<typeof Id>;
|
66
|
-
export declare const Id: z.ZodString;
|
67
63
|
export type get_GetNonce = typeof get_GetNonce;
|
68
64
|
export declare const get_GetNonce: {
|
69
65
|
method: z.ZodLiteral<"GET">;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"wallet-provider.d.ts","sourceRoot":"","sources":["../../../../src/client/generated/wallet-provider.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC1E,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAChF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACtF,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,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CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,GAC5D,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;CAI3C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,aAEjE;;AAED;;;;;;;;EAQE"}
|
@@ -159,6 +159,38 @@ export declare class WalletInstanceNotFoundError extends IoWalletError {
|
|
159
159
|
reason: string;
|
160
160
|
constructor(message: string, claim: string, reason?: string);
|
161
161
|
}
|
162
|
+
/**
|
163
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
164
|
+
*/
|
165
|
+
export declare class WalletInstanceIntegrityFailedError extends IoWalletError {
|
166
|
+
static get code(): "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED";
|
167
|
+
code: string;
|
168
|
+
reason: string;
|
169
|
+
claim: string;
|
170
|
+
constructor(message: string, claim: string, reason?: string);
|
171
|
+
}
|
172
|
+
/**
|
173
|
+
* An error subclass thrown when an error occurs during the wallet instance creation process.
|
174
|
+
*/
|
175
|
+
export declare class WalletInstanceCreationError extends IoWalletError {
|
176
|
+
static get code(): "ERR_IO_WALLET_INSTANCE_CREATION_ERROR";
|
177
|
+
code: string;
|
178
|
+
/** The Claim for which the validation failed. */
|
179
|
+
claim: string;
|
180
|
+
/** Reason code for the validation failure. */
|
181
|
+
reason: string;
|
182
|
+
constructor(message: string, claim?: string, reason?: string);
|
183
|
+
}
|
184
|
+
/**
|
185
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
186
|
+
*/
|
187
|
+
export declare class WalletInstanceCreationIntegrityError extends IoWalletError {
|
188
|
+
static get code(): "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR";
|
189
|
+
code: string;
|
190
|
+
reason: string;
|
191
|
+
claim: string;
|
192
|
+
constructor(message: string, claim: string, reason?: string);
|
193
|
+
}
|
162
194
|
/**
|
163
195
|
* An error subclass thrown when an error occurs during the authorization process.
|
164
196
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/utils/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,UAClB,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAIW,CAAC;AAEf;;;;;;;;;;GAUG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,6DAA6D;IAC7D,MAAM,KAAK,IAAI,IAAI,MAAM,CAExB;IAED,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAA2B;gBAE3B,OAAO,CAAC,EAAE,MAAM;CAM7B;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,aAAa;IAC1D,MAAM,KAAK,IAAI,IAAI,4BAA4B,CAE9C;IAED,IAAI,SAAgC;IAEpC,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;gBAEP,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAShD;AACD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,aAAa;IACjD,MAAM,KAAK,IAAI,IAAI,iCAAiC,CAEnD;IAED,IAAI,SAAqC;IAEzC,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IAEd,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;gBAGb,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,MAAsB,EAC7B,MAAM,GAAE,MAAsB;CAMjC;AAED;;;GAGG;AACH,qBAAa,qCAAsC,SAAQ,aAAa;IACtE,MAAM,KAAK,IAAI,IAAI,mDAAmD,CAErE;IAED,IAAI,SAAuD;IAE3D,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IAEd,8CAA8C;IAC9C,MAAM,EAAE,MAAM,CAAC;gBAGb,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,MAAsB,EAC7B,MAAM,GAAE,MAAsB;CA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C;IAEtC,MAAM,EAAE,MAAM,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB;CAI5D;AAED;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,aAAa;IAC3D,MAAM,KAAK,IAAI,IAAI,+BAA+B,CAEjD;IAED,IAAI,SAAmC;IAEvC,MAAM,EAAE,MAAM,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB;CAI5D;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,aAAa;IACvD,MAAM,KAAK,IAAI,IAAI,0BAA0B,CAE5C;IAED,IAAI,SAA8B;IAElC,MAAM,EAAE,MAAM,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB;CAI5D;AAED;;GAEG;AACH,qBAAa,oCAAqC,SAAQ,aAAa;IACrE,MAAM,KAAK,IAAI,IAAI,0CAA0C,CAE5D;IAED,IAAI,SAA8C;IAElD,MAAM,EAAE,MAAM,CAAC;gBAEH,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAsB;CAI5D"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet-instance/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet-instance/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAO3C,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAClD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACjC,mBAuBA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"issuing.d.ts","sourceRoot":"","sources":["../../../src/wallet-instance-attestation/issuing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"issuing.d.ts","sourceRoot":"","sources":["../../../src/wallet-instance-attestation/issuing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAIjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAU3C;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,aAAa,EAC/B,gBAAgB,EAAE,gBAAgB,EAClC,qBAAqB,EAAE,MAAM,GAC5B,OAAO,CAAC,MAAM,CAAC,CAoCjB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc;sBAMP,aAAa;sBACb,gBAAgB;2BACX,MAAM;;;;;MAE3B,QAAQ,MAAM,CA6BjB,CAAC"}
|
package/package.json
CHANGED
@@ -32,12 +32,6 @@ export const ProblemDetail = z.object({
|
|
32
32
|
instance: z.string().optional(),
|
33
33
|
});
|
34
34
|
|
35
|
-
export type FiscalCode = z.infer<typeof FiscalCode>;
|
36
|
-
export const FiscalCode = z.string();
|
37
|
-
|
38
|
-
export type Id = z.infer<typeof Id>;
|
39
|
-
export const Id = z.string();
|
40
|
-
|
41
35
|
export type get_GetNonce = typeof get_GetNonce;
|
42
36
|
export const get_GetNonce = {
|
43
37
|
method: z.literal("GET"),
|
package/src/utils/errors.ts
CHANGED
@@ -334,6 +334,75 @@ export class WalletInstanceNotFoundError extends IoWalletError {
|
|
334
334
|
}
|
335
335
|
}
|
336
336
|
|
337
|
+
/**
|
338
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
339
|
+
*/
|
340
|
+
export class WalletInstanceIntegrityFailedError extends IoWalletError {
|
341
|
+
static get code(): "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED" {
|
342
|
+
return "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED";
|
343
|
+
}
|
344
|
+
|
345
|
+
code = "ERR_IO_WALLET_INSTANCE_INTEGRITY_FAILED";
|
346
|
+
|
347
|
+
reason: string;
|
348
|
+
|
349
|
+
claim: string;
|
350
|
+
|
351
|
+
constructor(message: string, claim: string, reason: string = "unspecified") {
|
352
|
+
super(serializeAttrs({ message, claim, reason }));
|
353
|
+
this.reason = reason;
|
354
|
+
this.claim = claim;
|
355
|
+
}
|
356
|
+
}
|
357
|
+
|
358
|
+
/**
|
359
|
+
* An error subclass thrown when an error occurs during the wallet instance creation process.
|
360
|
+
*/
|
361
|
+
export class WalletInstanceCreationError extends IoWalletError {
|
362
|
+
static get code(): "ERR_IO_WALLET_INSTANCE_CREATION_ERROR" {
|
363
|
+
return "ERR_IO_WALLET_INSTANCE_CREATION_ERROR";
|
364
|
+
}
|
365
|
+
|
366
|
+
code = "ERR_IO_WALLET_INSTANCE_CREATION_ERROR";
|
367
|
+
|
368
|
+
/** The Claim for which the validation failed. */
|
369
|
+
claim: string;
|
370
|
+
|
371
|
+
/** Reason code for the validation failure. */
|
372
|
+
reason: string;
|
373
|
+
|
374
|
+
constructor(
|
375
|
+
message: string,
|
376
|
+
claim: string = "unspecified",
|
377
|
+
reason: string = "unspecified"
|
378
|
+
) {
|
379
|
+
super(serializeAttrs({ message, claim, reason }));
|
380
|
+
this.claim = claim;
|
381
|
+
this.reason = reason;
|
382
|
+
}
|
383
|
+
}
|
384
|
+
|
385
|
+
/**
|
386
|
+
* An error subclass thrown when obtaining a wallet instance attestation which fails due to the integrity.
|
387
|
+
*/
|
388
|
+
export class WalletInstanceCreationIntegrityError extends IoWalletError {
|
389
|
+
static get code(): "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR" {
|
390
|
+
return "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR";
|
391
|
+
}
|
392
|
+
|
393
|
+
code = "ERR_IO_WALLET_INSTANCE_CREATION_INTEGRITY_ERROR";
|
394
|
+
|
395
|
+
reason: string;
|
396
|
+
|
397
|
+
claim: string;
|
398
|
+
|
399
|
+
constructor(message: string, claim: string, reason: string = "unspecified") {
|
400
|
+
super(serializeAttrs({ message, claim, reason }));
|
401
|
+
this.reason = reason;
|
402
|
+
this.claim = claim;
|
403
|
+
}
|
404
|
+
}
|
405
|
+
|
337
406
|
/**
|
338
407
|
* An error subclass thrown when an error occurs during the authorization process.
|
339
408
|
*/
|
@@ -27,3 +27,9 @@ return integrityKeyTag;
|
|
27
27
|
```
|
28
28
|
|
29
29
|
The returned `integrityKeyTag` is supposed to be stored and used to verify the integrity of the device in the future when using an `IntegrityContext` object. It must be regenerated if another wallet instance is created.
|
30
|
+
|
31
|
+
## Mapped results
|
32
|
+
|
33
|
+
### 409 Conflict (WalletInstanceCreationIntegrityError)
|
34
|
+
|
35
|
+
A `409 Conflict` response is returned by the wallet provider when an integrity check fails.
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import { getWalletProviderClient } from "../client";
|
2
2
|
import type { IntegrityContext } from "..";
|
3
|
+
import {
|
4
|
+
WalletInstanceCreationError,
|
5
|
+
WalletInstanceCreationIntegrityError,
|
6
|
+
WalletProviderResponseError,
|
7
|
+
} from "../utils/errors";
|
3
8
|
|
4
9
|
export async function createWalletInstance(context: {
|
5
10
|
integrityContext: IntegrityContext;
|
@@ -17,13 +22,35 @@ export async function createWalletInstance(context: {
|
|
17
22
|
const hardwareKeyTag = integrityContext.getHardwareKeyTag();
|
18
23
|
|
19
24
|
//2. Create Wallet Instance
|
20
|
-
await api
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
await api
|
26
|
+
.post("/wallet-instances", {
|
27
|
+
body: {
|
28
|
+
challenge,
|
29
|
+
key_attestation: keyAttestation,
|
30
|
+
hardware_key_tag: hardwareKeyTag,
|
31
|
+
},
|
32
|
+
})
|
33
|
+
.catch(handleCreateWalletInstanceError);
|
27
34
|
|
28
35
|
return hardwareKeyTag;
|
29
36
|
}
|
37
|
+
|
38
|
+
const handleCreateWalletInstanceError = (e: unknown) => {
|
39
|
+
if (!(e instanceof WalletProviderResponseError)) {
|
40
|
+
throw e;
|
41
|
+
}
|
42
|
+
|
43
|
+
if (e.statusCode === 409) {
|
44
|
+
throw new WalletInstanceCreationIntegrityError(
|
45
|
+
"Unable to get an attestation for a Wallet Instance that failed the integrity check",
|
46
|
+
e.claim,
|
47
|
+
e.reason
|
48
|
+
);
|
49
|
+
}
|
50
|
+
|
51
|
+
throw new WalletInstanceCreationError(
|
52
|
+
`Unable to obtain wallet instance attestation [response status code: ${e.statusCode}]`,
|
53
|
+
e.claim,
|
54
|
+
e.reason
|
55
|
+
);
|
56
|
+
};
|
@@ -33,3 +33,9 @@ return issuedAttestation;
|
|
33
33
|
```
|
34
34
|
|
35
35
|
The returned `issuedAttestation` is supposed to be stored and used for any future operation that requires a Wallet Instance Attestation. The wallet attestation has a limited validity and must be regenerated when it expires.
|
36
|
+
|
37
|
+
## Mapped results
|
38
|
+
|
39
|
+
### 409 Conflict (WalletInstanceIntegrityFailedError)
|
40
|
+
|
41
|
+
A `409 Conflict` response is returned by the wallet provider when an integrity check fails.
|
@@ -8,6 +8,7 @@ import {
|
|
8
8
|
WalletInstanceRevokedError,
|
9
9
|
WalletInstanceNotFoundError,
|
10
10
|
WalletInstanceAttestationIssuingError,
|
11
|
+
WalletInstanceIntegrityFailedError,
|
11
12
|
} from "../utils/errors";
|
12
13
|
import { TokenResponse } from "./types";
|
13
14
|
|
@@ -135,6 +136,14 @@ const handleAttestationCreationError = (e: unknown) => {
|
|
135
136
|
);
|
136
137
|
}
|
137
138
|
|
139
|
+
if (e.statusCode === 409) {
|
140
|
+
throw new WalletInstanceIntegrityFailedError(
|
141
|
+
"Unable to get an attestation for a Wallet Instance that failed the integrity check",
|
142
|
+
e.claim,
|
143
|
+
e.reason
|
144
|
+
);
|
145
|
+
}
|
146
|
+
|
138
147
|
throw new WalletInstanceAttestationIssuingError(
|
139
148
|
`Unable to obtain wallet instance attestation [response status code: ${e.statusCode}]`,
|
140
149
|
e.claim,
|