@@ -68,31 +68,31 @@ public function __invoke(): Response
6868 $ trustChain = $ this ->federation
6969 ->trustChainResolver ()
7070 ->for (
71- // 'https://08-dap.localhost.markoivancic.from.hr/openid/entities/ALeaf/',
71+ 'https://08-dap.localhost.markoivancic.from.hr/openid/entities/ALeaf/ ' ,
7272// 'https://trust-anchor.testbed.oidcfed.incubator.geant.org/oidc/rp/',
7373// 'https://relying-party-php.testbed.oidcfed.incubator.geant.org/',
74- 'https://gorp.testbed.oidcfed.incubator.geant.org ' ,
74+ // 'https://gorp.testbed.oidcfed.incubator.geant.org',
7575// 'https://maiv1.incubator.geant.org',
7676 [
77- 'https://trust-anchor.testbed.oidcfed.incubator.geant.org/ ' ,
78- // 'https://08-dap.localhost.markoivancic.from.hr/openid/entities/ABTrustAnchor/',
77+ // 'https://trust-anchor.testbed.oidcfed.incubator.geant.org/',
78+ 'https://08-dap.localhost.markoivancic.from.hr/openid/entities/ABTrustAnchor/ ' ,
7979// 'https://08-dap.localhost.markoivancic.from.hr/openid/entities/CTrustAnchor/',
8080 ],
8181 );
8282
8383 $ leaf = $ trustChain ->getResolvedLeaf ();
84- dd ($ leaf );
85- // $leafFederationJwks = $leaf->getJwks();
84+ // dd($leaf);
85+ $ leafFederationJwks = $ leaf ->getJwks ();
8686// dd($leafFederationJwks);
87- /** @psalm-suppress PossiblyNullArgument */
88- // $resolvedMetadata = $trustChain->getResolvedMetadata(EntityTypesEnum::OpenIdRelyingParty);
89- // $clientEntity = $this->clientEntityFactory->fromRegistrationData(
90- // $resolvedMetadata,
91- // RegistrationTypeEnum::FederatedAutomatic,
92- // );
87+ // /** @psalm-suppress PossiblyNullArgument */
88+ $ resolvedMetadata = $ trustChain ->getResolvedMetadata (EntityTypesEnum::OpenIdRelyingParty);
89+ $ clientEntity = $ this ->clientEntityFactory ->fromRegistrationData (
90+ $ resolvedMetadata ,
91+ RegistrationTypeEnum::FederatedAutomatic,
92+ );
9393// dd($resolvedMetadata, $clientEntity);
94- // $jwksUri = $resolvedMetadata['jwks_uri'] ?? null;
95- // $signedJwksUri = $resolvedMetadata['signed_jwks_uri'] ?? null;
94+ $ jwksUri = $ resolvedMetadata ['jwks_uri ' ] ?? null ;
95+ $ signedJwksUri = $ resolvedMetadata ['signed_jwks_uri ' ] ?? null ;
9696// dd($leaf, $leafFederationJwks, $resolvedMetadata, $jwksUri, $signedJwksUri);
9797// $cachedJwks = $jwksUri ? $this->jwks->jwksFetcher()->fromCache($jwksUri) : null;
9898// $jwks = $jwksUri ? $this->jwks->jwksFetcher()->fromJwksUri($jwksUri) : null;
@@ -112,10 +112,10 @@ public function __invoke(): Response
112112// ],
113113//];
114114// $signedJwksUri = 'https://08-dap.localhost.markoivancic.from.hr/openid/entities/ALeaf/signed-jwks';
115- // $signedJwks = $signedJwksUri ? $this->jwks->jwksFetcher()
116- // ->fromSignedJwksUri($signedJwksUri, $leafFederationJwks) : null;
117- // $cachedSignedJwks = $signedJwksUri ? $this->jwks->jwksFetcher()->fromCache($signedJwksUri) : null;
118- // dd($signedJwksUri, $cachedSignedJwks, $signedJwks);
115+ $ signedJwks = $ signedJwksUri ? $ this ->jwks ->jwksFetcher ()
116+ ->fromSignedJwksUri ($ signedJwksUri , $ leafFederationJwks ) : null ;
117+ $ cachedSignedJwks = $ signedJwksUri ? $ this ->jwks ->jwksFetcher ()->fromCache ($ signedJwksUri ) : null ;
118+ dd ($ signedJwksUri , $ cachedSignedJwks , $ signedJwks );
119119// dd(
120120// $signedJwksUri,
121121// $cachedSignedJwks,
0 commit comments