From 529260ac7c76a1a539b0508f7d492529c678d340 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Tue, 20 Aug 2024 13:49:07 +0200 Subject: [PATCH] Support for the VrijBRP version of OAuth --- api/src/Entity/Gateway.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Entity/Gateway.php b/api/src/Entity/Gateway.php index bbd2e4794..d713fdd07 100644 --- a/api/src/Entity/Gateway.php +++ b/api/src/Entity/Gateway.php @@ -361,7 +361,7 @@ class Gateway * max = 255 * ) * - * @Assert\Choice({"header", "query", "form_params", "json"}) + * @Assert\Choice({"header", "query", "form_params", "json", "base_auth"}) * * @ApiProperty( * attributes={ @@ -819,6 +819,7 @@ public function fromSchema(array $schema): self array_key_exists('authorizationHeader', $schema) ? $this->setAuthorizationHeader($schema['authorizationHeader']) : ''; array_key_exists('auth', $schema) ? $this->setAuth($schema['auth']) : ''; array_key_exists('authorizationPassthroughMethod', $schema) ? $this->setAuthorizationPassthroughMethod($schema['authorizationPassthroughMethod']) : ''; + array_key_exists('authenticationConfig', $schema) ? $this->setAuthenticationConfig($schema['authenticationConfig']) : ''; array_key_exists('locale', $schema) ? $this->setLocale($schema['locale']) : ''; array_key_exists('accept', $schema) ? $this->setAccept($schema['accept']) : ''; array_key_exists('jwtId', $schema) ? $this->setJwtId($schema['jwtId']) : '';