From f40a5b57c0b58f2bb96bc2e040618451ed2412bf Mon Sep 17 00:00:00 2001 From: "N.L.P. van der Meij" Date: Tue, 18 Jun 2024 14:28:35 +0200 Subject: [PATCH] Implementation to use interfaces for actions, so that they may be overridden using Yii2's Dependency Injection --- src/base/Oauth2BaseModule.php | 25 +++++++++++++++++++ .../web/Oauth2CertificatesController.php | 4 +-- .../web/Oauth2ConsentController.php | 4 +-- src/controllers/web/Oauth2OidcController.php | 8 +++--- .../web/Oauth2ServerController.php | 12 ++++----- .../web/Oauth2WellKnownController.php | 4 +-- .../web/certificates/Oauth2JwksAction.php | 3 ++- .../consent/Oauth2AuthorizeClientAction.php | 3 ++- .../Oauth2OidcEndSessionAction.php | 3 ++- .../Oauth2OidcUserinfoAction.php | 3 ++- .../web/server/Oauth2AccessTokenAction.php | 3 ++- .../web/server/Oauth2AuthorizeAction.php | 3 ++- .../web/server/Oauth2RevokeAction.php | 3 ++- .../Oauth2OpenidConfigurationAction.php | 3 ++- .../Oauth2JwksActionInterface.php | 7 ++++++ .../Oauth2AuthorizeClientActionInterface.php | 7 ++++++ .../Oauth2OidcEndSessionActionInterface.php | 7 ++++++ .../Oauth2OidcUserinfoActionInterface.php | 7 ++++++ .../Oauth2AccessTokenActionInterface.php | 7 ++++++ .../server/Oauth2AuthorizeActionInterface.php | 7 ++++++ .../server/Oauth2RevokeActionInterface.php | 7 ++++++ ...uth2OpenidConfigurationActionInterface.php | 7 ++++++ 22 files changed, 113 insertions(+), 24 deletions(-) create mode 100644 src/interfaces/controllers/web/certificates/Oauth2JwksActionInterface.php create mode 100644 src/interfaces/controllers/web/consent/Oauth2AuthorizeClientActionInterface.php create mode 100644 src/interfaces/controllers/web/openidconnect/Oauth2OidcEndSessionActionInterface.php create mode 100644 src/interfaces/controllers/web/openidconnect/Oauth2OidcUserinfoActionInterface.php create mode 100644 src/interfaces/controllers/web/server/Oauth2AccessTokenActionInterface.php create mode 100644 src/interfaces/controllers/web/server/Oauth2AuthorizeActionInterface.php create mode 100644 src/interfaces/controllers/web/server/Oauth2RevokeActionInterface.php create mode 100644 src/interfaces/controllers/web/wellknown/Oauth2OpenidConfigurationActionInterface.php diff --git a/src/base/Oauth2BaseModule.php b/src/base/Oauth2BaseModule.php index 9fd8f0f..53fd122 100644 --- a/src/base/Oauth2BaseModule.php +++ b/src/base/Oauth2BaseModule.php @@ -35,11 +35,19 @@ use rhertogh\Yii2Oauth2Server\components\server\Oauth2AuthorizationServer; use rhertogh\Yii2Oauth2Server\components\server\Oauth2ResourceServer; use rhertogh\Yii2Oauth2Server\components\server\responses\Oauth2BearerTokenResponse; +use rhertogh\Yii2Oauth2Server\controllers\web\certificates\Oauth2JwksAction; +use rhertogh\Yii2Oauth2Server\controllers\web\consent\Oauth2AuthorizeClientAction; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2CertificatesController; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2ConsentController; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2OidcController; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2ServerController; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2WellKnownController; +use rhertogh\Yii2Oauth2Server\controllers\web\openidconnect\Oauth2OidcEndSessionAction; +use rhertogh\Yii2Oauth2Server\controllers\web\openidconnect\Oauth2OidcUserinfoAction; +use rhertogh\Yii2Oauth2Server\controllers\web\server\Oauth2AccessTokenAction; +use rhertogh\Yii2Oauth2Server\controllers\web\server\Oauth2AuthorizeAction; +use rhertogh\Yii2Oauth2Server\controllers\web\server\Oauth2RevokeAction; +use rhertogh\Yii2Oauth2Server\controllers\web\wellknown\Oauth2OpenidConfigurationAction; use rhertogh\Yii2Oauth2Server\interfaces\components\authorization\Oauth2ClientAuthorizationRequestInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\authorization\Oauth2ScopeAuthorizationRequestInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\encryption\Oauth2CryptographerInterface; @@ -70,11 +78,19 @@ use rhertogh\Yii2Oauth2Server\interfaces\components\server\Oauth2AuthorizationServerInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\server\Oauth2ResourceServerInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\server\responses\Oauth2BearerTokenResponseInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\certificates\Oauth2JwksActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\consent\Oauth2AuthorizeClientActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2CertificatesControllerInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2ConsentControllerInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2OidcControllerInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2ServerControllerInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2WellKnownControllerInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\openidconnect\Oauth2OidcEndSessionActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\openidconnect\Oauth2OidcUserinfoActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2AccessTokenActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2AuthorizeActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2RevokeActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\wellknown\Oauth2OpenidConfigurationActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\external\user\Oauth2OidcUserInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\Oauth2AccessTokenInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\Oauth2AccessTokenScopeInterface; @@ -320,6 +336,15 @@ abstract class Oauth2BaseModule extends Module Oauth2WellKnownControllerInterface::class => Oauth2WellKnownController::class, Oauth2CertificatesControllerInterface::class => Oauth2CertificatesController::class, Oauth2OidcControllerInterface::class => Oauth2OidcController::class, + # Actions + Oauth2OpenidConfigurationActionInterface::class => Oauth2OpenidConfigurationAction::class, + Oauth2RevokeActionInterface::class => Oauth2RevokeAction::class, + Oauth2AuthorizeActionInterface::class => Oauth2AuthorizeAction::class, + Oauth2AccessTokenActionInterface::class => Oauth2AccessTokenAction::class, + Oauth2OidcUserinfoActionInterface::class => Oauth2OidcUserinfoAction::class, + Oauth2OidcEndSessionActionInterface::class => Oauth2OidcEndSessionAction::class, + Oauth2AuthorizeClientActionInterface::class => Oauth2AuthorizeClientAction::class, + Oauth2JwksActionInterface::class => Oauth2JwksAction::class, # Components (Server) Oauth2AuthorizationServerInterface::class => Oauth2AuthorizationServer::class, Oauth2ResourceServerInterface::class => Oauth2ResourceServer::class, diff --git a/src/controllers/web/Oauth2CertificatesController.php b/src/controllers/web/Oauth2CertificatesController.php index ea187e8..5107ee5 100644 --- a/src/controllers/web/Oauth2CertificatesController.php +++ b/src/controllers/web/Oauth2CertificatesController.php @@ -3,7 +3,7 @@ namespace rhertogh\Yii2Oauth2Server\controllers\web; use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseApiController; -use rhertogh\Yii2Oauth2Server\controllers\web\certificates\Oauth2JwksAction; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\certificates\Oauth2JwksActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2CertificatesControllerInterface; use yii\filters\VerbFilter; use yii\helpers\ArrayHelper; @@ -31,7 +31,7 @@ public function behaviors() public function actions() { return [ - static::ACTION_NAME_JWKS => Oauth2JwksAction::class, + static::ACTION_NAME_JWKS => Oauth2JwksActionInterface::class, ]; } } diff --git a/src/controllers/web/Oauth2ConsentController.php b/src/controllers/web/Oauth2ConsentController.php index c7a7c50..e396b1c 100644 --- a/src/controllers/web/Oauth2ConsentController.php +++ b/src/controllers/web/Oauth2ConsentController.php @@ -3,7 +3,7 @@ namespace rhertogh\Yii2Oauth2Server\controllers\web; use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseWebController; -use rhertogh\Yii2Oauth2Server\controllers\web\consent\Oauth2AuthorizeClientAction; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\consent\Oauth2AuthorizeClientActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2ConsentControllerInterface; use yii\filters\VerbFilter; @@ -31,7 +31,7 @@ public function actions() { return [ static::ACTION_NAME_AUTHORIZE_CLIENT => [ - 'class' => Oauth2AuthorizeClientAction::class, + 'class' => Oauth2AuthorizeClientActionInterface::class, 'clientAuthorizationView' => $this->module->clientAuthorizationView, ], ]; diff --git a/src/controllers/web/Oauth2OidcController.php b/src/controllers/web/Oauth2OidcController.php index f9b2409..41d0992 100644 --- a/src/controllers/web/Oauth2OidcController.php +++ b/src/controllers/web/Oauth2OidcController.php @@ -3,10 +3,10 @@ namespace rhertogh\Yii2Oauth2Server\controllers\web; use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseApiController; -use rhertogh\Yii2Oauth2Server\controllers\web\openidconnect\Oauth2OidcEndSessionAction; -use rhertogh\Yii2Oauth2Server\controllers\web\openidconnect\Oauth2OidcUserinfoAction; use rhertogh\Yii2Oauth2Server\filters\auth\Oauth2HttpBearerAuth; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2OidcControllerInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\openidconnect\Oauth2OidcEndSessionActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\openidconnect\Oauth2OidcUserinfoActionInterface; use yii\filters\AccessControl; use yii\filters\VerbFilter; use yii\helpers\ArrayHelper; @@ -53,8 +53,8 @@ public function behaviors() public function actions() { return [ - static::ACTION_NAME_USERINFO => Oauth2OidcUserinfoAction::class, - static::ACTION_END_SESSION => Oauth2OidcEndSessionAction::class, + static::ACTION_NAME_USERINFO => Oauth2OidcUserinfoActionInterface::class, + static::ACTION_END_SESSION => Oauth2OidcEndSessionActionInterface::class, ]; } } diff --git a/src/controllers/web/Oauth2ServerController.php b/src/controllers/web/Oauth2ServerController.php index 2306319..032fc21 100644 --- a/src/controllers/web/Oauth2ServerController.php +++ b/src/controllers/web/Oauth2ServerController.php @@ -3,9 +3,9 @@ namespace rhertogh\Yii2Oauth2Server\controllers\web; use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseApiController; -use rhertogh\Yii2Oauth2Server\controllers\web\server\Oauth2AccessTokenAction; -use rhertogh\Yii2Oauth2Server\controllers\web\server\Oauth2AuthorizeAction; -use rhertogh\Yii2Oauth2Server\controllers\web\server\Oauth2RevokeAction; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2AccessTokenActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2AuthorizeActionInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2RevokeActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2ServerControllerInterface; use yii\filters\VerbFilter; use yii\helpers\ArrayHelper; @@ -35,9 +35,9 @@ public function behaviors() public function actions() { return [ - static::ACTION_NAME_ACCESS_TOKEN => Oauth2AccessTokenAction::class, - static::ACTION_NAME_AUTHORIZE => Oauth2AuthorizeAction::class, - static::ACTION_NAME_REVOKE => Oauth2RevokeAction::class, + static::ACTION_NAME_ACCESS_TOKEN => Oauth2AccessTokenActionInterface::class, + static::ACTION_NAME_AUTHORIZE => Oauth2AuthorizeActionInterface::class, + static::ACTION_NAME_REVOKE => Oauth2RevokeActionInterface::class, ]; } } diff --git a/src/controllers/web/Oauth2WellKnownController.php b/src/controllers/web/Oauth2WellKnownController.php index 5a966ba..0c4ee3a 100644 --- a/src/controllers/web/Oauth2WellKnownController.php +++ b/src/controllers/web/Oauth2WellKnownController.php @@ -3,8 +3,8 @@ namespace rhertogh\Yii2Oauth2Server\controllers\web; use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseApiController; -use rhertogh\Yii2Oauth2Server\controllers\web\wellknown\Oauth2OpenidConfigurationAction; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2WellKnownControllerInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\wellknown\Oauth2OpenidConfigurationActionInterface; use yii\filters\VerbFilter; use yii\helpers\ArrayHelper; @@ -31,7 +31,7 @@ public function behaviors() public function actions() { return [ - static::ACTION_NAME_OPENID_CONFIGURATION => Oauth2OpenidConfigurationAction::class, + static::ACTION_NAME_OPENID_CONFIGURATION => Oauth2OpenidConfigurationActionInterface::class, ]; } } diff --git a/src/controllers/web/certificates/Oauth2JwksAction.php b/src/controllers/web/certificates/Oauth2JwksAction.php index 553e792..834b82c 100644 --- a/src/controllers/web/certificates/Oauth2JwksAction.php +++ b/src/controllers/web/certificates/Oauth2JwksAction.php @@ -6,13 +6,14 @@ use Jose\Component\Core\JWKSet; use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseWebAction; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2CertificatesController; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\certificates\Oauth2JwksActionInterface; use yii\base\InvalidConfigException; use yii\helpers\StringHelper; /** * @property Oauth2CertificatesController $controller */ -class Oauth2JwksAction extends Oauth2BaseWebAction +class Oauth2JwksAction extends Oauth2BaseWebAction implements Oauth2JwksActionInterface { /** * RFC7517: JSON Web Key (JWK) diff --git a/src/controllers/web/consent/Oauth2AuthorizeClientAction.php b/src/controllers/web/consent/Oauth2AuthorizeClientAction.php index d6b0ca7..226ac88 100644 --- a/src/controllers/web/consent/Oauth2AuthorizeClientAction.php +++ b/src/controllers/web/consent/Oauth2AuthorizeClientAction.php @@ -5,6 +5,7 @@ use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseWebAction; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2ConsentController; use rhertogh\Yii2Oauth2Server\exceptions\Oauth2ServerHttpException; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\consent\Oauth2AuthorizeClientActionInterface; use Yii; use yii\base\InvalidConfigException; use yii\web\BadRequestHttpException; @@ -14,7 +15,7 @@ /** * @property Oauth2ConsentController $controller */ -class Oauth2AuthorizeClientAction extends Oauth2BaseWebAction +class Oauth2AuthorizeClientAction extends Oauth2BaseWebAction implements Oauth2AuthorizeClientActionInterface { /** * Path to view file for client authorization. diff --git a/src/controllers/web/openidconnect/Oauth2OidcEndSessionAction.php b/src/controllers/web/openidconnect/Oauth2OidcEndSessionAction.php index 6b06861..c3cf08b 100644 --- a/src/controllers/web/openidconnect/Oauth2OidcEndSessionAction.php +++ b/src/controllers/web/openidconnect/Oauth2OidcEndSessionAction.php @@ -14,6 +14,7 @@ use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseWebAction; use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2OidcController; use rhertogh\Yii2Oauth2Server\helpers\UrlHelper; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\openidconnect\Oauth2OidcEndSessionActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\external\user\Oauth2OidcUserInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\Oauth2ClientInterface; use Yii; @@ -26,7 +27,7 @@ /** * @property Oauth2OidcController $controller */ -class Oauth2OidcEndSessionAction extends Oauth2BaseWebAction +class Oauth2OidcEndSessionAction extends Oauth2BaseWebAction implements Oauth2OidcEndSessionActionInterface { /** * @see https://openid.net/specs/openid-connect-rpinitiated-1_0.html diff --git a/src/controllers/web/openidconnect/Oauth2OidcUserinfoAction.php b/src/controllers/web/openidconnect/Oauth2OidcUserinfoAction.php index a26b5a3..8a2d5e2 100644 --- a/src/controllers/web/openidconnect/Oauth2OidcUserinfoAction.php +++ b/src/controllers/web/openidconnect/Oauth2OidcUserinfoAction.php @@ -7,6 +7,7 @@ use rhertogh\Yii2Oauth2Server\interfaces\components\openidconnect\request\Oauth2OidcAuthenticationRequestInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\openidconnect\scope\Oauth2OidcClaimInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\openidconnect\scope\Oauth2OidcScopeInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\openidconnect\Oauth2OidcUserinfoActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\external\user\Oauth2OidcUserInterface; use rhertogh\Yii2Oauth2Server\Oauth2Module; use Yii; @@ -17,7 +18,7 @@ /** * @property Oauth2OidcController $controller */ -class Oauth2OidcUserinfoAction extends Oauth2BaseWebAction +class Oauth2OidcUserinfoAction extends Oauth2BaseWebAction implements Oauth2OidcUserinfoActionInterface { /** * @see https://openid.net/specs/openid-connect-core-1_0.html#UserInfo diff --git a/src/controllers/web/server/Oauth2AccessTokenAction.php b/src/controllers/web/server/Oauth2AccessTokenAction.php index b1d281d..209df06 100644 --- a/src/controllers/web/server/Oauth2AccessTokenAction.php +++ b/src/controllers/web/server/Oauth2AccessTokenAction.php @@ -5,13 +5,14 @@ use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2ServerController; use rhertogh\Yii2Oauth2Server\controllers\web\server\base\Oauth2BaseServerAction; use rhertogh\Yii2Oauth2Server\helpers\Psr7Helper; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2AccessTokenActionInterface; use Yii; use yii\web\HttpException; /** * @property Oauth2ServerController $controller */ -class Oauth2AccessTokenAction extends Oauth2BaseServerAction +class Oauth2AccessTokenAction extends Oauth2BaseServerAction implements Oauth2AccessTokenActionInterface { /** * @throws HttpException diff --git a/src/controllers/web/server/Oauth2AuthorizeAction.php b/src/controllers/web/server/Oauth2AuthorizeAction.php index f51e319..96d1284 100644 --- a/src/controllers/web/server/Oauth2AuthorizeAction.php +++ b/src/controllers/web/server/Oauth2AuthorizeAction.php @@ -12,6 +12,7 @@ use rhertogh\Yii2Oauth2Server\interfaces\components\openidconnect\request\Oauth2OidcAuthenticationRequestInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\openidconnect\scope\Oauth2OidcScopeInterface; use rhertogh\Yii2Oauth2Server\interfaces\components\openidconnect\user\Oauth2OidcUserComponentInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2AuthorizeActionInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\external\user\Oauth2UserAuthenticatedAtInterface; use rhertogh\Yii2Oauth2Server\interfaces\models\Oauth2ClientInterface; use rhertogh\Yii2Oauth2Server\Oauth2Module; @@ -24,7 +25,7 @@ /** * @property Oauth2ServerController $controller */ -class Oauth2AuthorizeAction extends Oauth2BaseServerAction +class Oauth2AuthorizeAction extends Oauth2BaseServerAction implements Oauth2AuthorizeActionInterface { public function run($clientAuthorizationRequestId = null) { diff --git a/src/controllers/web/server/Oauth2RevokeAction.php b/src/controllers/web/server/Oauth2RevokeAction.php index ace48e1..57dac97 100644 --- a/src/controllers/web/server/Oauth2RevokeAction.php +++ b/src/controllers/web/server/Oauth2RevokeAction.php @@ -11,6 +11,7 @@ use rhertogh\Yii2Oauth2Server\controllers\web\Oauth2ServerController; use rhertogh\Yii2Oauth2Server\controllers\web\server\base\Oauth2BaseServerAction; use rhertogh\Yii2Oauth2Server\helpers\Oauth2RequestHelper; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\server\Oauth2RevokeActionInterface; use rhertogh\Yii2Oauth2Server\Oauth2Module; use Yii; use yii\helpers\Json; @@ -21,7 +22,7 @@ /** * @property Oauth2ServerController $controller */ -class Oauth2RevokeAction extends Oauth2BaseServerAction +class Oauth2RevokeAction extends Oauth2BaseServerAction implements Oauth2RevokeActionInterface { public function run() { diff --git a/src/controllers/web/wellknown/Oauth2OpenidConfigurationAction.php b/src/controllers/web/wellknown/Oauth2OpenidConfigurationAction.php index 5b1f608..fdd03e5 100644 --- a/src/controllers/web/wellknown/Oauth2OpenidConfigurationAction.php +++ b/src/controllers/web/wellknown/Oauth2OpenidConfigurationAction.php @@ -10,6 +10,7 @@ use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2CertificatesControllerInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2OidcControllerInterface; use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2ServerControllerInterface; +use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\wellknown\Oauth2OpenidConfigurationActionInterface; use Yii; use yii\helpers\Url; use yii\web\ForbiddenHttpException; @@ -17,7 +18,7 @@ /** * @property Oauth2WellKnownController $controller */ -class Oauth2OpenidConfigurationAction extends Oauth2BaseWebAction +class Oauth2OpenidConfigurationAction extends Oauth2BaseWebAction implements Oauth2OpenidConfigurationActionInterface { /** * diff --git a/src/interfaces/controllers/web/certificates/Oauth2JwksActionInterface.php b/src/interfaces/controllers/web/certificates/Oauth2JwksActionInterface.php new file mode 100644 index 0000000..4657827 --- /dev/null +++ b/src/interfaces/controllers/web/certificates/Oauth2JwksActionInterface.php @@ -0,0 +1,7 @@ +