@pagopa/io-react-native-wallet 0.28.0 → 0.28.1

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.
Files changed (132) hide show
  1. package/lib/commonjs/credential/issuance/03-start-user-authorization.js +3 -0
  2. package/lib/commonjs/credential/issuance/03-start-user-authorization.js.map +1 -1
  3. package/lib/commonjs/credential/presentation/01-start-flow.js +14 -24
  4. package/lib/commonjs/credential/presentation/01-start-flow.js.map +1 -1
  5. package/lib/commonjs/credential/presentation/03-get-request-object.js +30 -42
  6. package/lib/commonjs/credential/presentation/03-get-request-object.js.map +1 -1
  7. package/lib/commonjs/credential/presentation/04-retrieve-rp-jwks.js +32 -0
  8. package/lib/commonjs/credential/presentation/04-retrieve-rp-jwks.js.map +1 -0
  9. package/lib/commonjs/credential/presentation/05-verify-request-object.js +53 -0
  10. package/lib/commonjs/credential/presentation/05-verify-request-object.js.map +1 -0
  11. package/lib/commonjs/credential/presentation/06-fetch-presentation-definition.js +39 -0
  12. package/lib/commonjs/credential/presentation/06-fetch-presentation-definition.js.map +1 -0
  13. package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js +125 -0
  14. package/lib/commonjs/credential/presentation/07-evaluate-dcql-query.js.map +1 -0
  15. package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js +289 -0
  16. package/lib/commonjs/credential/presentation/07-evaluate-input-descriptor.js.map +1 -0
  17. package/lib/commonjs/credential/presentation/08-send-authorization-response.js +170 -0
  18. package/lib/commonjs/credential/presentation/08-send-authorization-response.js.map +1 -0
  19. package/lib/commonjs/credential/presentation/errors.js +69 -1
  20. package/lib/commonjs/credential/presentation/errors.js.map +1 -1
  21. package/lib/commonjs/credential/presentation/index.js +29 -1
  22. package/lib/commonjs/credential/presentation/index.js.map +1 -1
  23. package/lib/commonjs/credential/presentation/types.js +124 -3
  24. package/lib/commonjs/credential/presentation/types.js.map +1 -1
  25. package/lib/commonjs/sd-jwt/index.js +41 -1
  26. package/lib/commonjs/sd-jwt/index.js.map +1 -1
  27. package/lib/commonjs/trust/chain.js.map +1 -1
  28. package/lib/commonjs/trust/types.js +26 -6
  29. package/lib/commonjs/trust/types.js.map +1 -1
  30. package/lib/commonjs/trust/utils.js +5 -0
  31. package/lib/commonjs/trust/utils.js.map +1 -1
  32. package/lib/commonjs/utils/jwk.js +5 -1
  33. package/lib/commonjs/utils/jwk.js.map +1 -1
  34. package/lib/module/credential/issuance/03-start-user-authorization.js +3 -0
  35. package/lib/module/credential/issuance/03-start-user-authorization.js.map +1 -1
  36. package/lib/module/credential/presentation/01-start-flow.js +14 -24
  37. package/lib/module/credential/presentation/01-start-flow.js.map +1 -1
  38. package/lib/module/credential/presentation/03-get-request-object.js +31 -43
  39. package/lib/module/credential/presentation/03-get-request-object.js.map +1 -1
  40. package/lib/module/credential/presentation/04-retrieve-rp-jwks.js +25 -0
  41. package/lib/module/credential/presentation/04-retrieve-rp-jwks.js.map +1 -0
  42. package/lib/module/credential/presentation/05-verify-request-object.js +46 -0
  43. package/lib/module/credential/presentation/05-verify-request-object.js.map +1 -0
  44. package/lib/module/credential/presentation/06-fetch-presentation-definition.js +32 -0
  45. package/lib/module/credential/presentation/06-fetch-presentation-definition.js.map +1 -0
  46. package/lib/module/credential/presentation/07-evaluate-dcql-query.js +117 -0
  47. package/lib/module/credential/presentation/07-evaluate-dcql-query.js.map +1 -0
  48. package/lib/module/credential/presentation/07-evaluate-input-descriptor.js +278 -0
  49. package/lib/module/credential/presentation/07-evaluate-input-descriptor.js.map +1 -0
  50. package/lib/module/credential/presentation/08-send-authorization-response.js +158 -0
  51. package/lib/module/credential/presentation/08-send-authorization-response.js.map +1 -0
  52. package/lib/module/credential/presentation/errors.js +64 -0
  53. package/lib/module/credential/presentation/errors.js.map +1 -1
  54. package/lib/module/credential/presentation/index.js +6 -2
  55. package/lib/module/credential/presentation/index.js.map +1 -1
  56. package/lib/module/credential/presentation/types.js +121 -2
  57. package/lib/module/credential/presentation/types.js.map +1 -1
  58. package/lib/module/sd-jwt/index.js +40 -1
  59. package/lib/module/sd-jwt/index.js.map +1 -1
  60. package/lib/module/trust/chain.js.map +1 -1
  61. package/lib/module/trust/types.js +26 -6
  62. package/lib/module/trust/types.js.map +1 -1
  63. package/lib/module/trust/utils.js +5 -0
  64. package/lib/module/trust/utils.js.map +1 -1
  65. package/lib/module/utils/jwk.js +3 -0
  66. package/lib/module/utils/jwk.js.map +1 -1
  67. package/lib/typescript/credential/issuance/03-start-user-authorization.d.ts.map +1 -1
  68. package/lib/typescript/credential/presentation/01-start-flow.d.ts +26 -5
  69. package/lib/typescript/credential/presentation/01-start-flow.d.ts.map +1 -1
  70. package/lib/typescript/credential/presentation/03-get-request-object.d.ts +7 -10
  71. package/lib/typescript/credential/presentation/03-get-request-object.d.ts.map +1 -1
  72. package/lib/typescript/credential/presentation/04-retrieve-rp-jwks.d.ts +23 -0
  73. package/lib/typescript/credential/presentation/04-retrieve-rp-jwks.d.ts.map +1 -0
  74. package/lib/typescript/credential/presentation/05-verify-request-object.d.ts +18 -0
  75. package/lib/typescript/credential/presentation/05-verify-request-object.d.ts.map +1 -0
  76. package/lib/typescript/credential/presentation/06-fetch-presentation-definition.d.ts +21 -0
  77. package/lib/typescript/credential/presentation/06-fetch-presentation-definition.d.ts.map +1 -0
  78. package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts +20 -0
  79. package/lib/typescript/credential/presentation/07-evaluate-dcql-query.d.ts.map +1 -0
  80. package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts +88 -0
  81. package/lib/typescript/credential/presentation/07-evaluate-input-descriptor.d.ts.map +1 -0
  82. package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts +70 -0
  83. package/lib/typescript/credential/presentation/08-send-authorization-response.d.ts.map +1 -0
  84. package/lib/typescript/credential/presentation/errors.d.ts +44 -0
  85. package/lib/typescript/credential/presentation/errors.d.ts.map +1 -1
  86. package/lib/typescript/credential/presentation/index.d.ts +7 -3
  87. package/lib/typescript/credential/presentation/index.d.ts.map +1 -1
  88. package/lib/typescript/credential/presentation/types.d.ts +747 -10
  89. package/lib/typescript/credential/presentation/types.d.ts.map +1 -1
  90. package/lib/typescript/sd-jwt/index.d.ts +19 -0
  91. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  92. package/lib/typescript/trust/index.d.ts +236 -8
  93. package/lib/typescript/trust/index.d.ts.map +1 -1
  94. package/lib/typescript/trust/types.d.ts +3046 -76
  95. package/lib/typescript/trust/types.d.ts.map +1 -1
  96. package/lib/typescript/trust/utils.d.ts +6 -6
  97. package/lib/typescript/trust/utils.d.ts.map +1 -1
  98. package/lib/typescript/utils/decoder.d.ts +1 -1
  99. package/lib/typescript/utils/decoder.d.ts.map +1 -1
  100. package/lib/typescript/utils/errors.d.ts.map +1 -1
  101. package/lib/typescript/utils/jwk.d.ts +137 -0
  102. package/lib/typescript/utils/jwk.d.ts.map +1 -1
  103. package/lib/typescript/utils/misc.d.ts.map +1 -1
  104. package/lib/typescript/wallet-instance-attestation/types.d.ts +16 -16
  105. package/package.json +15 -11
  106. package/src/credential/issuance/03-start-user-authorization.ts +3 -0
  107. package/src/credential/presentation/01-start-flow.ts +19 -26
  108. package/src/credential/presentation/03-get-request-object.ts +35 -58
  109. package/src/credential/presentation/04-retrieve-rp-jwks.ts +34 -0
  110. package/src/credential/presentation/05-verify-request-object.ts +52 -0
  111. package/src/credential/presentation/06-fetch-presentation-definition.ts +48 -0
  112. package/src/credential/presentation/07-evaluate-dcql-query.ts +166 -0
  113. package/src/credential/presentation/07-evaluate-input-descriptor.ts +391 -0
  114. package/src/credential/presentation/08-send-authorization-response.ts +220 -0
  115. package/src/credential/presentation/errors.ts +64 -0
  116. package/src/credential/presentation/index.ts +22 -1
  117. package/src/credential/presentation/types.ts +134 -3
  118. package/src/sd-jwt/index.ts +49 -1
  119. package/src/trust/chain.ts +2 -2
  120. package/src/trust/types.ts +25 -5
  121. package/src/trust/utils.ts +6 -3
  122. package/src/utils/decoder.ts +1 -1
  123. package/src/utils/errors.ts +2 -2
  124. package/src/utils/jwk.ts +8 -1
  125. package/src/utils/misc.ts +2 -2
  126. package/lib/commonjs/credential/presentation/04-send-authorization-response.js +0 -138
  127. package/lib/commonjs/credential/presentation/04-send-authorization-response.js.map +0 -1
  128. package/lib/module/credential/presentation/04-send-authorization-response.js +0 -128
  129. package/lib/module/credential/presentation/04-send-authorization-response.js.map +0 -1
  130. package/lib/typescript/credential/presentation/04-send-authorization-response.d.ts +0 -34
  131. package/lib/typescript/credential/presentation/04-send-authorization-response.d.ts.map +0 -1
  132. package/src/credential/presentation/04-send-authorization-response.ts +0 -168
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/trust/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,SAAS;;;;;;;;;EAAuD,CAAC;AAC9E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AA2DlD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc1B,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAC;AACF,eA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkEV,CAAC;AAEF,eAAO,MAAM,sBAAsB,iCAAsB,CAAC"}
@@ -1,12 +1,12 @@
1
- import type { JWK } from "../utils/jwk";
2
- import type { JWTDecodeResult } from "@pagopa/io-react-native-jwt/lib/typescript/types";
1
+ import type { JWK, JWTDecodeResult } from "../utils/jwk";
3
2
  export type ParsedToken = {
4
3
  header: JWTDecodeResult["protectedHeader"];
5
4
  payload: JWTDecodeResult["payload"];
6
5
  };
7
6
  export declare const verify: (token: string, kid: string, jwks: JWK[]) => Promise<ParsedToken>;
8
- export declare const decode: (token: string) => {
9
- header: import("@pagopa/io-react-native-jwt/lib/typescript/types").JWSHeaderParameters;
10
- payload: import("@pagopa/io-react-native-jwt/lib/typescript/types").JWTPayload;
11
- };
7
+ /**
8
+ * Return type for this function is necessary to avoid an issue during the bob build process.
9
+ * It seems like typescript can't correctly infer the return type of the function.
10
+ */
11
+ export declare const decode: (token: string) => ParsedToken;
12
12
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/trust/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AAExF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAC3C,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAIF,eAAO,MAAM,MAAM,UACV,MAAM,OACR,MAAM,QACL,GAAG,EAAE,KACV,QAAQ,WAAW,CAOrB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,MAAM;;;CAGnC,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/trust/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;IAC3C,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAIF,eAAO,MAAM,MAAM,UACV,MAAM,OACR,MAAM,QACL,GAAG,EAAE,KACV,QAAQ,WAAW,CAOrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,MAAM,UAAW,MAAM,KAAG,WAGtC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { JWTDecodeResult } from "@pagopa/io-react-native-jwt/lib/typescript/types";
1
+ import type { JWTDecodeResult } from "./jwk";
2
2
  export declare const getJwtFromFormPost: (formData: string) => Promise<{
3
3
  jwt: string;
4
4
  decodedJwt: JWTDecodeResult;
@@ -1 +1 @@
1
- {"version":3,"file":"decoder.d.ts","sourceRoot":"","sources":["../../../src/utils/decoder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AA+BxF,eAAO,MAAM,kBAAkB,aACnB,MAAM,KACf,QAAQ;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,eAAe,CAAA;CAAE,CAkBtD,CAAC"}
1
+ {"version":3,"file":"decoder.d.ts","sourceRoot":"","sources":["../../../src/utils/decoder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,e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C,CAAC,CAAC;IAKjD,SAAS,CAAC,aAAa,EAAE,yBAAyB;CAUnD"}
@@ -1,3 +1,4 @@
1
+ import { decode } from "@pagopa/io-react-native-jwt";
1
2
  import { z } from "zod";
2
3
  export type JWK = z.infer<typeof JWK>;
3
4
  export declare const JWK: z.ZodObject<{
@@ -91,4 +92,140 @@ export declare const JWK: z.ZodObject<{
91
92
  * @returns THe same input key with fixed values
92
93
  */
93
94
  export declare function fixBase64EncodingOnKey(key: JWK): JWK;
95
+ export type JWKS = z.infer<typeof JWKS>;
96
+ export declare const JWKS: z.ZodObject<{
97
+ keys: z.ZodArray<z.ZodObject<{
98
+ /** JWK "alg" (Algorithm) Parameter. */
99
+ alg: z.ZodOptional<z.ZodString>;
100
+ crv: z.ZodOptional<z.ZodString>;
101
+ d: z.ZodOptional<z.ZodString>;
102
+ dp: z.ZodOptional<z.ZodString>;
103
+ dq: z.ZodOptional<z.ZodString>;
104
+ e: z.ZodOptional<z.ZodString>;
105
+ /** JWK "ext" (Extractable) Parameter. */
106
+ ext: z.ZodOptional<z.ZodBoolean>;
107
+ k: z.ZodOptional<z.ZodString>;
108
+ /** JWK "key_ops" (Key Operations) Parameter. */
109
+ key_ops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
+ /** JWK "kid" (Key ID) Parameter. */
111
+ kid: z.ZodOptional<z.ZodString>;
112
+ /** JWK "kty" (Key Type) Parameter.
113
+ * This attribute is required to discriminate the
114
+ * type of EC/RSA algorithm */
115
+ kty: z.ZodUnion<[z.ZodLiteral<"RSA">, z.ZodLiteral<"EC">]>;
116
+ n: z.ZodOptional<z.ZodString>;
117
+ p: z.ZodOptional<z.ZodString>;
118
+ q: z.ZodOptional<z.ZodString>;
119
+ qi: z.ZodOptional<z.ZodString>;
120
+ /** JWK "use" (Public Key Use) Parameter. */
121
+ use: z.ZodOptional<z.ZodString>;
122
+ x: z.ZodOptional<z.ZodString>;
123
+ y: z.ZodOptional<z.ZodString>;
124
+ /** JWK "x5c" (X.509 Certificate Chain) Parameter. */
125
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
126
+ /** JWK "x5t" (X.509 Certificate SHA-1 Thumbprint) Parameter. */
127
+ x5t: z.ZodOptional<z.ZodString>;
128
+ /** "x5t#S256" (X.509 Certificate SHA-256 Thumbprint) Parameter. */
129
+ "x5t#S256": z.ZodOptional<z.ZodString>;
130
+ /** JWK "x5u" (X.509 URL) Parameter. */
131
+ x5u: z.ZodOptional<z.ZodString>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ kty: "RSA" | "EC";
134
+ alg?: string | undefined;
135
+ crv?: string | undefined;
136
+ d?: string | undefined;
137
+ dp?: string | undefined;
138
+ dq?: string | undefined;
139
+ e?: string | undefined;
140
+ ext?: boolean | undefined;
141
+ k?: string | undefined;
142
+ key_ops?: string[] | undefined;
143
+ kid?: string | undefined;
144
+ n?: string | undefined;
145
+ p?: string | undefined;
146
+ q?: string | undefined;
147
+ qi?: string | undefined;
148
+ use?: string | undefined;
149
+ x?: string | undefined;
150
+ y?: string | undefined;
151
+ x5c?: string[] | undefined;
152
+ x5t?: string | undefined;
153
+ "x5t#S256"?: string | undefined;
154
+ x5u?: string | undefined;
155
+ }, {
156
+ kty: "RSA" | "EC";
157
+ alg?: string | undefined;
158
+ crv?: string | undefined;
159
+ d?: string | undefined;
160
+ dp?: string | undefined;
161
+ dq?: string | undefined;
162
+ e?: string | undefined;
163
+ ext?: boolean | undefined;
164
+ k?: string | undefined;
165
+ key_ops?: string[] | undefined;
166
+ kid?: string | undefined;
167
+ n?: string | undefined;
168
+ p?: string | undefined;
169
+ q?: string | undefined;
170
+ qi?: string | undefined;
171
+ use?: string | undefined;
172
+ x?: string | undefined;
173
+ y?: string | undefined;
174
+ x5c?: string[] | undefined;
175
+ x5t?: string | undefined;
176
+ "x5t#S256"?: string | undefined;
177
+ x5u?: string | undefined;
178
+ }>, "many">;
179
+ }, "strip", z.ZodTypeAny, {
180
+ keys: {
181
+ kty: "RSA" | "EC";
182
+ alg?: string | undefined;
183
+ crv?: string | undefined;
184
+ d?: string | undefined;
185
+ dp?: string | undefined;
186
+ dq?: string | undefined;
187
+ e?: string | undefined;
188
+ ext?: boolean | undefined;
189
+ k?: string | undefined;
190
+ key_ops?: string[] | undefined;
191
+ kid?: string | undefined;
192
+ n?: string | undefined;
193
+ p?: string | undefined;
194
+ q?: string | undefined;
195
+ qi?: string | undefined;
196
+ use?: string | undefined;
197
+ x?: string | undefined;
198
+ y?: string | undefined;
199
+ x5c?: string[] | undefined;
200
+ x5t?: string | undefined;
201
+ "x5t#S256"?: string | undefined;
202
+ x5u?: string | undefined;
203
+ }[];
204
+ }, {
205
+ keys: {
206
+ kty: "RSA" | "EC";
207
+ alg?: string | undefined;
208
+ crv?: string | undefined;
209
+ d?: string | undefined;
210
+ dp?: string | undefined;
211
+ dq?: string | undefined;
212
+ e?: string | undefined;
213
+ ext?: boolean | undefined;
214
+ k?: string | undefined;
215
+ key_ops?: string[] | undefined;
216
+ kid?: string | undefined;
217
+ n?: string | undefined;
218
+ p?: string | undefined;
219
+ q?: string | undefined;
220
+ qi?: string | undefined;
221
+ use?: string | undefined;
222
+ x?: string | undefined;
223
+ y?: string | undefined;
224
+ x5c?: string[] | undefined;
225
+ x5t?: string | undefined;
226
+ "x5t#S256"?: string | undefined;
227
+ x5u?: string | undefined;
228
+ }[];
229
+ }>;
230
+ export type JWTDecodeResult = ReturnType<typeof decode>;
94
231
  //# sourceMappingURL=jwk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"jwk.d.ts","sourceRoot":"","sources":["../../../src/utils/jwk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;AACtC,eAAO,MAAM,GAAG;IACd,uCAAuC;;;;;;;IAOvC,yCAAyC;;;IAGzC,gDAAgD;;IAEhD,oCAAoC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BvC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,WAClB,MAAM,gBAAgB,gCAAgC,WACnD,QAAQ,KAAG,QAAQ,QAAQ,CAUtC,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,gDACrB,QAAQ,iCAIC,CAAC;AAItB,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,GAC7D,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,GACvB,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAClC,UAAU,CAAC,EAAE,CAAC,GACd,KAAK,CAAC;AAEV;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,SAAU,MAAM,WAGjD,CAAC;AAEb;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,eAChC,MAAM,KACjB,QAAQ,MAAM,CAMhB,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,MAAM,0CAM5C,CAAC"}
1
+ {"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAGpE;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,WAClB,MAAM,gBAAgB,gCAAgC,WACnD,QAAQ,KAAG,QAAQ,QAAQ,CAUtC,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,oBAAoB,gDACrB,QAAQ,iCAIC,CAAC;AAItB,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,GAC7D,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,GACvB,EAAE,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,GAChC,UAAU,CAAC,EAAE,CAAC,GACd,KAAK,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,SAAU,MAAM,WAGjD,CAAC;AAEb;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC,eAChC,MAAM,KACjB,QAAQ,MAAM,CAMhB,CAAC;AAEF,eAAO,MAAM,aAAa,YAAa,MAAM,0CAM5C,CAAC"}
@@ -600,10 +600,8 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
600
600
  presentation_definition_uri_supported: z.ZodBoolean;
601
601
  }, "strip", z.ZodTypeAny, {
602
602
  sub: string;
603
- authorization_endpoint: string;
603
+ presentation_definition_uri_supported: boolean;
604
604
  request_object_signing_alg_values_supported: string[];
605
- aal: string;
606
- response_types_supported: string[];
607
605
  vp_formats_supported: {
608
606
  "vc+sd-jwt"?: {
609
607
  "sd-jwt_alg_values": string[];
@@ -612,13 +610,13 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
612
610
  "sd-jwt_alg_values": string[];
613
611
  } | undefined;
614
612
  };
615
- presentation_definition_uri_supported: boolean;
616
- }, {
617
- sub: string;
618
613
  authorization_endpoint: string;
619
- request_object_signing_alg_values_supported: string[];
620
614
  aal: string;
621
615
  response_types_supported: string[];
616
+ }, {
617
+ sub: string;
618
+ presentation_definition_uri_supported: boolean;
619
+ request_object_signing_alg_values_supported: string[];
622
620
  vp_formats_supported: {
623
621
  "vc+sd-jwt"?: {
624
622
  "sd-jwt_alg_values": string[];
@@ -627,7 +625,9 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
627
625
  "sd-jwt_alg_values": string[];
628
626
  } | undefined;
629
627
  };
630
- presentation_definition_uri_supported: boolean;
628
+ authorization_endpoint: string;
629
+ aal: string;
630
+ response_types_supported: string[];
631
631
  }>>;
632
632
  }, "strip", z.ZodTypeAny, {
633
633
  payload: {
@@ -664,10 +664,8 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
664
664
  };
665
665
  } & {
666
666
  sub: string;
667
- authorization_endpoint: string;
667
+ presentation_definition_uri_supported: boolean;
668
668
  request_object_signing_alg_values_supported: string[];
669
- aal: string;
670
- response_types_supported: string[];
671
669
  vp_formats_supported: {
672
670
  "vc+sd-jwt"?: {
673
671
  "sd-jwt_alg_values": string[];
@@ -676,7 +674,9 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
676
674
  "sd-jwt_alg_values": string[];
677
675
  } | undefined;
678
676
  };
679
- presentation_definition_uri_supported: boolean;
677
+ authorization_endpoint: string;
678
+ aal: string;
679
+ response_types_supported: string[];
680
680
  };
681
681
  header: {
682
682
  alg: string;
@@ -722,10 +722,8 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
722
722
  };
723
723
  } & {
724
724
  sub: string;
725
- authorization_endpoint: string;
725
+ presentation_definition_uri_supported: boolean;
726
726
  request_object_signing_alg_values_supported: string[];
727
- aal: string;
728
- response_types_supported: string[];
729
727
  vp_formats_supported: {
730
728
  "vc+sd-jwt"?: {
731
729
  "sd-jwt_alg_values": string[];
@@ -734,7 +732,9 @@ export declare const WalletInstanceAttestationJwt: z.ZodObject<{
734
732
  "sd-jwt_alg_values": string[];
735
733
  } | undefined;
736
734
  };
737
- presentation_definition_uri_supported: boolean;
735
+ authorization_endpoint: string;
736
+ aal: string;
737
+ response_types_supported: string[];
738
738
  };
739
739
  header: {
740
740
  alg: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-wallet",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "description": "Provide data structures, helpers and API for IO Wallet",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -53,27 +53,28 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "devDependencies": {
56
- "@pagopa/eslint-config": "^3.0.0",
57
56
  "@pagopa/io-react-native-crypto": "^0.2.3",
58
- "@pagopa/io-react-native-jwt": "^1.3.0",
59
- "@react-native/eslint-config": "^0.72.2",
57
+ "@react-native/eslint-config": "^0.75.5",
58
+ "@pagopa/io-react-native-jwt": "^2.1.0",
60
59
  "@rushstack/eslint-patch": "^1.3.2",
61
60
  "@types/jest": "^28.1.2",
62
- "@types/react": "^18.0.24",
61
+ "@types/react": "^18.2.6",
63
62
  "@types/react-native": "0.70.0",
63
+ "@types/url-parse": "^1.4.11",
64
64
  "del-cli": "^5.0.0",
65
65
  "eslint": "^8.4.1",
66
+ "eslint-plugin-prettier": "^5.2.3",
66
67
  "jest": "^28.1.1",
67
68
  "pod-install": "^0.1.0",
68
- "prettier": "^2.0.5",
69
- "react": "18.2.0",
70
- "react-native": "0.72.14",
69
+ "prettier": "^3.5.3",
70
+ "react": "18.3.1",
71
+ "react-native": "0.75.5",
71
72
  "react-native-builder-bob": "^0.20.0",
72
73
  "typed-openapi": "^0.4.1",
73
- "typescript": "^5.0.2"
74
+ "typescript": "5.0.4"
74
75
  },
75
76
  "resolutions": {
76
- "@types/react": "^18.0.24"
77
+ "@types/react": "^18.2.6"
77
78
  },
78
79
  "peerDependencies": {
79
80
  "@pagopa/io-react-native-crypto": "*",
@@ -113,11 +114,14 @@
113
114
  ]
114
115
  },
115
116
  "dependencies": {
117
+ "dcql": "^0.2.19",
116
118
  "js-base64": "^3.7.7",
117
119
  "js-sha256": "^0.9.0",
120
+ "jsonpath-plus": "^10.2.0",
118
121
  "parse-url": "^9.2.0",
119
122
  "react-native-url-polyfill": "^2.0.0",
123
+ "react-native-uuid": "^2.0.1",
120
124
  "uuid": "^11.0.3",
121
125
  "zod": "^3.21.4"
122
126
  }
123
- }
127
+ }
@@ -108,6 +108,9 @@ export const startUserAuthorization: StartUserAuthorization = async (
108
108
  } = ctx;
109
109
 
110
110
  const clientId = await wiaCryptoContext.getPublicKey().then((_) => _.kid);
111
+ if (!clientId) {
112
+ throw new Error("No public key found");
113
+ }
111
114
  const codeVerifier = generateRandomAlphaNumericString(64);
112
115
  const parEndpoint =
113
116
  issuerConf.oauth_authorization_server.pushed_authorization_request_endpoint;
@@ -1,51 +1,44 @@
1
1
  import * as z from "zod";
2
- import { decodeBase64 } from "@pagopa/io-react-native-jwt";
3
- import { AuthRequestDecodeError } from "./errors";
2
+ import { ValidationFailed } from "../../utils/errors";
4
3
 
5
- const QRCodePayload = z.object({
6
- protocol: z.string(),
7
- resource: z.string(), // TODO: refine to known paths using literals
8
- clientId: z.string(),
9
- requestURI: z.string(),
4
+ const PresentationParams = z.object({
5
+ clientId: z.string().nonempty(),
6
+ requestUri: z.string().url(),
7
+ requestUriMethod: z.enum(["get", "post"]),
8
+ state: z.string().optional(),
10
9
  });
10
+ export type PresentationParams = z.infer<typeof PresentationParams>;
11
11
 
12
12
  /**
13
13
  * The beginning of the presentation flow.
14
14
  * To be implemented accordind to the user touchpoint
15
15
  *
16
- * @param Optional parameters, depending on the starting touchoint
16
+ * @param params Presentation parameters, depending on the starting touchoint
17
17
  * @returns The url for the Relying Party to connect with
18
18
  */
19
- export type StartFlow<T extends Array<unknown> = []> = (...args: T) => {
20
- requestURI: string;
19
+ export type StartFlow = (params: PresentationParams) => {
20
+ requestUri: string;
21
21
  clientId: string;
22
+ requestUriMethod?: "get" | "post";
23
+ state?: string;
22
24
  };
23
25
 
24
26
  /**
25
27
  * Start a presentation flow by decoding an incoming QR-code
26
28
  *
27
- * @param qrcode The encoded QR-code content
29
+ * @param params The encoded QR-code content
28
30
  * @returns The url for the Relying Party to connect with
29
31
  * @throws If the provided qr code fails to be decoded
30
32
  */
31
- export const startFlowFromQR: StartFlow<[string]> = (qrcode) => {
32
- const decoded = decodeBase64(qrcode);
33
- const decodedUrl = new URL(decoded);
34
- const protocol = decodedUrl.protocol;
35
- const resource = decodedUrl.hostname;
36
- const requestURI = decodedUrl.searchParams.get("request_uri");
37
- const clientId = decodedUrl.searchParams.get("client_id");
38
-
39
- const result = QRCodePayload.safeParse({
40
- protocol,
41
- resource,
42
- requestURI,
43
- clientId,
44
- });
33
+ export const startFlowFromQR: StartFlow = (params) => {
34
+ const result = PresentationParams.safeParse(params);
45
35
 
46
36
  if (result.success) {
47
37
  return result.data;
48
38
  } else {
49
- throw new AuthRequestDecodeError(result.error.message, `${decodedUrl}`);
39
+ throw new ValidationFailed({
40
+ message: "Invalid parameters provided",
41
+ reason: result.error.message,
42
+ });
50
43
  }
51
44
  };
@@ -1,85 +1,62 @@
1
- import { v4 as uuidv4 } from "uuid";
2
- import {
3
- decode as decodeJwt,
4
- sha256ToBase64,
5
- verify,
6
- type CryptoContext,
7
- } from "@pagopa/io-react-native-jwt";
8
-
9
- import { createDPopToken } from "../../utils/dpop";
10
- import { NoSuitableKeysFoundInEntityConfiguration } from "./errors";
11
- import type { EvaluateRelyingPartyTrust } from "./02-evaluate-rp-trust";
12
1
  import { hasStatusOrThrow, type Out } from "../../utils/misc";
13
2
  import type { StartFlow } from "./01-start-flow";
14
- import { RequestObject } from "./types";
3
+ import { RequestObjectWalletCapabilities } from "./types";
15
4
 
16
5
  export type GetRequestObject = (
17
- requestUri: Out<StartFlow>["requestURI"],
18
- rpConf: Out<EvaluateRelyingPartyTrust>["rpConf"],
6
+ requestUri: Out<StartFlow>["requestUri"],
19
7
  context: {
20
- wiaCryptoContext: CryptoContext;
21
8
  appFetch?: GlobalFetch["fetch"];
22
9
  walletInstanceAttestation: string;
10
+ walletCapabilities?: RequestObjectWalletCapabilities;
23
11
  }
24
- ) => Promise<{ requestObject: RequestObject }>;
12
+ ) => Promise<{ requestObjectEncodedJwt: string }>;
25
13
 
26
14
  /**
27
- * Obtain the Request Object for RP authentication
15
+ * Obtain the Request Object for RP authentication. Both the GET and POST `request_uri_method` are supported.
28
16
  * @see https://italia.github.io/eudi-wallet-it-docs/versione-corrente/en/relying-party-solution.html
29
17
  *
30
18
  * @param requestUri The url for the Relying Party to connect with
31
- * @param rpConf The Relying Party's configuration
32
- * @param context.wiaCryptoContext The context to access the key associated with the Wallet Instance Attestation
33
- * @param context.walletInstanceAttestation The Wallet Instance Attestation token
19
+ * @param rpConf The Relying Party's configuration * @param context.walletInstanceAttestation The Wallet Instance Attestation token
20
+ * @param context.walletCapabilities (optional) An object containing the wallet technical capabilities that will be sent with a POST request
34
21
  * @param context.appFetch (optional) fetch api implementation. Default: built-in fetch
35
22
  * @returns The Request Object that describes the presentation
36
23
  */
37
24
  export const getRequestObject: GetRequestObject = async (
38
25
  requestUri,
39
- rpConf,
40
- { wiaCryptoContext, appFetch = fetch, walletInstanceAttestation }
26
+ { appFetch = fetch, walletCapabilities }
41
27
  ) => {
42
- const signedWalletInstanceDPoP = await createDPopToken(
43
- {
44
- jti: `${uuidv4()}`,
45
- htm: "GET",
46
- htu: requestUri,
47
- ath: await sha256ToBase64(walletInstanceAttestation),
48
- },
49
- wiaCryptoContext
50
- );
28
+ if (walletCapabilities) {
29
+ // Validate external input
30
+ const { wallet_metadata, wallet_nonce } =
31
+ RequestObjectWalletCapabilities.parse(walletCapabilities);
32
+
33
+ const formUrlEncodedBody = new URLSearchParams({
34
+ wallet_metadata: JSON.stringify(wallet_metadata),
35
+ ...(wallet_nonce && { wallet_nonce }),
36
+ });
37
+
38
+ const requestObjectEncodedJwt = await appFetch(requestUri, {
39
+ method: "POST",
40
+ headers: {
41
+ "Content-Type": "application/x-www-form-urlencoded",
42
+ },
43
+ body: formUrlEncodedBody.toString(),
44
+ })
45
+ .then(hasStatusOrThrow(200))
46
+ .then((res) => res.text());
47
+
48
+ return {
49
+ requestObjectEncodedJwt,
50
+ };
51
+ }
51
52
 
52
- const responseEncodedJwt = await appFetch(requestUri, {
53
+ const requestObjectEncodedJwt = await appFetch(requestUri, {
53
54
  method: "GET",
54
- headers: {
55
- Authorization: `DPoP ${walletInstanceAttestation}`,
56
- DPoP: signedWalletInstanceDPoP,
57
- },
58
55
  })
59
56
  .then(hasStatusOrThrow(200))
60
- .then((res) => res.json())
61
- .then((responseJson) => responseJson.response);
62
-
63
- const responseJwt = decodeJwt(responseEncodedJwt);
64
-
65
- // verify token signature according to RP's entity configuration
66
- // to ensure the request object is authentic
67
- {
68
- const pubKey = rpConf.wallet_relying_party.jwks.keys.find(
69
- ({ kid }) => kid === responseJwt.protectedHeader.kid
70
- );
71
- if (!pubKey) {
72
- throw new NoSuitableKeysFoundInEntityConfiguration(
73
- "Request Object signature verification"
74
- );
75
- }
76
- await verify(responseEncodedJwt, pubKey);
77
- }
78
-
79
- // Ensure that the request object conforms to the expected specification.
80
- const requestObject = RequestObject.parse(responseJwt.payload);
57
+ .then((res) => res.text());
81
58
 
82
59
  return {
83
- requestObject,
60
+ requestObjectEncodedJwt,
84
61
  };
85
62
  };