@pagopa/io-react-native-wallet 0.10.0 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/commonjs/trust/types.js +2 -2
- package/lib/commonjs/trust/types.js.map +1 -1
- package/lib/commonjs/utils/par.js +2 -2
- package/lib/commonjs/utils/par.js.map +1 -1
- package/lib/module/trust/types.js +2 -2
- package/lib/module/trust/types.js.map +1 -1
- package/lib/module/utils/par.js +2 -2
- package/lib/module/utils/par.js.map +1 -1
- package/lib/typescript/trust/index.d.ts +2 -2
- package/lib/typescript/trust/types.d.ts +22 -22
- package/lib/typescript/utils/par.d.ts +7 -7
- package/package.json +2 -2
- package/src/trust/types.ts +2 -2
- package/src/utils/par.ts +2 -2
@@ -52,7 +52,7 @@ const CredentialDefinitionMetadata = z.object({
|
|
52
52
|
|
53
53
|
const SupportedCredentialMetadata = z.object({
|
54
54
|
id: z.string(),
|
55
|
-
format: z.literal("vc+sd-jwt"),
|
55
|
+
format: z.union([z.literal("vc+sd-jwt"), z.literal("vc+mdoc-cbor")]),
|
56
56
|
cryptographic_binding_methods_supported: z.array(z.string()),
|
57
57
|
cryptographic_suites_supported: z.array(z.string()),
|
58
58
|
display: z.array(CredentialDisplayMetadata),
|
@@ -141,7 +141,7 @@ const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(z.object
|
|
141
141
|
keys: z.array(_jwk.JWK)
|
142
142
|
})
|
143
143
|
}),
|
144
|
-
/** Credential Issuers act as Relying Party
|
144
|
+
/** Credential Issuers act as Relying Party
|
145
145
|
when they require the presentation of other credentials.
|
146
146
|
This does not apply for PID issuance, which requires CIE authz. */
|
147
147
|
wallet_relying_party: RelyingPartyMetadata.optional()
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_types","require","_jwk","z","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","TrustMark","object","id","string","trust_mark","exports","RelyingPartyMetadata","application_type","optional","client_id","client_name","jwks","keys","array","JWK","contacts","CredentialDisplayMetadata","name","locale","logo","url","alt_text","background_color","text_color","CredentialDefinitionMetadata","type","credentialSubject","record","mandatory","boolean","display","SupportedCredentialMetadata","format","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","credential_definition","EntityStatement","header","typ","alg","kid","payload","iss","sub","trust_marks","iat","number","exp","EntityConfigurationHeader","FederationEntityMetadata","federation_fetch_endpoint","federation_list_endpoint","federation_resolve_endpoint","federation_trust_mark_status_endpoint","federation_trust_mark_list_endpoint","organization_name","homepage_uri","policy_uri","logo_uri","passthrough","BaseEntityConfiguration","UnixTime","metadata","federation_entity","authority_hints","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","and","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","wallet_relying_party","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_provider","attested_security_context_values_supported","grant_types_supported","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","EntityConfiguration","
|
1
|
+
{"version":3,"names":["_types","require","_jwk","z","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","TrustMark","object","id","string","trust_mark","exports","RelyingPartyMetadata","application_type","optional","client_id","client_name","jwks","keys","array","JWK","contacts","CredentialDisplayMetadata","name","locale","logo","url","alt_text","background_color","text_color","CredentialDefinitionMetadata","type","credentialSubject","record","mandatory","boolean","display","SupportedCredentialMetadata","format","union","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","credential_definition","EntityStatement","header","typ","alg","kid","payload","iss","sub","trust_marks","iat","number","exp","EntityConfigurationHeader","FederationEntityMetadata","federation_fetch_endpoint","federation_list_endpoint","federation_resolve_endpoint","federation_trust_mark_status_endpoint","federation_trust_mark_list_endpoint","organization_name","homepage_uri","policy_uri","logo_uri","passthrough","BaseEntityConfiguration","UnixTime","metadata","federation_entity","authority_hints","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","and","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","wallet_relying_party","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_provider","attested_security_context_values_supported","grant_types_supported","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","EntityConfiguration","description"],"sourceRoot":"../../../src","sources":["trust/types.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,CAAA,GAAAC,uBAAA,CAAAH,OAAA;AAAyB,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAF,wBAAAM,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAA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qC,KAAK,CAACrC,CAAC,CAAC2B,MAAM,CAAC,CAAC,CAAC;QAC1CiF,qCAAqC,EAAE5G,CAAC,CAACqC,KAAK,CAACrC,CAAC,CAAC2B,MAAM,CAAC,CAAC,CAAC;QAC1DkF,gDAAgD,EAAE7G,CAAC,CAACqC,KAAK,CACvDrC,CAAC,CAAC2B,MAAM,CAAC,CACX,CAAC;QACDQ,IAAI,EAAEnC,CAAC,CAACyB,MAAM,CAAC;UAAEW,IAAI,EAAEpC,CAAC,CAACqC,KAAK,CAACC,QAAG;QAAE,CAAC;MACvC,CAAC,CAAC,CACD+C,WAAW,CAAC;IACjB,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;AAAAxD,OAAA,CAAA2E,iCAAA,GAAAA,iCAAA;AAEO,MAAMM,mBAAmB,GAAG9G,CAAC,CAACyD,KAAK,CACxC,CACE+C,iCAAiC,EACjCZ,mCAAmC,EACnCD,8BAA8B,EAC9BY,+BAA+B,CAChC,EACD;EACEQ,WAAW,EAAE;AACf,CACF,CAAC;AAAClF,OAAA,CAAAiF,mBAAA,GAAAA,mBAAA"}
|
@@ -16,7 +16,7 @@ const AuthorizationDetail = z.object({
|
|
16
16
|
credential_definition: z.object({
|
17
17
|
type: z.string()
|
18
18
|
}),
|
19
|
-
format: z.literal("vc+sd-jwt"),
|
19
|
+
format: z.union([z.literal("vc+sd-jwt"), z.literal("vc+mdoc-cbor")]),
|
20
20
|
type: z.literal("openid_credential")
|
21
21
|
});
|
22
22
|
exports.AuthorizationDetail = AuthorizationDetail;
|
@@ -37,7 +37,7 @@ const makeParRequest = _ref => {
|
|
37
37
|
const aud = `${parUrl.protocol}//${parUrl.hostname}`;
|
38
38
|
const iss = WalletInstanceAttestation.decode(walletInstanceAttestation).payload.cnf.jwk.kid;
|
39
39
|
|
40
|
-
/** A code challenge is provided so that the PAR is bound
|
40
|
+
/** A code challenge is provided so that the PAR is bound
|
41
41
|
to the subsequent authorization code request
|
42
42
|
@see https://datatracker.ietf.org/doc/html/rfc9126#name-request */
|
43
43
|
const codeChallengeMethod = "s256";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_ioReactNativeJwt","require","_reactNativeUuid","_interopRequireDefault","z","_interopRequireWildcard","WalletInstanceAttestation","_misc","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","AuthorizationDetail","object","credential_definition","type","string","format","literal","exports","AuthorizationDetails","array","makeParRequest","_ref","wiaCryptoContext","appFetch","fetch","clientId","codeVerifier","walletProviderBaseUrl","parEndpoint","walletInstanceAttestation","authorizationDetails","assertionType","wiaPublicKey","getPublicKey","parUrl","URL","aud","protocol","hostname","iss","decode","payload","cnf","jwk","kid","codeChallengeMethod","codeChallenge","sha256ToBase64","signedJwtForPar","SignJWT","setProtectedHeader","setPayload","jti","uuid","v4","client_assertion_type","authorization_details","response_type","redirect_uri","state","client_id","code_challenge_method","code_challenge","setIssuedAt","setExpirationTime","sign","formBody","URLSearchParams","client_assertion","request","method","headers","body","toString","then","hasStatus","res","json","result","request_uri"],"sourceRoot":"../../../src","sources":["utils/par.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAKA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAD,uBAAA,CAAAJ,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAAmC,SAAAO,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ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"names":["_ioReactNativeJwt","require","_reactNativeUuid","_interopRequireDefault","z","_interopRequireWildcard","WalletInstanceAttestation","_misc","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","AuthorizationDetail","object","credential_definition","type","string","format","union","literal","exports","AuthorizationDetails","array","makeParRequest","_ref","wiaCryptoContext","appFetch","fetch","clientId","codeVerifier","walletProviderBaseUrl","parEndpoint","walletInstanceAttestation","authorizationDetails","assertionType","wiaPublicKey","getPublicKey","parUrl","URL","aud","protocol","hostname","iss","decode","payload","cnf","jwk","kid","codeChallengeMethod","codeChallenge","sha256ToBase64","signedJwtForPar","SignJWT","setProtectedHeader","setPayload","jti","uuid","v4","client_assertion_type","authorization_details","response_type","redirect_uri","state","client_id","code_challenge_method","code_challenge","setIssuedAt","setExpirationTime","sign","formBody","URLSearchParams","client_assertion","request","method","headers","body","toString","then","hasStatus","res","json","result","request_uri"],"sourceRoot":"../../../src","sources":["utils/par.ts"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAKA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAC,uBAAA,CAAAJ,OAAA;AACA,IAAAK,yBAAA,GAAAD,uBAAA,CAAAJ,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAAmC,SAAAO,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAJ,wBAAAQ,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,o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B;MAC3C2B,aAAa,EAAE,MAAM;MACrBC,YAAY,EAAE/B,qBAAqB;MACnCgC,KAAK,EAAG,GAAEN,wBAAI,CAACC,EAAE,CAAC,CAAE,EAAC;MACrBM,SAAS,EAAEnC,QAAQ;MACnBoC,qBAAqB,EAAEhB,mBAAmB;MAC1CiB,cAAc,EAAEhB;IAClB,CAAC,CAAC,CACDiB,WAAW,CAAC,CAAC,CACbC,iBAAiB,CAAC,IAAI,CAAC,CACvBC,IAAI,CAAC,CAAC;;IAET;IACA,IAAIC,QAAQ,GAAG,IAAIC,eAAe,CAAC;MACjCV,aAAa,EAAE,MAAM;MACrBG,SAAS,EAAEnC,QAAQ;MACnBqC,cAAc,EAAEhB,aAAa;MAC7Be,qBAAqB,EAAE,MAAM;MAC7BN,qBAAqB,EAAExB,aAAa;MACpCqC,gBAAgB,EAAEvC,yBAAyB;MAC3CwC,OAAO,EAAErB;IACX,CAAC,CAAC;IAEF,OAAO,MAAMzB,QAAQ,CAACK,WAAW,EAAE;MACjC0C,MAAM,EAAE,MAAM;MACdC,OAAO,EAAE;QACP,cAAc,EAAE;MAClB,CAAC;MACDC,IAAI,EAAEN,QAAQ,CAACO,QAAQ,CAAC;IAC1B,CAAC,CAAC,CACCC,IAAI,CAAC,IAAAC,eAAS,EAAC,GAAG,CAAC,CAAC,CACpBD,IAAI,CAAEE,GAAG,IAAKA,GAAG,CAACC,IAAI,CAAC,CAAC,CAAC,CACzBH,IAAI,CAAEI,MAAM,IAAKA,MAAM,CAACC,WAAW,CAAC;EACzC,CAAC;AAAA;AAAC9D,OAAA,CAAAG,cAAA,GAAAA,cAAA"}
|
@@ -43,7 +43,7 @@ const CredentialDefinitionMetadata = z.object({
|
|
43
43
|
|
44
44
|
const SupportedCredentialMetadata = z.object({
|
45
45
|
id: z.string(),
|
46
|
-
format: z.literal("vc+sd-jwt"),
|
46
|
+
format: z.union([z.literal("vc+sd-jwt"), z.literal("vc+mdoc-cbor")]),
|
47
47
|
cryptographic_binding_methods_supported: z.array(z.string()),
|
48
48
|
cryptographic_suites_supported: z.array(z.string()),
|
49
49
|
display: z.array(CredentialDisplayMetadata),
|
@@ -130,7 +130,7 @@ export const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(z
|
|
130
130
|
keys: z.array(JWK)
|
131
131
|
})
|
132
132
|
}),
|
133
|
-
/** Credential Issuers act as Relying Party
|
133
|
+
/** Credential Issuers act as Relying Party
|
134
134
|
when they require the presentation of other credentials.
|
135
135
|
This does not apply for PID issuance, which requires CIE authz. */
|
136
136
|
wallet_relying_party: RelyingPartyMetadata.optional()
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["UnixTime","JWK","z","TrustMark","object","id","string","trust_mark","RelyingPartyMetadata","application_type","optional","client_id","client_name","jwks","keys","array","contacts","CredentialDisplayMetadata","name","locale","logo","url","alt_text","background_color","text_color","CredentialDefinitionMetadata","type","credentialSubject","record","mandatory","boolean","display","SupportedCredentialMetadata","format","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","credential_definition","EntityStatement","header","typ","alg","kid","payload","iss","sub","trust_marks","iat","number","exp","EntityConfigurationHeader","FederationEntityMetadata","federation_fetch_endpoint","federation_list_endpoint","federation_resolve_endpoint","federation_trust_mark_status_endpoint","federation_trust_mark_list_endpoint","organization_name","homepage_uri","policy_uri","logo_uri","passthrough","BaseEntityConfiguration","metadata","federation_entity","authority_hints","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","and","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","wallet_relying_party","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_provider","attested_security_context_values_supported","grant_types_supported","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","EntityConfiguration","
|
1
|
+
{"version":3,"names":["UnixTime","JWK","z","TrustMark","object","id","string","trust_mark","RelyingPartyMetadata","application_type","optional","client_id","client_name","jwks","keys","array","contacts","CredentialDisplayMetadata","name","locale","logo","url","alt_text","background_color","text_color","CredentialDefinitionMetadata","type","credentialSubject","record","mandatory","boolean","display","SupportedCredentialMetadata","format","union","literal","cryptographic_binding_methods_supported","cryptographic_suites_supported","credential_definition","EntityStatement","header","typ","alg","kid","payload","iss","sub","trust_marks","iat","number","exp","EntityConfigurationHeader","FederationEntityMetadata","federation_fetch_endpoint","federation_list_endpoint","federation_resolve_endpoint","federation_trust_mark_status_endpoint","federation_trust_mark_list_endpoint","organization_name","homepage_uri","policy_uri","logo_uri","passthrough","BaseEntityConfiguration","metadata","federation_entity","authority_hints","TrustAnchorEntityConfiguration","CredentialIssuerEntityConfiguration","and","openid_credential_issuer","credential_issuer","authorization_endpoint","token_endpoint","pushed_authorization_request_endpoint","dpop_signing_alg_values_supported","credential_endpoint","credentials_supported","wallet_relying_party","RelyingPartyEntityConfiguration","WalletProviderEntityConfiguration","wallet_provider","attested_security_context_values_supported","grant_types_supported","token_endpoint_auth_methods_supported","token_endpoint_auth_signing_alg_values_supported","EntityConfiguration","description"],"sourceRoot":"../../../src","sources":["trust/types.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,GAAG,QAAQ,cAAc;AAClC,OAAO,KAAKC,CAAC,MAAM,KAAK;AAExB,OAAO,MAAMC,SAAS,GAAGD,CAAC,CAACE,MAAM,CAAC;EAAEC,EAAE,EAAEH,CAAC,CAACI,MAAM,CAAC,CAAC;EAAEC,UAAU,EAAEL,CAAC,CAACI,MAAM,CAAC;AAAE,CAAC,CAAC;AAG7E,MAAME,oBAAoB,GAAGN,CAAC,CAACE,MAAM,CAAC;EACpCK,gBAAgB,EAAEP,CAAC,CAACI,MAAM,CAAC,CAAC,CAACI,QAAQ,CAAC,CAAC;EACvCC,SAAS,EAAET,CAAC,CAACI,MAAM,CAAC,CAAC,CAACI,QAAQ,CAAC,CAAC;EAChCE,WAAW,EAAEV,CAAC,CAACI,MAAM,CAAC,CAAC,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C8E,qCAAqC,EAAElF,CAAC,CAACa,KAAK,CAACb,CAAC,CAACI,MAAM,CAAC,CAAC,CAAC;QAC1D+E,gDAAgD,EAAEnF,CAAC,CAACa,KAAK,CACvDb,CAAC,CAACI,MAAM,CAAC,CACX,CAAC;QACDO,IAAI,EAAEX,CAAC,CAACE,MAAM,CAAC;UAAEU,IAAI,EAAEZ,CAAC,CAACa,KAAK,CAACd,GAAG;QAAE,CAAC;MACvC,CAAC,CAAC,CACD6D,WAAW,CAAC;IACjB,CAAC;EACH,CAAC;AACH,CAAC,CACH,CAAC;;AAED;;AAEA,OAAO,MAAMwB,mBAAmB,GAAGpF,CAAC,CAACgC,KAAK,CACxC,CACE8C,iCAAiC,EACjCZ,mCAAmC,EACnCD,8BAA8B,EAC9BY,+BAA+B,CAChC,EACD;EACEQ,WAAW,EAAE;AACf,CACF,CAAC"}
|
package/lib/module/utils/par.js
CHANGED
@@ -7,7 +7,7 @@ export const AuthorizationDetail = z.object({
|
|
7
7
|
credential_definition: z.object({
|
8
8
|
type: z.string()
|
9
9
|
}),
|
10
|
-
format: z.literal("vc+sd-jwt"),
|
10
|
+
format: z.union([z.literal("vc+sd-jwt"), z.literal("vc+mdoc-cbor")]),
|
11
11
|
type: z.literal("openid_credential")
|
12
12
|
});
|
13
13
|
export const AuthorizationDetails = z.array(AuthorizationDetail);
|
@@ -26,7 +26,7 @@ export const makeParRequest = _ref => {
|
|
26
26
|
const aud = `${parUrl.protocol}//${parUrl.hostname}`;
|
27
27
|
const iss = WalletInstanceAttestation.decode(walletInstanceAttestation).payload.cnf.jwk.kid;
|
28
28
|
|
29
|
-
/** A code challenge is provided so that the PAR is bound
|
29
|
+
/** A code challenge is provided so that the PAR is bound
|
30
30
|
to the subsequent authorization code request
|
31
31
|
@see https://datatracker.ietf.org/doc/html/rfc9126#name-request */
|
32
32
|
const codeChallengeMethod = "s256";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["sha256ToBase64","SignJWT","uuid","z","WalletInstanceAttestation","hasStatus","AuthorizationDetail","object","credential_definition","type","string","format","literal","AuthorizationDetails","array","makeParRequest","_ref","wiaCryptoContext","appFetch","fetch","clientId","codeVerifier","walletProviderBaseUrl","parEndpoint","walletInstanceAttestation","authorizationDetails","assertionType","wiaPublicKey","getPublicKey","parUrl","URL","aud","protocol","hostname","iss","decode","payload","cnf","jwk","kid","codeChallengeMethod","codeChallenge","signedJwtForPar","setProtectedHeader","setPayload","jti","v4","client_assertion_type","authorization_details","response_type","redirect_uri","state","client_id","code_challenge_method","code_challenge","setIssuedAt","setExpirationTime","sign","formBody","URLSearchParams","client_assertion","request","method","headers","body","toString","then","res","json","result","request_uri"],"sourceRoot":"../../../src","sources":["utils/par.ts"],"mappings":"AAAA,SACEA,cAAc,EAEdC,OAAO,QACF,6BAA6B;AACpC,OAAOC,IAAI,MAAM,mBAAmB;AACpC,OAAO,KAAKC,CAAC,MAAM,KAAK;AACxB,OAAO,KAAKC,yBAAyB,MAAM,gCAAgC;AAC3E,SAASC,SAAS,QAAQ,QAAQ;AAGlC,OAAO,MAAMC,mBAAmB,GAAGH,CAAC,CAACI,MAAM,CAAC;EAC1CC,qBAAqB,EAAEL,CAAC,CAACI,MAAM,CAAC;IAC9BE,IAAI,EAAEN,CAAC,CAACO,MAAM,CAAC;EACjB,CAAC,CAAC;EACFC,MAAM,EAAER,CAAC,CAACS,OAAO,CAAC,WAAW,CAAC;
|
1
|
+
{"version":3,"names":["sha256ToBase64","SignJWT","uuid","z","WalletInstanceAttestation","hasStatus","AuthorizationDetail","object","credential_definition","type","string","format","union","literal","AuthorizationDetails","array","makeParRequest","_ref","wiaCryptoContext","appFetch","fetch","clientId","codeVerifier","walletProviderBaseUrl","parEndpoint","walletInstanceAttestation","authorizationDetails","assertionType","wiaPublicKey","getPublicKey","parUrl","URL","aud","protocol","hostname","iss","decode","payload","cnf","jwk","kid","codeChallengeMethod","codeChallenge","signedJwtForPar","setProtectedHeader","setPayload","jti","v4","client_assertion_type","authorization_details","response_type","redirect_uri","state","client_id","code_challenge_method","code_challenge","setIssuedAt","setExpirationTime","sign","formBody","URLSearchParams","client_assertion","request","method","headers","body","toString","then","res","json","result","request_uri"],"sourceRoot":"../../../src","sources":["utils/par.ts"],"mappings":"AAAA,SACEA,cAAc,EAEdC,OAAO,QACF,6BAA6B;AACpC,OAAOC,IAAI,MAAM,mBAAmB;AACpC,OAAO,KAAKC,CAAC,MAAM,KAAK;AACxB,OAAO,KAAKC,yBAAyB,MAAM,gCAAgC;AAC3E,SAASC,SAAS,QAAQ,QAAQ;AAGlC,OAAO,MAAMC,mBAAmB,GAAGH,CAAC,CAACI,MAAM,CAAC;EAC1CC,qBAAqB,EAAEL,CAAC,CAACI,MAAM,CAAC;IAC9BE,IAAI,EAAEN,CAAC,CAACO,MAAM,CAAC;EACjB,CAAC,CAAC;EACFC,MAAM,EAAER,CAAC,CAACS,KAAK,CAAC,CAACT,CAAC,CAACU,OAAO,CAAC,WAAW,CAAC,EAAEV,CAAC,CAACU,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;EACpEJ,IAAI,EAAEN,CAAC,CAACU,OAAO,CAAC,mBAAmB;AACrC,CAAC,CAAC;AAGF,OAAO,MAAMC,oBAAoB,GAAGX,CAAC,CAACY,KAAK,CAACT,mBAAmB,CAAC;;AAEhE;AACA;AACA;AACA,OAAO,MAAMU,cAAc,GACzBC,IAAA;EAAA,IAAC;IACCC,gBAAgB;IAChBC,QAAQ,GAAGC;EAIb,CAAC,GAAAH,IAAA;EAAA,OACD,OACEI,QAAgB,EAChBC,YAAoB,EACpBC,qBAA6B,EAC7BC,WAAmB,EACnBC,yBAAiC,EACjCC,oBAA0C,EAC1CC,aAAqB,KACD;IACpB,MAAMC,YAAY,GAAG,MAAMV,gBAAgB,CAACW,YAAY,CAAC,CAAC;IAE1D,MAAMC,MAAM,GAAG,IAAIC,GAAG,CAACP,WAAW,CAAC;IACnC,MAAMQ,GAAG,GAAI,GAAEF,MAAM,CAACG,QAAS,KAAI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,MAAM;MACdC,OAAO,EAAE;QACP,cAAc,EAAE;MAClB,CAAC;MACDC,IAAI,EAAEN,QAAQ,CAACO,QAAQ,CAAC;IAC1B,CAAC,CAAC,CACCC,IAAI,CAAC9D,SAAS,CAAC,GAAG,CAAC,CAAC,CACpB8D,IAAI,CAAEC,GAAG,IAAKA,GAAG,CAACC,IAAI,CAAC,CAAC,CAAC,CACzBF,IAAI,CAAEG,MAAM,IAAKA,MAAM,CAACC,WAAW,CAAC;EACzC,CAAC;AAAA"}
|
@@ -291,7 +291,7 @@ export declare const getCredentialIssuerEntityConfiguration: (entityBaseUrl: Par
|
|
291
291
|
background_color: string;
|
292
292
|
text_color: string;
|
293
293
|
}[];
|
294
|
-
format: "vc+sd-jwt";
|
294
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
295
295
|
cryptographic_binding_methods_supported: string[];
|
296
296
|
cryptographic_suites_supported: string[];
|
297
297
|
credential_definition: {
|
@@ -690,7 +690,7 @@ export declare const getEntityConfiguration: (entityBaseUrl: Parameters<typeof f
|
|
690
690
|
background_color: string;
|
691
691
|
text_color: string;
|
692
692
|
}[];
|
693
|
-
format: "vc+sd-jwt";
|
693
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
694
694
|
cryptographic_binding_methods_supported: string[];
|
695
695
|
cryptographic_suites_supported: string[];
|
696
696
|
credential_definition: {
|
@@ -2139,7 +2139,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2139
2139
|
credential_endpoint: z.ZodString;
|
2140
2140
|
credentials_supported: z.ZodArray<z.ZodObject<{
|
2141
2141
|
id: z.ZodString;
|
2142
|
-
format: z.ZodLiteral<"vc+sd-jwt">;
|
2142
|
+
format: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"vc+mdoc-cbor">]>;
|
2143
2143
|
cryptographic_binding_methods_supported: z.ZodArray<z.ZodString, "many">;
|
2144
2144
|
cryptographic_suites_supported: z.ZodArray<z.ZodString, "many">;
|
2145
2145
|
display: z.ZodArray<z.ZodObject<{
|
@@ -2234,7 +2234,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2234
2234
|
background_color: string;
|
2235
2235
|
text_color: string;
|
2236
2236
|
}[];
|
2237
|
-
format: "vc+sd-jwt";
|
2237
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
2238
2238
|
cryptographic_binding_methods_supported: string[];
|
2239
2239
|
cryptographic_suites_supported: string[];
|
2240
2240
|
credential_definition: {
|
@@ -2259,7 +2259,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2259
2259
|
background_color: string;
|
2260
2260
|
text_color: string;
|
2261
2261
|
}[];
|
2262
|
-
format: "vc+sd-jwt";
|
2262
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
2263
2263
|
cryptographic_binding_methods_supported: string[];
|
2264
2264
|
cryptographic_suites_supported: string[];
|
2265
2265
|
credential_definition: {
|
@@ -2440,7 +2440,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2440
2440
|
background_color: string;
|
2441
2441
|
text_color: string;
|
2442
2442
|
}[];
|
2443
|
-
format: "vc+sd-jwt";
|
2443
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
2444
2444
|
cryptographic_binding_methods_supported: string[];
|
2445
2445
|
cryptographic_suites_supported: string[];
|
2446
2446
|
credential_definition: {
|
@@ -2499,7 +2499,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2499
2499
|
background_color: string;
|
2500
2500
|
text_color: string;
|
2501
2501
|
}[];
|
2502
|
-
format: "vc+sd-jwt";
|
2502
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
2503
2503
|
cryptographic_binding_methods_supported: string[];
|
2504
2504
|
cryptographic_suites_supported: string[];
|
2505
2505
|
credential_definition: {
|
@@ -2753,7 +2753,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2753
2753
|
background_color: string;
|
2754
2754
|
text_color: string;
|
2755
2755
|
}[];
|
2756
|
-
format: "vc+sd-jwt";
|
2756
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
2757
2757
|
cryptographic_binding_methods_supported: string[];
|
2758
2758
|
cryptographic_suites_supported: string[];
|
2759
2759
|
credential_definition: {
|
@@ -2846,7 +2846,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2846
2846
|
background_color: string;
|
2847
2847
|
text_color: string;
|
2848
2848
|
}[];
|
2849
|
-
format: "vc+sd-jwt";
|
2849
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
2850
2850
|
cryptographic_binding_methods_supported: string[];
|
2851
2851
|
cryptographic_suites_supported: string[];
|
2852
2852
|
credential_definition: {
|
@@ -2967,7 +2967,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
2967
2967
|
background_color: string;
|
2968
2968
|
text_color: string;
|
2969
2969
|
}[];
|
2970
|
-
format: "vc+sd-jwt";
|
2970
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
2971
2971
|
cryptographic_binding_methods_supported: string[];
|
2972
2972
|
cryptographic_suites_supported: string[];
|
2973
2973
|
credential_definition: {
|
@@ -3088,7 +3088,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
3088
3088
|
background_color: string;
|
3089
3089
|
text_color: string;
|
3090
3090
|
}[];
|
3091
|
-
format: "vc+sd-jwt";
|
3091
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
3092
3092
|
cryptographic_binding_methods_supported: string[];
|
3093
3093
|
cryptographic_suites_supported: string[];
|
3094
3094
|
credential_definition: {
|
@@ -3211,7 +3211,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
3211
3211
|
background_color: string;
|
3212
3212
|
text_color: string;
|
3213
3213
|
}[];
|
3214
|
-
format: "vc+sd-jwt";
|
3214
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
3215
3215
|
cryptographic_binding_methods_supported: string[];
|
3216
3216
|
cryptographic_suites_supported: string[];
|
3217
3217
|
credential_definition: {
|
@@ -3334,7 +3334,7 @@ export declare const CredentialIssuerEntityConfiguration: z.ZodIntersection<z.Zo
|
|
3334
3334
|
background_color: string;
|
3335
3335
|
text_color: string;
|
3336
3336
|
}[];
|
3337
|
-
format: "vc+sd-jwt";
|
3337
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
3338
3338
|
cryptographic_binding_methods_supported: string[];
|
3339
3339
|
cryptographic_suites_supported: string[];
|
3340
3340
|
credential_definition: {
|
@@ -8504,7 +8504,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
8504
8504
|
credential_endpoint: z.ZodString;
|
8505
8505
|
credentials_supported: z.ZodArray<z.ZodObject<{
|
8506
8506
|
id: z.ZodString;
|
8507
|
-
format: z.ZodLiteral<"vc+sd-jwt">;
|
8507
|
+
format: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"vc+mdoc-cbor">]>;
|
8508
8508
|
cryptographic_binding_methods_supported: z.ZodArray<z.ZodString, "many">;
|
8509
8509
|
cryptographic_suites_supported: z.ZodArray<z.ZodString, "many">;
|
8510
8510
|
display: z.ZodArray<z.ZodObject<{
|
@@ -8599,7 +8599,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
8599
8599
|
background_color: string;
|
8600
8600
|
text_color: string;
|
8601
8601
|
}[];
|
8602
|
-
format: "vc+sd-jwt";
|
8602
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
8603
8603
|
cryptographic_binding_methods_supported: string[];
|
8604
8604
|
cryptographic_suites_supported: string[];
|
8605
8605
|
credential_definition: {
|
@@ -8624,7 +8624,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
8624
8624
|
background_color: string;
|
8625
8625
|
text_color: string;
|
8626
8626
|
}[];
|
8627
|
-
format: "vc+sd-jwt";
|
8627
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
8628
8628
|
cryptographic_binding_methods_supported: string[];
|
8629
8629
|
cryptographic_suites_supported: string[];
|
8630
8630
|
credential_definition: {
|
@@ -8805,7 +8805,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
8805
8805
|
background_color: string;
|
8806
8806
|
text_color: string;
|
8807
8807
|
}[];
|
8808
|
-
format: "vc+sd-jwt";
|
8808
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
8809
8809
|
cryptographic_binding_methods_supported: string[];
|
8810
8810
|
cryptographic_suites_supported: string[];
|
8811
8811
|
credential_definition: {
|
@@ -8864,7 +8864,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
8864
8864
|
background_color: string;
|
8865
8865
|
text_color: string;
|
8866
8866
|
}[];
|
8867
|
-
format: "vc+sd-jwt";
|
8867
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
8868
8868
|
cryptographic_binding_methods_supported: string[];
|
8869
8869
|
cryptographic_suites_supported: string[];
|
8870
8870
|
credential_definition: {
|
@@ -9118,7 +9118,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
9118
9118
|
background_color: string;
|
9119
9119
|
text_color: string;
|
9120
9120
|
}[];
|
9121
|
-
format: "vc+sd-jwt";
|
9121
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
9122
9122
|
cryptographic_binding_methods_supported: string[];
|
9123
9123
|
cryptographic_suites_supported: string[];
|
9124
9124
|
credential_definition: {
|
@@ -9211,7 +9211,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
9211
9211
|
background_color: string;
|
9212
9212
|
text_color: string;
|
9213
9213
|
}[];
|
9214
|
-
format: "vc+sd-jwt";
|
9214
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
9215
9215
|
cryptographic_binding_methods_supported: string[];
|
9216
9216
|
cryptographic_suites_supported: string[];
|
9217
9217
|
credential_definition: {
|
@@ -9332,7 +9332,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
9332
9332
|
background_color: string;
|
9333
9333
|
text_color: string;
|
9334
9334
|
}[];
|
9335
|
-
format: "vc+sd-jwt";
|
9335
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
9336
9336
|
cryptographic_binding_methods_supported: string[];
|
9337
9337
|
cryptographic_suites_supported: string[];
|
9338
9338
|
credential_definition: {
|
@@ -9453,7 +9453,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
9453
9453
|
background_color: string;
|
9454
9454
|
text_color: string;
|
9455
9455
|
}[];
|
9456
|
-
format: "vc+sd-jwt";
|
9456
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
9457
9457
|
cryptographic_binding_methods_supported: string[];
|
9458
9458
|
cryptographic_suites_supported: string[];
|
9459
9459
|
credential_definition: {
|
@@ -9576,7 +9576,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
9576
9576
|
background_color: string;
|
9577
9577
|
text_color: string;
|
9578
9578
|
}[];
|
9579
|
-
format: "vc+sd-jwt";
|
9579
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
9580
9580
|
cryptographic_binding_methods_supported: string[];
|
9581
9581
|
cryptographic_suites_supported: string[];
|
9582
9582
|
credential_definition: {
|
@@ -9699,7 +9699,7 @@ export declare const EntityConfiguration: z.ZodUnion<[z.ZodIntersection<z.ZodObj
|
|
9699
9699
|
background_color: string;
|
9700
9700
|
text_color: string;
|
9701
9701
|
}[];
|
9702
|
-
format: "vc+sd-jwt";
|
9702
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
9703
9703
|
cryptographic_binding_methods_supported: string[];
|
9704
9704
|
cryptographic_suites_supported: string[];
|
9705
9705
|
credential_definition: {
|
@@ -10,17 +10,17 @@ export declare const AuthorizationDetail: z.ZodObject<{
|
|
10
10
|
}, {
|
11
11
|
type: string;
|
12
12
|
}>;
|
13
|
-
format: z.ZodLiteral<"vc+sd-jwt">;
|
13
|
+
format: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"vc+mdoc-cbor">]>;
|
14
14
|
type: z.ZodLiteral<"openid_credential">;
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
16
16
|
type: "openid_credential";
|
17
|
-
format: "vc+sd-jwt";
|
17
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
18
18
|
credential_definition: {
|
19
19
|
type: string;
|
20
20
|
};
|
21
21
|
}, {
|
22
22
|
type: "openid_credential";
|
23
|
-
format: "vc+sd-jwt";
|
23
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
24
24
|
credential_definition: {
|
25
25
|
type: string;
|
26
26
|
};
|
@@ -34,17 +34,17 @@ export declare const AuthorizationDetails: z.ZodArray<z.ZodObject<{
|
|
34
34
|
}, {
|
35
35
|
type: string;
|
36
36
|
}>;
|
37
|
-
format: z.ZodLiteral<"vc+sd-jwt">;
|
37
|
+
format: z.ZodUnion<[z.ZodLiteral<"vc+sd-jwt">, z.ZodLiteral<"vc+mdoc-cbor">]>;
|
38
38
|
type: z.ZodLiteral<"openid_credential">;
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
40
40
|
type: "openid_credential";
|
41
|
-
format: "vc+sd-jwt";
|
41
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
42
42
|
credential_definition: {
|
43
43
|
type: string;
|
44
44
|
};
|
45
45
|
}, {
|
46
46
|
type: "openid_credential";
|
47
|
-
format: "vc+sd-jwt";
|
47
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
48
48
|
credential_definition: {
|
49
49
|
type: string;
|
50
50
|
};
|
@@ -60,7 +60,7 @@ export declare const makeParRequest: ({ wiaCryptoContext, appFetch, }: {
|
|
60
60
|
} | undefined;
|
61
61
|
}) => (clientId: string, codeVerifier: string, walletProviderBaseUrl: string, parEndpoint: string, walletInstanceAttestation: string, authorizationDetails: {
|
62
62
|
type: "openid_credential";
|
63
|
-
format: "vc+sd-jwt";
|
63
|
+
format: "vc+sd-jwt" | "vc+mdoc-cbor";
|
64
64
|
credential_definition: {
|
65
65
|
type: string;
|
66
66
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pagopa/io-react-native-wallet",
|
3
|
-
"version": "0.10.
|
3
|
+
"version": "0.10.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",
|
@@ -82,7 +82,7 @@
|
|
82
82
|
"engines": {
|
83
83
|
"node": ">= 16.0.0"
|
84
84
|
},
|
85
|
-
"packageManager": "^yarn@1.22.
|
85
|
+
"packageManager": "^yarn@1.22.21",
|
86
86
|
"jest": {
|
87
87
|
"preset": "react-native",
|
88
88
|
"modulePathIgnorePatterns": [
|
package/src/trust/types.ts
CHANGED
@@ -45,7 +45,7 @@ const CredentialDefinitionMetadata = z.object({
|
|
45
45
|
type SupportedCredentialMetadata = z.infer<typeof SupportedCredentialMetadata>;
|
46
46
|
const SupportedCredentialMetadata = z.object({
|
47
47
|
id: z.string(),
|
48
|
-
format: z.literal("vc+sd-jwt"),
|
48
|
+
format: z.union([z.literal("vc+sd-jwt"), z.literal("vc+mdoc-cbor")]),
|
49
49
|
cryptographic_binding_methods_supported: z.array(z.string()),
|
50
50
|
cryptographic_suites_supported: z.array(z.string()),
|
51
51
|
display: z.array(CredentialDisplayMetadata),
|
@@ -143,7 +143,7 @@ export const CredentialIssuerEntityConfiguration = BaseEntityConfiguration.and(
|
|
143
143
|
credentials_supported: z.array(SupportedCredentialMetadata),
|
144
144
|
jwks: z.object({ keys: z.array(JWK) }),
|
145
145
|
}),
|
146
|
-
/** Credential Issuers act as Relying Party
|
146
|
+
/** Credential Issuers act as Relying Party
|
147
147
|
when they require the presentation of other credentials.
|
148
148
|
This does not apply for PID issuance, which requires CIE authz. */
|
149
149
|
wallet_relying_party: RelyingPartyMetadata.optional(),
|
package/src/utils/par.ts
CHANGED
@@ -13,7 +13,7 @@ export const AuthorizationDetail = z.object({
|
|
13
13
|
credential_definition: z.object({
|
14
14
|
type: z.string(),
|
15
15
|
}),
|
16
|
-
format: z.literal("vc+sd-jwt"),
|
16
|
+
format: z.union([z.literal("vc+sd-jwt"), z.literal("vc+mdoc-cbor")]),
|
17
17
|
type: z.literal("openid_credential"),
|
18
18
|
});
|
19
19
|
|
@@ -48,7 +48,7 @@ export const makeParRequest =
|
|
48
48
|
const iss = WalletInstanceAttestation.decode(walletInstanceAttestation)
|
49
49
|
.payload.cnf.jwk.kid;
|
50
50
|
|
51
|
-
/** A code challenge is provided so that the PAR is bound
|
51
|
+
/** A code challenge is provided so that the PAR is bound
|
52
52
|
to the subsequent authorization code request
|
53
53
|
@see https://datatracker.ietf.org/doc/html/rfc9126#name-request */
|
54
54
|
const codeChallengeMethod = "s256";
|