File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,19 @@ public function __construct(
3636 */
3737 public function __invoke (): JsonResponse
3838 {
39+ $ federationPublicKeys = $ this ->moduleConfig ->getFederationEnabled ()
40+ ? $ this ->moduleConfig ->getFederationSignatureKeyPairBag ()->getAllPublicKeys ()
41+ : [];
42+
43+ $ vciPublicKeys = $ this ->moduleConfig ->getVciEnabled ()
44+ ? $ this ->moduleConfig ->getVciSignatureKeyPairBag ()->getAllPublicKeys ()
45+ : [];
46+
3947 return new JsonResponse (
4048 $ this ->jwks ->jwksDecoratorFactory ()->fromJwkDecorators (
4149 ...$ this ->moduleConfig ->getProtocolSignatureKeyPairBag ()->getAllPublicKeys (),
42- ...$ this -> moduleConfig -> getFederationSignatureKeyPairBag ()-> getAllPublicKeys () ,
43- ...$ this -> moduleConfig -> getVciSignatureKeyPairBag ()-> getAllPublicKeys () ,
50+ ...$ federationPublicKeys ,
51+ ...$ vciPublicKeys ,
4452 )->jsonSerialize (),
4553 );
4654 }
You can’t perform that action at this time.
0 commit comments