@pagopa/io-react-native-wallet 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -236,7 +236,7 @@ class Issuing {
236
236
  *
237
237
  */
238
238
  async getEntityConfiguration() {
239
- const metadataUrl = new URL(".well-known/openid-federation", this.pidProviderBaseUrl).href;
239
+ const metadataUrl = new URL("ci/.well-known/openid-federation", this.pidProviderBaseUrl).href;
240
240
  const response = await this.appFetch(metadataUrl);
241
241
  if (response.status === 200) {
242
242
  const jwtMetadata = await response.text();
@@ -1 +1 @@
1
- {"version":3,"names":["_ioReactNativeJwt","require","_jwk","_reactNativeUuid","_interopRequireDefault","_errors","_dpop","_ioReactNativeCrypto","_metadata","obj","__esModule","default","Issuing","constructor","pidProviderBaseUrl","walletProviderBaseUrl","walletInstanceAttestation","clientId","appFetch","arguments","length","undefined","fetch","state","uuid","v4","codeVerifier","authorizationCode","getUnsignedJwtForPar","jwk","parsedJwk","JWK","parse","keyThumbprint","thumbprint","publicKey","kid","codeChallenge","sha256ToBase64","unsignedJwtForPar","SignJWT","client_assertion_type","authorization_details","credentialDefinition","type","format","response_type","code_challenge_method","redirect_uri","client_id","code_challenge","setProtectedHeader","alg","setIssuedAt","setExpirationTime","toSign","getPar","signature","signedJwtForPar","appendSignature","parUrl","URL","href","requestBody","client_assertion","request","formBody","URLSearchParams","response","method","headers","body","toString","status","result","json","request_uri","PidIssuingError","text","getUnsignedDPoP","tokenUrl","dPop","getUnsignedDPop","htm","htu","jti","getAuthToken","dPopKeyTag","dPopKey","generate","unsignedDPopForToken","dPopTokenSignature","sign","deleteKey","signedDPop","decodedJwtDPop","decodeJwt","payload","grant_type","code","code_verifier","DPoP","getUnsignedNonceProof","nonce","unsignedProof","setAudience","setIssuer","getCredential","unsignedDPopForPid","dPopPidSignature","unsignedNonceProof","nonceProofSignature","accessToken","cieData","signedDPopForPid","signedNonceProof","credentialUrl","credential_definition","JSON","stringify","proof","jwt","proof_type","Authorization","getEntityConfiguration","metadataUrl","jwtMetadata","PidIssuerEntityConfiguration","safeParse","success","parsedMetadata","data","verifyJwt","jwks","keys","PidMetadataError","error","message","exports"],"sourceRoot":"../../../src","sources":["pid/issuing.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAOA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AAA0D,SAAAG,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE1D;;AAgBO,MAAMG,OAAO,CAAC;EAUnBC,WAAWA,CACTC,kBAA0B,EAC1BC,qBAA6B,EAC7BC,yBAAiC,EACjCC,QAAgB,EAEhB;IAAA,IADAC,QAA8B,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,KAAK;IAEtC,IAAI,CAACR,kBAAkB,GAAGA,kBAAkB;IAC5C,IAAI,CAACC,qBAAqB,GAAGA,qBAAqB;IAClD,IAAI,CAACQ,KAAK,GAAI,GAAEC,wBAAI,CAACC,EAAE,CAAC,CAAE,EAAC;IAC3B,IAAI,CAACC,YAAY,GAAI,GAAEF,wBAAI,CAACC,EAAE,CAAC,CAAE,EAAC;IAClC,IAAI,CAACE,iBAAiB,GAAI,GAAEH,wBAAI,CAACC,EAAE,CAAC,CAAE,EAAC;IACvC,IAAI,CAACT,yBAAyB,GAAGA,yBAAyB;IAC1D,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EAC1B;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMU,oBAAoBA,CAACC,GAAQ,EAAmB;IACpD,MAAMC,S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E;QAClB,MAAMC,cAAc,GAAGxD,MAAM,CAACyD,IAAI;QAClC,MAAM,IAAAC,wBAAS,EAACN,WAAW,EAAEI,cAAc,CAACG,IAAI,CAACC,IAAI,CAAC;QACtD,OAAOJ,cAAc;MACvB,CAAC,MAAM;QACL,MAAM,IAAIK,wBAAgB,CAAC7D,MAAM,CAAC8D,KAAK,CAACC,OAAO,CAAC;MAClD;IACF;IAEA,MAAM,IAAIF,wBAAgB,CACvB,4CAA2C,MAAMnE,QAAQ,CAACU,IAAI,CAAC,CAAE,iBAChEV,QAAQ,CAACK,MACV,EACH,CAAC;EACH;AACF;AAACiE,OAAA,CAAA9H,OAAA,GAAAA,OAAA"}
1
+ {"version":3,"names":["_ioReactNativeJwt","require","_jwk","_reactNativeUuid","_interopRequireDefault","_errors","_dpop","_ioReactNativeCrypto","_metadata","obj","__esModule","default","Issuing","constructor","pidProviderBaseUrl","walletProviderBaseUrl","walletInstanceAttestation","clientId","appFetch","arguments","length","undefined","fetch","state","uuid","v4","codeVerifier","authorizationCode","getUnsignedJwtForPar","jwk","parsedJwk","JWK","parse","keyThumbprint","thumbprint","publicKey","kid","codeChallenge","sha256ToBase64","unsignedJwtForPar","SignJWT","client_assertion_type","authorization_details","credentialDefinition","type","format","response_type","code_challenge_method","redirect_uri","client_id","code_challenge","setProtectedHeader","alg","setIssuedAt","setExpirationTime","toSign","getPar","signature","signedJwtForPar","appendSignature","parUrl","URL","href","requestBody","client_assertion","request","formBody","URLSearchParams","response","method","headers","body","toString","status","result","json","request_uri","PidIssuingError","text","getUnsignedDPoP","tokenUrl","dPop","getUnsignedDPop","htm","htu","jti","getAuthToken","dPopKeyTag","dPopKey","generate","unsignedDPopForToken","dPopTokenSignature","sign","deleteKey","signedDPop","decodedJwtDPop","decodeJwt","payload","grant_type","code","code_verifier","DPoP","getUnsignedNonceProof","nonce","unsignedProof","setAudience","setIssuer","getCredential","unsignedDPopForPid","dPopPidSignature","unsignedNonceProof","nonceProofSignature","accessToken","cieData","signedDPopForPid","signedNonceProof","credentialUrl","credential_definition","JSON","stringify","proof","jwt","proof_type","Authorization","getEntityConfiguration","metadataUrl","jwtMetadata","PidIssuerEntityConfiguration","safeParse","success","parsedMetadata","data","verifyJwt","jwks","keys","PidMetadataError","error","message","exports"],"sourceRoot":"../../../src","sources":["pid/issuing.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAOA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AAA0D,SAAAG,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE1D;;AAgBO,MAAMG,OAAO,CAAC;EAUnBC,WAAWA,CACTC,kBAA0B,EAC1BC,qBAA6B,EAC7BC,yBAAiC,EACjCC,QAAgB,EAEhB;IAAA,IADAC,QAA8B,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,KAAK;IAEtC,IAAI,CAACR,kBAAkB,GAAGA,kBAAkB;IAC5C,IAAI,CAACC,qBAAqB,GAAGA,qBAAqB;IAClD,IAAI,CAACQ,KAAK,GAAI,GAAEC,wBAAI,CAACC,EAAE,CAAC,CAAE,EAAC;IAC3B,IAAI,CAACC,YAAY,GAAI,GAAEF,wBAAI,CAACC,EAAE,CAAC,CAAE,EAAC;IAClC,IAAI,CAACE,iBAAiB,GAAI,GAAEH,wBAAI,CAACC,EAAE,CAAC,CAAE,EAAC;IACvC,IAAI,CAACT,yBAAyB,GAAGA,yBAAyB;IAC1D,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EAC1B;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AAMpD,MAAM,GAAGqD,sCAA4B,CAACC,SAAS,CAAC/B,OAAO,CAAC;MAC9D,IAAIvB,MAAM,CAACuD,OAAO,EAAE;QAClB,MAAMC,cAAc,GAAGxD,MAAM,CAACyD,IAAI;QAClC,MAAM,IAAAC,wBAAS,EAACN,WAAW,EAAEI,cAAc,CAACG,IAAI,CAACC,IAAI,CAAC;QACtD,OAAOJ,cAAc;MACvB,CAAC,MAAM;QACL,MAAM,IAAIK,wBAAgB,CAAC7D,MAAM,CAAC8D,KAAK,CAACC,OAAO,CAAC;MAClD;IACF;IAEA,MAAM,IAAIF,wBAAgB,CACvB,4CAA2C,MAAMnE,QAAQ,CAACU,IAAI,CAAC,CAAE,iBAChEV,QAAQ,CAACK,MACV,EACH,CAAC;EACH;AACF;AAACiE,OAAA,CAAA9H,OAAA,GAAAA,OAAA"}
@@ -29,14 +29,12 @@ const PidIssuerEntityConfiguration = _zod.z.object({
29
29
  pushed_authorization_request_endpoint: _zod.z.string(),
30
30
  dpop_signing_alg_values_supported: _zod.z.array(_zod.z.string()),
31
31
  credential_endpoint: _zod.z.string(),
32
- credentials_supported: _zod.z.object({
33
- "eu.eudiw.pid.it": _zod.z.object({
34
- format: _zod.z.literal("vc+sd-jwt"),
35
- cryptographic_binding_methods_supported: _zod.z.array(_zod.z.string()),
36
- cryptographic_suites_supported: _zod.z.array(_zod.z.string()),
37
- display: _zod.z.array(PidDisplayMetadata)
38
- })
39
- })
32
+ credentials_supported: _zod.z.array(_zod.z.object({
33
+ format: _zod.z.literal("vc+sd-jwt"),
34
+ cryptographic_binding_methods_supported: _zod.z.array(_zod.z.string()),
35
+ cryptographic_suites_supported: _zod.z.array(_zod.z.string()),
36
+ display: _zod.z.array(PidDisplayMetadata)
37
+ }))
40
38
  }),
41
39
  federation_entity: _zod.z.object({
42
40
  organization_name: _zod.z.string(),
@@ -1 +1 @@
1
- {"version":3,"names":["_jwk","require","_zod","PidDisplayMetadata","z","object","name","string","locale","logo","url","alt_text","background_color","text_color","exports","PidIssuerEntityConfiguration","jwks","keys","array","JWK","metadata","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","format","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","display","federation_entity","organization_name","homepage_uri","policy_uri","tos_uri","logo_uri"],"sourceRoot":"../../../src","sources":["pid/metadata.ts"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAGO,MAAME,kBAAkB,GAAGC,MAAC,CAACC,MAAM,CAAC;EACzCC,IAAI,EAAEF,MAAC,CAACG,MAAM,CAAC,CAAC;EAChBC,MAAM,EAAEJ,MAAC,CAACG,MAAM,CAAC,CAAC;EAClBE,IAAI,EAAEL,MAAC,CAACC,MAAM,CAAC;IACbK,GAAG,EAAEN,MAAC,CAACG,MAAM,CAAC,CAAC;IACfI,QAAQ,EAAEP,MAAC,CAACG,MAAM,CAAC;EACrB,CAAC,CAAC;EACFK,gBAAgB,EAAER,MAAC,CAACG,MAAM,CAAC,CAAC;EAC5BM,UAAU,EAAET,MAAC,CAACG,MAAM,CAAC;AACvB,CAAC,CAAC;AAACO,OAAA,CAAAX,kBAAA,GAAAA,kBAAA;AAKI,MAAMY,4BAA4B,GAAGX,MAAC,CAACC,MAAM,CAAC;EACnDW,IAAI,EAAEZ,MAAC,CAACC,MAAM,CAAC;IAAEY,IAAI,EAAEb,MAAC,CAACc,KAAK,CAACC,QAAG;EAAE,CAAC,CAAC;EACtCC,QAAQ,EAAEhB,MAAC,CAACC,MAAM,CAAC;IACjBgB,wBAAwB,EAAEjB,MAAC,CAACC,MAAM,CAAC;MACjCiB,iBAAiB,EAAElB,MAAC,CAACG,MAAM,CAAC,CAAC;MAC7BgB,sBAAsB,EAAEnB,MAAC,CAACG,MAAM,CAAC,CAAC;MAClCiB,cAAc,EAAEpB,MAAC,CAACG,MAAM,CAAC,CAAC;MAC1BkB,qCAAqC,EAAErB,MAAC,CAACG,MAAM,CAAC,CAAC;MACjDmB,iCAAiC,EAAEtB,MAAC,CAACc,KAAK,CAACd,MAAC,CAACG,MAAM,CAAC,CAAC,CAAC;MACtDoB,mBAAmB,EAAEvB,MAAC,CAACG,MAAM,CAAC,CAAC;MAC/BqB,qBAAqB,EAAExB,MAAC,CAACC,MAAM,CAAC;QAC9B,iBAAiB,EAAED,MAAC,CAACC,MAAM,CAAC;UAC1BwB,MAAM,EAAEzB,MAAC,CAAC0B,OAAO,CAAC,WAAW,CAAC;UAC9BC,uCAAuC,EAAE3B,MAAC,CAACc,KAAK,CAACd,MAAC,CAACG,MAAM,CAAC,CAAC,CAAC;UAC5DyB,8BAA8B,EAAE5B,MAAC,CAACc,KAAK,CAACd,MAAC,CAACG,MAAM,CAAC,CAAC,CAAC;UACnD0B,OAAO,EAAE7B,MAAC,CAACc,KAAK,CAACf,kBAAkB;QACrC,CAAC;MACH,CAAC;IACH,CAAC,CAAC;IACF+B,iBAAiB,EAAE9B,MAAC,CAACC,MAAM,CAAC;MAC1B8B,iBAAiB,EAAE/B,MAAC,CAACG,MAAM,CAAC,CAAC;MAC7B6B,YAAY,EAAEhC,MAAC,CAACG,MAAM,CAAC,CAAC;MACxB8B,UAAU,EAAEjC,MAAC,CAACG,MAAM,CAAC,CAAC;MACtB+B,OAAO,EAAElC,MAAC,CAACG,MAAM,CAAC,CAAC;MACnBgC,QAAQ,EAAEnC,MAAC,CAACG,MAAM,CAAC;IACrB,CAAC;EACH,CAAC;AACH,CAAC,CAAC;AAACO,OAAA,CAAAC,4BAAA,GAAAA,4BAAA"}
1
+ {"version":3,"names":["_jwk","require","_zod","PidDisplayMetadata","z","object","name","string","locale","logo","url","alt_text","background_color","text_color","exports","PidIssuerEntityConfiguration","jwks","keys","array","JWK","metadata","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","format","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","display","federation_entity","organization_name","homepage_uri","policy_uri","tos_uri","logo_uri"],"sourceRoot":"../../../src","sources":["pid/metadata.ts"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAGO,MAAME,kBAAkB,GAAGC,MAAC,CAACC,MAAM,CAAC;EACzCC,IAAI,EAAEF,MAAC,CAACG,MAAM,CAAC,CAAC;EAChBC,MAAM,EAAEJ,MAAC,CAACG,MAAM,CAAC,CAAC;EAClBE,IAAI,EAAEL,MAAC,CAACC,MAAM,CAAC;IACbK,GAAG,EAAEN,MAAC,CAACG,MAAM,CAAC,CAAC;IACfI,QAAQ,EAAEP,MAAC,CAACG,MAAM,CAAC;EACrB,CAAC,CAAC;EACFK,gBAAgB,EAAER,MAAC,CAACG,MAAM,CAAC,CAAC;EAC5BM,UAAU,EAAET,MAAC,CAACG,MAAM,CAAC;AACvB,CAAC,CAAC;AAACO,OAAA,CAAAX,kBAAA,GAAAA,kBAAA;AAKI,MAAMY,4BAA4B,GAAGX,MAAC,CAACC,MAAM,CAAC;EACnDW,IAAI,EAAEZ,MAAC,CAACC,MAAM,CAAC;IAAEY,IAAI,EAAEb,MAAC,CAACc,KAAK,CAACC,QAAG;EAAE,CAAC,CAAC;EACtCC,QAAQ,EAAEhB,MAAC,CAACC,MAAM,CAAC;IACjBgB,wBAAwB,EAAEjB,MAAC,CAACC,MAAM,CAAC;MACjCiB,iBAAiB,EAAElB,MAAC,CAACG,MAAM,CAAC,CAAC;MAC7BgB,sBAAsB,EAAEnB,MAAC,CAACG,MAAM,CAAC,CAAC;MAClCiB,cAAc,EAAEpB,MAAC,CAACG,MAAM,CAAC,CAAC;MAC1BkB,qCAAqC,EAAErB,MAAC,CAACG,MAAM,CAAC,CAAC;MACjDmB,iCAAiC,EAAEtB,MAAC,CAACc,KAAK,CAACd,MAAC,CAACG,MAAM,CAAC,CAAC,CAAC;MACtDoB,mBAAmB,EAAEvB,MAAC,CAACG,MAAM,CAAC,CAAC;MAC/BqB,qBAAqB,EAAExB,MAAC,CAACc,KAAK,CAC5Bd,MAAC,CAACC,MAAM,CAAC;QACPwB,MAAM,EAAEzB,MAAC,CAAC0B,OAAO,CAAC,WAAW,CAAC;QAC9BC,uCAAuC,EAAE3B,MAAC,CAACc,KAAK,CAACd,MAAC,CAACG,MAAM,CAAC,CAAC,CAAC;QAC5DyB,8BAA8B,EAAE5B,MAAC,CAACc,KAAK,CAACd,MAAC,CAACG,MAAM,CAAC,CAAC,CAAC;QACnD0B,OAAO,EAAE7B,MAAC,CAACc,KAAK,CAACf,kBAAkB;MACrC,CAAC,CACH;IACF,CAAC,CAAC;IACF+B,iBAAiB,EAAE9B,MAAC,CAACC,MAAM,CAAC;MAC1B8B,iBAAiB,EAAE/B,MAAC,CAACG,MAAM,CAAC,CAAC;MAC7B6B,YAAY,EAAEhC,MAAC,CAACG,MAAM,CAAC,CAAC;MACxB8B,UAAU,EAAEjC,MAAC,CAACG,MAAM,CAAC,CAAC;MACtB+B,OAAO,EAAElC,MAAC,CAACG,MAAM,CAAC,CAAC;MACnBgC,QAAQ,EAAEnC,MAAC,CAACG,MAAM,CAAC;IACrB,CAAC;EACH,CAAC;AACH,CAAC,CAAC;AAACO,OAAA,CAAAC,4BAAA,GAAAA,4BAAA"}
@@ -231,7 +231,7 @@ export class Issuing {
231
231
  *
232
232
  */
233
233
  async getEntityConfiguration() {
234
- const metadataUrl = new URL(".well-known/openid-federation", this.pidProviderBaseUrl).href;
234
+ const metadataUrl = new URL("ci/.well-known/openid-federation", this.pidProviderBaseUrl).href;
235
235
  const response = await this.appFetch(metadataUrl);
236
236
  if (response.status === 200) {
237
237
  const jwtMetadata = await response.text();
@@ -1 +1 @@
1
- {"version":3,"names":["decode","decodeJwt","verify","verifyJwt","sha256ToBase64","SignJWT","thumbprint","JWK","uuid","PidIssuingError","PidMetadataError","getUnsignedDPop","sign","generate","deleteKey","PidIssuerEntityConfiguration","Issuing","constructor","pidProviderBaseUrl","walletProviderBaseUrl","walletInstanceAttestation","clientId","appFetch","arguments","length","undefined","fetch","state","v4","codeVerifier","authorizationCode","getUnsignedJwtForPar","jwk","parsedJwk","parse","keyThumbprint","publicKey","kid","codeChallenge","unsignedJwtForPar","client_assertion_type","authorization_details","credentialDefinition","type","format","response_type","code_challenge_method","redirect_uri","client_id","code_challenge","setProtectedHeader","alg","setIssuedAt","setExpirationTime","toSign","getPar","signature","signedJwtForPar","appendSignature","parUrl","URL","href","requestBody","client_assertion","request","formBody","URLSearchParams","response","method","headers","body","toString","status","result","json","request_uri","text","getUnsignedDPoP","tokenUrl","dPop","htm","htu","jti","getAuthToken","dPopKeyTag","dPopKey","unsignedDPopForToken","dPopTokenSignature","signedDPop","decodedJwtDPop","payload","grant_type","code","code_verifier","DPoP","getUnsignedNonceProof","nonce","unsignedProof","setAudience","setIssuer","getCredential","unsignedDPopForPid","dPopPidSignature","unsignedNonceProof","nonceProofSignature","accessToken","cieData","signedDPopForPid","signedNonceProof","credentialUrl","credential_definition","JSON","stringify","proof","jwt","proof_type","Authorization","getEntityConfiguration","metadataUrl","jwtMetadata","safeParse","success","parsedMetadata","data","jwks","keys","error","message"],"sourceRoot":"../../../src","sources":["pid/issuing.ts"],"mappings":"AAAA,SACEA,MAAM,IAAIC,SAAS,EACnBC,MAAM,IAAIC,SAAS,EACnBC,cAAc,QACT,6BAA6B;AAEpC,SAASC,OAAO,EAAEC,UAAU,QAAQ,6BAA6B;AACjE,SAASC,GAAG,QAAQ,cAAc;AAClC,OAAOC,IAAI,MAAM,mBAAmB;AACpC,SAASC,eAAe,EAAEC,gBAAgB,QAAQ,iBAAiB;AACnE,SAASC,eAAe,QAAQ,eAAe;AAC/C,SAASC,IAAI,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,gCAAgC;AAC1E,SAASC,4BAA4B,QAAQ,YAAY;;AAEzD;;AAgBA,OAAO,MAAMC,OAAO,CAAC;EAUnBC,WAAW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AACK,MAAM,KAAK,GAAG,EAAE;MAC3B,OAAO,MAAML,QAAQ,CAACO,IAAI,CAAC,CAAC;IAC9B;IAEA,MAAM,IAAIjE,eAAe,CAAE,8BAA6B,CAAC;EAC3D;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,MAAM4G,sBAAsBA,CAAA,EAA0C;IACpE,MAAMC,WAAW,GAAG,IAAI1D,GAAG,CACzB,+BAA+B,EAC/B,IAAI,CAAC1C,kBACP,CAAC,CAAC2C,IAAI;IAEN,MAAMM,QAAQ,GAAG,MAAM,IAAI,CAAC7C,QAAQ,CAACgG,WAAW,CAAC;IAEjD,IAAInD,QAAQ,CAACK,MAAM,KAAK,GAAG,EAAE;MAC3B,MAAM+C,WAAW,GAAG,MAAMpD,QAAQ,CAACS,IAAI,CAAC,CAAC;MACzC,MAAM;QAAEc;MAAQ,CAAC,GAAGzF,SAAS,CAACsH,WAAW,CAAC;MAC1C,MAAM9C,MAAM,GAAG1D,4BAA4B,CAACyG,SAAS,CAAC9B,OAAO,CAAC;MAC9D,IAAIjB,MAAM,CAACgD,OAAO,EAAE;QAClB,MAAMC,cAAc,GAAGjD,MAAM,CAACkD,IAAI;QAClC,MAAMxH,SAAS,CAACoH,WAAW,EAAEG,cAAc,CAACE,IAAI,CAACC,IAAI,CAAC;QACtD,OAAOH,cAAc;MACvB,CAAC,MAAM;QACL,MAAM,IAAIhH,gBAAgB,CAAC+D,MAAM,CAACqD,KAAK,CAACC,OAAO,CAAC;MAClD;IACF;IAEA,MAAM,IAAIrH,gBAAgB,CACvB,4CAA2C,MAAMyD,QAAQ,CAACS,IAAI,CAAC,CAAE,iBAChET,QAAQ,CAACK,MACV,EACH,CAAC;EACH;AACF"}
1
+ {"version":3,"names":["decode","decodeJwt","verify","verifyJwt","sha256ToBase64","SignJWT","thumbprint","JWK","uuid","PidIssuingError","PidMetadataError","getUnsignedDPop","sign","generate","deleteKey","PidIssuerEntityConfiguration","Issuing","constructor","pidProviderBaseUrl","walletProviderBaseUrl","walletInstanceAttestation","clientId","appFetch","arguments","length","undefined","fetch","state","v4","codeVerifier","authorizationCode","getUnsignedJwtForPar","jwk","parsedJwk","parse","keyThumbprint","publicKey","kid","codeChallenge","unsignedJwtForPar","client_assertion_type","authorization_details","credentialDefinition","type","format","response_type","code_challenge_method","redirect_uri","client_id","code_challenge","setProtectedHeader","alg","setIssuedAt","setExpirationTime","toSign","getPar","signature","signedJwtForPar","appendSignature","parUrl","URL","href","requestBody","client_assertion","request","formBody","URLSearchParams","response","method","headers","body","toString","status","result","json","request_uri","text","getUnsignedDPoP","tokenUrl","dPop","htm","htu","jti","getAuthToken","dPopKeyTag","dPopKey","unsignedDPopForToken","dPopTokenSignature","signedDPop","decodedJwtDPop","payload","grant_type","code","code_verifier","DPoP","getUnsignedNonceProof","nonce","unsignedProof","setAudience","setIssuer","getCredential","unsignedDPopForPid","dPopPidSignature","unsignedNonceProof","nonceProofSignature","accessToken","cieData","signedDPopForPid","signedNonceProof","credentialUrl","credential_definition","JSON","stringify","proof","jwt","proof_type","Authorization","getEntityConfiguration","metadataUrl","jwtMetadata","safeParse","success","parsedMetadata","data","jwks","keys","error","message"],"sourceRoot":"../../../src","sources":["pid/issuing.ts"],"mappings":"AAAA,SACEA,MAAM,IAAIC,SAAS,EACnBC,MAAM,IAAIC,SAAS,EACnBC,cAAc,QACT,6BAA6B;AAEpC,SAASC,OAAO,EAAEC,UAAU,QAAQ,6BAA6B;AACjE,SAASC,GAAG,QAAQ,cAAc;AAClC,OAAOC,IAAI,MAAM,mBAAmB;AACpC,SAASC,eAAe,EAAEC,gBAAgB,QAAQ,iBAAiB;AACnE,SAASC,eAAe,QAAQ,eAAe;AAC/C,SAASC,IAAI,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,gCAAgC;AAC1E,SAASC,4BAA4B,QAAQ,YAAY;;AAEzD;;AAgBA,OAAO,MAAMC,OAAO,CAAC;EAUnBC,WAAWA,CACTC,kBAA0B,EAC1BC,qBAA6B,EAC7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AO,MAAML,QAAQ,CAACO,IAAI,CAAC,CAAC;IAC9B;IAEA,MAAM,IAAIjE,eAAe,CAAE,8BAA6B,CAAC;EAC3D;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACE,MAAM4G,sBAAsBA,CAAA,EAA0C;IACpE,MAAMC,WAAW,GAAG,IAAI1D,GAAG,CACzB,kCAAkC,EAClC,IAAI,CAAC1C,kBACP,CAAC,CAAC2C,IAAI;IAEN,MAAMM,QAAQ,GAAG,MAAM,IAAI,CAAC7C,QAAQ,CAACgG,WAAW,CAAC;IAEjD,IAAInD,QAAQ,CAACK,MAAM,KAAK,GAAG,EAAE;MAC3B,MAAM+C,WAAW,GAAG,MAAMpD,QAAQ,CAACS,IAAI,CAAC,CAAC;MACzC,MAAM;QAAEc;MAAQ,CAAC,GAAGzF,SAAS,CAACsH,WAAW,CAAC;MAC1C,MAAM9C,MAAM,GAAG1D,4BAA4B,CAACyG,SAAS,CAAC9B,OAAO,CAAC;MAC9D,IAAIjB,MAAM,CAACgD,OAAO,EAAE;QAClB,MAAMC,cAAc,GAAGjD,MAAM,CAACkD,IAAI;QAClC,MAAMxH,SAAS,CAACoH,WAAW,EAAEG,cAAc,CAACE,IAAI,CAACC,IAAI,CAAC;QACtD,OAAOH,cAAc;MACvB,CAAC,MAAM;QACL,MAAM,IAAIhH,gBAAgB,CAAC+D,MAAM,CAACqD,KAAK,CAACC,OAAO,CAAC;MAClD;IACF;IAEA,MAAM,IAAIrH,gBAAgB,CACvB,4CAA2C,MAAMyD,QAAQ,CAACS,IAAI,CAAC,CAAE,iBAChET,QAAQ,CAACK,MACV,EACH,CAAC;EACH;AACF"}
@@ -22,14 +22,12 @@ export const PidIssuerEntityConfiguration = z.object({
22
22
  pushed_authorization_request_endpoint: z.string(),
23
23
  dpop_signing_alg_values_supported: z.array(z.string()),
24
24
  credential_endpoint: z.string(),
25
- credentials_supported: z.object({
26
- "eu.eudiw.pid.it": z.object({
27
- format: z.literal("vc+sd-jwt"),
28
- cryptographic_binding_methods_supported: z.array(z.string()),
29
- cryptographic_suites_supported: z.array(z.string()),
30
- display: z.array(PidDisplayMetadata)
31
- })
32
- })
25
+ credentials_supported: z.array(z.object({
26
+ format: z.literal("vc+sd-jwt"),
27
+ cryptographic_binding_methods_supported: z.array(z.string()),
28
+ cryptographic_suites_supported: z.array(z.string()),
29
+ display: z.array(PidDisplayMetadata)
30
+ }))
33
31
  }),
34
32
  federation_entity: z.object({
35
33
  organization_name: z.string(),
@@ -1 +1 @@
1
- {"version":3,"names":["JWK","z","PidDisplayMetadata","object","name","string","locale","logo","url","alt_text","background_color","text_color","PidIssuerEntityConfiguration","jwks","keys","array","metadata","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","format","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","display","federation_entity","organization_name","homepage_uri","policy_uri","tos_uri","logo_uri"],"sourceRoot":"../../../src","sources":["pid/metadata.ts"],"mappings":"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,SAASC,CAAC,QAAQ,KAAK;AAGvB,OAAO,MAAMC,kBAAkB,GAAGD,CAAC,CAACE,MAAM,CAAC;EACzCC,IAAI,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EAChBC,MAAM,EAAEL,CAAC,CAACI,MAAM,CAAC,CAAC;EAClBE,IAAI,EAAEN,CAAC,CAACE,MAAM,CAAC;IACbK,GAAG,EAAEP,CAAC,CAACI,MAAM,CAAC,CAAC;IACfI,QAAQ,EAAER,CAAC,CAACI,MAAM,CAAC;EACrB,CAAC,CAAC;EACFK,gBAAgB,EAAET,CAAC,CAACI,MAAM,CAAC,CAAC;EAC5BM,UAAU,EAAEV,CAAC,CAACI,MAAM,CAAC;AACvB,CAAC,CAAC;AAKF,OAAO,MAAMO,4BAA4B,GAAGX,CAAC,CAACE,MAAM,CAAC;EACnDU,IAAI,EAAEZ,CAAC,CAACE,MAAM,C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AAElC,CAAC,CAACI,MAAM,CAAC;IACrB,CAAC;EACH,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"names":["JWK","z","PidDisplayMetadata","object","name","string","locale","logo","url","alt_text","background_color","text_color","PidIssuerEntityConfiguration","jwks","keys","array","metadata","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","format","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","display","federation_entity","organization_name","homepage_uri","policy_uri","tos_uri","logo_uri"],"sourceRoot":"../../../src","sources":["pid/metadata.ts"],"mappings":"AAAA,SAASA,GAAG,QAAQ,cAAc;AAClC,SAASC,CAAC,QAAQ,KAAK;AAGvB,OAAO,MAAMC,kBAAkB,GAAGD,CAAC,CAACE,MAAM,CAAC;EACzCC,IAAI,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EAChBC,MAAM,EAAEL,CAAC,CAACI,MAAM,CAAC,CAAC;EAClBE,IAAI,EAAEN,CAAC,CAACE,MAAM,CAAC;IACbK,GAAG,EAAEP,CAAC,CAACI,MAAM,CAAC,CAAC;IACfI,QAAQ,EAAER,CAAC,CAACI,MAAM,CAAC;EACrB,CAAC,CAAC;EACFK,gBAAgB,EAAET,CAAC,CAACI,MAAM,CAAC,CAAC;EAC5BM,UAAU,EAAEV,CAAC,CAACI,MAAM,CAAC;AACvB,CAAC,CAAC;AAKF,OAAO,MAAMO,4BAA4B,GAAGX,CAAC,CAACE,MAAM,CAAC;EACnDU,IAAI,EAAEZ,CAAC,CAACE,MAAM,CAAC;IAAEW,IAAI,EAAEb,CAAC,CAACc,KAAK,CAACf,GAAG;EAAE,CAAC,CAAC;EACtCgB,QAAQ,EAAEf,CAAC,CAACE,MAAM,CAAC;IACjBc,wBAAwB,EAAEhB,CAAC,CAACE,MAAM,CAAC;MACjCe,iBAAiB,EAAEjB,CAAC,CAACI,MAAM,CAAC,CAAC;MAC7Bc,sBAAsB,EAAElB,CAAC,CAACI,MAAM,CAAC,CAAC;MAClCe,cAAc,EAAEnB,CAAC,CAACI,MAAM,CAAC,CAAC;MAC1BgB,qCAAqC,EAAEpB,CAAC,CAACI,MAAM,CAAC,CAAC;MACjDiB,iCAAiC,EAAErB,CAAC,CAACc,KAAK,CAACd,CAAC,CAACI,MAAM,CAAC,CAAC,CAAC;MACtDkB,mBAAmB,EAAEtB,CAAC,CAACI,MAAM,CAAC,CAAC;MAC/BmB,qBAAqB,EAAEvB,CAAC,CAACc,KAAK,CAC5Bd,CAAC,CAACE,MAAM,CAAC;QACPsB,MAAM,EAAExB,CAAC,CAACyB,OAAO,CAAC,WAAW,CAAC;QAC9BC,uCAAuC,EAAE1B,CAAC,CAACc,KAAK,CAACd,CAAC,CAACI,MAAM,CAAC,CAAC,CAAC;QAC5DuB,8BAA8B,EAAE3B,CAAC,CAACc,KAAK,CAACd,CAAC,CAACI,MAAM,CAAC,CAAC,CAAC;QACnDwB,OAAO,EAAE5B,CAAC,CAACc,KAAK,CAACb,kBAAkB;MACrC,CAAC,CACH;IACF,CAAC,CAAC;IACF4B,iBAAiB,EAAE7B,CAAC,CAACE,MAAM,CAAC;MAC1B4B,iBAAiB,EAAE9B,CAAC,CAACI,MAAM,CAAC,CAAC;MAC7B2B,YAAY,EAAE/B,CAAC,CAACI,MAAM,CAAC,CAAC;MACxB4B,UAAU,EAAEhC,CAAC,CAACI,MAAM,CAAC,CAAC;MACtB6B,OAAO,EAAEjC,CAAC,CAACI,MAAM,CAAC,CAAC;MACnB8B,QAAQ,EAAElC,CAAC,CAACI,MAAM,CAAC;IACrB,CAAC;EACH,CAAC;AACH,CAAC,CAAC"}
@@ -166,107 +166,73 @@ export declare const PidIssuerEntityConfiguration: z.ZodObject<{
166
166
  pushed_authorization_request_endpoint: z.ZodString;
167
167
  dpop_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
168
168
  credential_endpoint: z.ZodString;
169
- credentials_supported: z.ZodObject<{
170
- "eu.eudiw.pid.it": z.ZodObject<{
171
- format: z.ZodLiteral<"vc+sd-jwt">;
172
- cryptographic_binding_methods_supported: z.ZodArray<z.ZodString, "many">;
173
- cryptographic_suites_supported: z.ZodArray<z.ZodString, "many">;
174
- display: z.ZodArray<z.ZodObject<{
175
- name: z.ZodString;
176
- locale: z.ZodString;
177
- logo: z.ZodObject<{
178
- url: z.ZodString;
179
- alt_text: z.ZodString;
180
- }, "strip", z.ZodTypeAny, {
181
- url: string;
182
- alt_text: string;
183
- }, {
184
- url: string;
185
- alt_text: string;
186
- }>;
187
- background_color: z.ZodString;
188
- text_color: z.ZodString;
169
+ credentials_supported: z.ZodArray<z.ZodObject<{
170
+ format: z.ZodLiteral<"vc+sd-jwt">;
171
+ cryptographic_binding_methods_supported: z.ZodArray<z.ZodString, "many">;
172
+ cryptographic_suites_supported: z.ZodArray<z.ZodString, "many">;
173
+ display: z.ZodArray<z.ZodObject<{
174
+ name: z.ZodString;
175
+ locale: z.ZodString;
176
+ logo: z.ZodObject<{
177
+ url: z.ZodString;
178
+ alt_text: z.ZodString;
189
179
  }, "strip", z.ZodTypeAny, {
190
- name: string;
191
- locale: string;
192
- logo: {
193
- url: string;
194
- alt_text: string;
195
- };
196
- background_color: string;
197
- text_color: string;
180
+ url: string;
181
+ alt_text: string;
198
182
  }, {
199
- name: string;
200
- locale: string;
201
- logo: {
202
- url: string;
203
- alt_text: string;
204
- };
205
- background_color: string;
206
- text_color: string;
207
- }>, "many">;
183
+ url: string;
184
+ alt_text: string;
185
+ }>;
186
+ background_color: z.ZodString;
187
+ text_color: z.ZodString;
208
188
  }, "strip", z.ZodTypeAny, {
209
- format: "vc+sd-jwt";
210
- cryptographic_binding_methods_supported: string[];
211
- cryptographic_suites_supported: string[];
212
- display: {
213
- name: string;
214
- locale: string;
215
- logo: {
216
- url: string;
217
- alt_text: string;
218
- };
219
- background_color: string;
220
- text_color: string;
221
- }[];
189
+ name: string;
190
+ locale: string;
191
+ logo: {
192
+ url: string;
193
+ alt_text: string;
194
+ };
195
+ background_color: string;
196
+ text_color: string;
222
197
  }, {
223
- format: "vc+sd-jwt";
224
- cryptographic_binding_methods_supported: string[];
225
- cryptographic_suites_supported: string[];
226
- display: {
227
- name: string;
228
- locale: string;
229
- logo: {
230
- url: string;
231
- alt_text: string;
232
- };
233
- background_color: string;
234
- text_color: string;
235
- }[];
236
- }>;
198
+ name: string;
199
+ locale: string;
200
+ logo: {
201
+ url: string;
202
+ alt_text: string;
203
+ };
204
+ background_color: string;
205
+ text_color: string;
206
+ }>, "many">;
237
207
  }, "strip", z.ZodTypeAny, {
238
- "eu.eudiw.pid.it": {
239
- format: "vc+sd-jwt";
240
- cryptographic_binding_methods_supported: string[];
241
- cryptographic_suites_supported: string[];
242
- display: {
243
- name: string;
244
- locale: string;
245
- logo: {
246
- url: string;
247
- alt_text: string;
248
- };
249
- background_color: string;
250
- text_color: string;
251
- }[];
252
- };
208
+ format: "vc+sd-jwt";
209
+ cryptographic_binding_methods_supported: string[];
210
+ cryptographic_suites_supported: string[];
211
+ display: {
212
+ name: string;
213
+ locale: string;
214
+ logo: {
215
+ url: string;
216
+ alt_text: string;
217
+ };
218
+ background_color: string;
219
+ text_color: string;
220
+ }[];
253
221
  }, {
254
- "eu.eudiw.pid.it": {
255
- format: "vc+sd-jwt";
256
- cryptographic_binding_methods_supported: string[];
257
- cryptographic_suites_supported: string[];
258
- display: {
259
- name: string;
260
- locale: string;
261
- logo: {
262
- url: string;
263
- alt_text: string;
264
- };
265
- background_color: string;
266
- text_color: string;
267
- }[];
268
- };
269
- }>;
222
+ format: "vc+sd-jwt";
223
+ cryptographic_binding_methods_supported: string[];
224
+ cryptographic_suites_supported: string[];
225
+ display: {
226
+ name: string;
227
+ locale: string;
228
+ logo: {
229
+ url: string;
230
+ alt_text: string;
231
+ };
232
+ background_color: string;
233
+ text_color: string;
234
+ }[];
235
+ }>, "many">;
270
236
  }, "strip", z.ZodTypeAny, {
271
237
  credential_issuer: string;
272
238
  authorization_endpoint: string;
@@ -275,22 +241,20 @@ export declare const PidIssuerEntityConfiguration: z.ZodObject<{
275
241
  dpop_signing_alg_values_supported: string[];
276
242
  credential_endpoint: string;
277
243
  credentials_supported: {
278
- "eu.eudiw.pid.it": {
279
- format: "vc+sd-jwt";
280
- cryptographic_binding_methods_supported: string[];
281
- cryptographic_suites_supported: string[];
282
- display: {
283
- name: string;
284
- locale: string;
285
- logo: {
286
- url: string;
287
- alt_text: string;
288
- };
289
- background_color: string;
290
- text_color: string;
291
- }[];
292
- };
293
- };
244
+ format: "vc+sd-jwt";
245
+ cryptographic_binding_methods_supported: string[];
246
+ cryptographic_suites_supported: string[];
247
+ display: {
248
+ name: string;
249
+ locale: string;
250
+ logo: {
251
+ url: string;
252
+ alt_text: string;
253
+ };
254
+ background_color: string;
255
+ text_color: string;
256
+ }[];
257
+ }[];
294
258
  }, {
295
259
  credential_issuer: string;
296
260
  authorization_endpoint: string;
@@ -299,22 +263,20 @@ export declare const PidIssuerEntityConfiguration: z.ZodObject<{
299
263
  dpop_signing_alg_values_supported: string[];
300
264
  credential_endpoint: string;
301
265
  credentials_supported: {
302
- "eu.eudiw.pid.it": {
303
- format: "vc+sd-jwt";
304
- cryptographic_binding_methods_supported: string[];
305
- cryptographic_suites_supported: string[];
306
- display: {
307
- name: string;
308
- locale: string;
309
- logo: {
310
- url: string;
311
- alt_text: string;
312
- };
313
- background_color: string;
314
- text_color: string;
315
- }[];
316
- };
317
- };
266
+ format: "vc+sd-jwt";
267
+ cryptographic_binding_methods_supported: string[];
268
+ cryptographic_suites_supported: string[];
269
+ display: {
270
+ name: string;
271
+ locale: string;
272
+ logo: {
273
+ url: string;
274
+ alt_text: string;
275
+ };
276
+ background_color: string;
277
+ text_color: string;
278
+ }[];
279
+ }[];
318
280
  }>;
319
281
  federation_entity: z.ZodObject<{
320
282
  organization_name: z.ZodString;
@@ -344,22 +306,20 @@ export declare const PidIssuerEntityConfiguration: z.ZodObject<{
344
306
  dpop_signing_alg_values_supported: string[];
345
307
  credential_endpoint: string;
346
308
  credentials_supported: {
347
- "eu.eudiw.pid.it": {
348
- format: "vc+sd-jwt";
349
- cryptographic_binding_methods_supported: string[];
350
- cryptographic_suites_supported: string[];
351
- display: {
352
- name: string;
353
- locale: string;
354
- logo: {
355
- url: string;
356
- alt_text: string;
357
- };
358
- background_color: string;
359
- text_color: string;
360
- }[];
361
- };
362
- };
309
+ format: "vc+sd-jwt";
310
+ cryptographic_binding_methods_supported: string[];
311
+ cryptographic_suites_supported: string[];
312
+ display: {
313
+ name: string;
314
+ locale: string;
315
+ logo: {
316
+ url: string;
317
+ alt_text: string;
318
+ };
319
+ background_color: string;
320
+ text_color: string;
321
+ }[];
322
+ }[];
363
323
  };
364
324
  federation_entity: {
365
325
  organization_name: string;
@@ -377,22 +337,20 @@ export declare const PidIssuerEntityConfiguration: z.ZodObject<{
377
337
  dpop_signing_alg_values_supported: string[];
378
338
  credential_endpoint: string;
379
339
  credentials_supported: {
380
- "eu.eudiw.pid.it": {
381
- format: "vc+sd-jwt";
382
- cryptographic_binding_methods_supported: string[];
383
- cryptographic_suites_supported: string[];
384
- display: {
385
- name: string;
386
- locale: string;
387
- logo: {
388
- url: string;
389
- alt_text: string;
390
- };
391
- background_color: string;
392
- text_color: string;
393
- }[];
394
- };
395
- };
340
+ format: "vc+sd-jwt";
341
+ cryptographic_binding_methods_supported: string[];
342
+ cryptographic_suites_supported: string[];
343
+ display: {
344
+ name: string;
345
+ locale: string;
346
+ logo: {
347
+ url: string;
348
+ alt_text: string;
349
+ };
350
+ background_color: string;
351
+ text_color: string;
352
+ }[];
353
+ }[];
396
354
  };
397
355
  federation_entity: {
398
356
  organization_name: string;
@@ -438,22 +396,20 @@ export declare const PidIssuerEntityConfiguration: z.ZodObject<{
438
396
  dpop_signing_alg_values_supported: string[];
439
397
  credential_endpoint: string;
440
398
  credentials_supported: {
441
- "eu.eudiw.pid.it": {
442
- format: "vc+sd-jwt";
443
- cryptographic_binding_methods_supported: string[];
444
- cryptographic_suites_supported: string[];
445
- display: {
446
- name: string;
447
- locale: string;
448
- logo: {
449
- url: string;
450
- alt_text: string;
451
- };
452
- background_color: string;
453
- text_color: string;
454
- }[];
455
- };
456
- };
399
+ format: "vc+sd-jwt";
400
+ cryptographic_binding_methods_supported: string[];
401
+ cryptographic_suites_supported: string[];
402
+ display: {
403
+ name: string;
404
+ locale: string;
405
+ logo: {
406
+ url: string;
407
+ alt_text: string;
408
+ };
409
+ background_color: string;
410
+ text_color: string;
411
+ }[];
412
+ }[];
457
413
  };
458
414
  federation_entity: {
459
415
  organization_name: string;
@@ -499,22 +455,20 @@ export declare const PidIssuerEntityConfiguration: z.ZodObject<{
499
455
  dpop_signing_alg_values_supported: string[];
500
456
  credential_endpoint: string;
501
457
  credentials_supported: {
502
- "eu.eudiw.pid.it": {
503
- format: "vc+sd-jwt";
504
- cryptographic_binding_methods_supported: string[];
505
- cryptographic_suites_supported: string[];
506
- display: {
507
- name: string;
508
- locale: string;
509
- logo: {
510
- url: string;
511
- alt_text: string;
512
- };
513
- background_color: string;
514
- text_color: string;
515
- }[];
516
- };
517
- };
458
+ format: "vc+sd-jwt";
459
+ cryptographic_binding_methods_supported: string[];
460
+ cryptographic_suites_supported: string[];
461
+ display: {
462
+ name: string;
463
+ locale: string;
464
+ logo: {
465
+ url: string;
466
+ alt_text: string;
467
+ };
468
+ background_color: string;
469
+ text_color: string;
470
+ }[];
471
+ }[];
518
472
  };
519
473
  federation_entity: {
520
474
  organization_name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/pid/metadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEH,MAAM,MAAM,4B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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BvC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pagopa/io-react-native-wallet",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Provide data structures, helpers and API for IO Wallet",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -314,7 +314,7 @@ export class Issuing {
314
314
  */
315
315
  async getEntityConfiguration(): Promise<PidIssuerEntityConfiguration> {
316
316
  const metadataUrl = new URL(
317
- ".well-known/openid-federation",
317
+ "ci/.well-known/openid-federation",
318
318
  this.pidProviderBaseUrl
319
319
  ).href;
320
320
 
@@ -26,14 +26,14 @@ export const PidIssuerEntityConfiguration = z.object({
26
26
  pushed_authorization_request_endpoint: z.string(),
27
27
  dpop_signing_alg_values_supported: z.array(z.string()),
28
28
  credential_endpoint: z.string(),
29
- credentials_supported: z.object({
30
- "eu.eudiw.pid.it": z.object({
29
+ credentials_supported: z.array(
30
+ z.object({
31
31
  format: z.literal("vc+sd-jwt"),
32
32
  cryptographic_binding_methods_supported: z.array(z.string()),
33
33
  cryptographic_suites_supported: z.array(z.string()),
34
34
  display: z.array(PidDisplayMetadata),
35
- }),
36
- }),
35
+ })
36
+ ),
37
37
  }),
38
38
  federation_entity: z.object({
39
39
  organization_name: z.string(),