for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace rhertogh\Yii2Oauth2Server\controllers\web;
use rhertogh\Yii2Oauth2Server\controllers\web\base\Oauth2BaseApiController;
use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\certificates\Oauth2JwksActionInterface;
use rhertogh\Yii2Oauth2Server\interfaces\controllers\web\Oauth2CertificatesControllerInterface;
use yii\filters\VerbFilter;
use yii\helpers\ArrayHelper;
class Oauth2CertificatesController extends Oauth2BaseApiController implements Oauth2CertificatesControllerInterface
{
/**
* @inheritDoc
*/
public function behaviors()
return ArrayHelper::merge(parent::behaviors(), [
'verbFilter' => [
'class' => VerbFilter::class,
'actions' => [
static::ACTION_NAME_JWKS => ['GET'],
],
]);
}
public function actions()
return [
static::ACTION_NAME_JWKS => Oauth2JwksActionInterface::class,
];