@bedrock/vc-delivery 4.1.0 → 4.1.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/lib/openId.js +6 -0
- package/package.json +1 -1
package/lib/openId.js
CHANGED
|
@@ -614,9 +614,15 @@ async function _getAuthorizationRequest({req}) {
|
|
|
614
614
|
} = step.openId || {};
|
|
615
615
|
if(client_id) {
|
|
616
616
|
authorizationRequest.client_id = client_id;
|
|
617
|
+
} else {
|
|
618
|
+
authorizationRequest.client_id =
|
|
619
|
+
`${exchanger.id}/exchanges/${exchange.id}` +
|
|
620
|
+
'/openid/client/authorization/response';
|
|
617
621
|
}
|
|
618
622
|
if(client_id_scheme) {
|
|
619
623
|
authorizationRequest.client_id_scheme = client_id_scheme;
|
|
624
|
+
} else if(authorizationRequest.client_id_scheme === undefined) {
|
|
625
|
+
authorizationRequest.client_id_scheme = 'redirect_uri';
|
|
620
626
|
}
|
|
621
627
|
if(client_metadata) {
|
|
622
628
|
authorizationRequest.client_metadata = klona(client_metadata);
|