You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Find the maximum version that satisfies all "greater than or equal to" constraints
178
183
constlowestRequiredVersion=
179
-
greaterThanVersions.length>0 ? (Math.max(...greaterThanVersions)asOpenid4vpDraftVersionNumber) : (18asconst)// Default to lowest version
184
+
greaterThanVersions.length>0 ? (Math.max(...greaterThanVersions)asOpenid4vpVersionNumber) : (18asconst)// Default to lowest version
180
185
181
186
// The acceptable range is [lowestRequiredVersion, highestPossibleVersion]
182
187
// We return the lowest possible version that satisfies all constraints
183
188
if(lowestRequiredVersion>highestPossibleVersion){
184
189
// No valid version exists that satisfies all constraints
185
190
thrownewOauth2ServerErrorResponseError({
186
191
error: Oauth2ErrorCodes.InvalidRequest,
187
-
error_description: 'Could not infer openid4vp version from the openid4vp request payload.',
192
+
error_description: `Could not infer openid4vp version from the openid4vp request payload. Based on specification requirements, lowest required version is ${lowestRequiredVersion} and highest possible version is ${highestPossibleVersion}`,
'dcql vp_token must be an object with keys referencing the dcql credential query id, and values a non-empty array of strings and objects, or string, or object',
0 commit comments