diff --git a/src/Entity/ProxyData.php b/src/Entity/ProxyData.php index 55277ac6ee06150141113b0034aae8300214ef32..7289c7075e8ba7520f09fa02e518117d2c71513d 100644 --- a/src/Entity/ProxyData.php +++ b/src/Entity/ProxyData.php @@ -12,6 +12,7 @@ use Symfony\Component\Serializer\Annotation\Groups; * @ApiResource( * collectionOperations={ * "post" = { + * "security" = "is_granted('IS_AUTHENTICATED_FULLY') and is_granted('ROLE_SCOPE_API-PROXY')", * "path" = "/proxy/proxydata", * "openapi_context" = { * "tags" = {"Proxy"}, @@ -25,6 +26,7 @@ use Symfony\Component\Serializer\Annotation\Groups; * } * }, * "get" = { + * "security" = "is_granted('IS_AUTHENTICATED_FULLY') and is_granted('ROLE_SCOPE_API-PROXY')", * "path" = "/proxy/proxydata", * "openapi_context" = { * "tags" = {"Proxy"}, @@ -33,6 +35,7 @@ use Symfony\Component\Serializer\Annotation\Groups; * }, * itemOperations={ * "get" = { + * "security" = "is_granted('IS_AUTHENTICATED_FULLY') and is_granted('ROLE_SCOPE_API-PROXY')", * "path" = "/proxy/proxydata/{identifier}", * "openapi_context" = { * "tags" = {"Proxy"}