Code development platform for open source projects from the European Union institutions

Commit 949a868c authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

fix: use `JSON` instead of `XML` by default

parent 8230fe95
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -20,8 +20,6 @@ use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\StreamFactoryInterface;
use Throwable;

// phpcs:disable Generic.Files.LineLength.TooLong

final class Ecas implements CasInterface
{
    private CasInterface $cas;
+2 −4
Original line number Diff line number Diff line
@@ -18,8 +18,6 @@ use InvalidArgumentException;
use function array_key_exists;
use function is_string;

// phpcs:disable Generic.Files.LineLength.TooLong

final class EcasProperties implements PropertiesInterface
{
    public const AUTHENTICATION_LEVEL_BASIC = 'BASIC';
@@ -42,8 +40,8 @@ final class EcasProperties implements PropertiesInterface

        $properties['protocol']['serviceValidate']['allowed_parameters'][] = 'userDetails';
        $properties['protocol']['proxyValidate']['allowed_parameters'][] = 'userDetails';
        $properties['protocol']['serviceValidate']['default_parameters']['format'] = 'XML';
        $properties['protocol']['proxyValidate']['default_parameters']['format'] = 'XML';
        $properties['protocol']['serviceValidate']['default_parameters']['format'] = 'JSON';
        $properties['protocol']['proxyValidate']['default_parameters']['format'] = 'JSON';
        $properties['protocol']['login']['allowed_parameters'][] = 'authenticationLevel';
        $properties['protocol']['login']['default_parameters']['authenticationLevel'] = $properties['protocol']['login']['default_parameters']['authenticationLevel'] ?? self::AUTHENTICATION_LEVEL_BASIC;