File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use League \OAuth2 \Server \Exception \OAuthServerException ;
88use Pdsinterop \Solid \Auth \Entity \User ;
99use Pdsinterop \Solid \Auth \Enum \OpenId \OpenIdConnectMetadata as OidcMeta ;
10+ use Pdsinterop \Solid \Auth \Utils \Jwks ;
1011use Psr \Http \Message \ResponseInterface as Response ;
1112use Psr \Http \Message \ServerRequestInterface as Request ;
1213
@@ -54,6 +55,16 @@ final public function respondToWellKnownRequest() : Response
5455 return $ this ->createJsonResponse ($ response , $ serverConfig );
5556 }
5657
58+ final public function respondToJwksRequest (/*Jwks $jwks*/ ) : Response
59+ {
60+ $ response = $ this ->response ;
61+ $ key = $ this ->config ->getKeys ()->getPublicKey ();
62+
63+ $ jwks = new Jwks ($ key );
64+
65+ return $ this ->createJsonResponse ($ response , $ jwks );
66+ }
67+
5768 final public function respondToAuthorizationRequest (
5869 Request $ request ,
5970 User $ user = null ,
You can’t perform that action at this time.
0 commit comments