@pagopa/io-wallet-oid4vci 1.5.0 → 1.5.2
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.
- package/dist/index.d.mts +94 -44
- package/dist/index.d.ts +94 -44
- package/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1616,19 +1616,14 @@ async function applyFederationAuthorizationServerSelection(fetch, federationResu
|
|
|
1616
1616
|
parsedSelectedAuthorizationServer.data,
|
|
1617
1617
|
verifyJwt4
|
|
1618
1618
|
);
|
|
1619
|
-
|
|
1620
|
-
if (!resolvedAuthorizationServer) {
|
|
1619
|
+
if (!authorizationServerResult) {
|
|
1621
1620
|
throw new ValidationError9(
|
|
1622
|
-
`Federation discovery did not yield
|
|
1621
|
+
`Federation discovery did not yield OpenID Federation metadata for authorization server '${selectedAuthorizationServer}'`
|
|
1623
1622
|
);
|
|
1624
1623
|
}
|
|
1625
1624
|
return {
|
|
1626
1625
|
...federationResult,
|
|
1627
|
-
authorization_server_federation_claims: authorizationServerResult.openid_federation_claims
|
|
1628
|
-
metadata: {
|
|
1629
|
-
...federationResult.metadata,
|
|
1630
|
-
oauth_authorization_server: resolvedAuthorizationServer
|
|
1631
|
-
}
|
|
1626
|
+
authorization_server_federation_claims: authorizationServerResult.openid_federation_claims
|
|
1632
1627
|
};
|
|
1633
1628
|
}
|
|
1634
1629
|
async function fallbackDiscovery(fetch, baseUrl, authorizationServer) {
|