Skip to content

No errors thrown if certificates are missing and empty token is returned #1257

@crtl

Description

@crtl

First of all thanks for the bundle, it helped a lot. Now for the issue:

Currently when the certificates are not configured or cannot be found the authentication endpoint just returns an empty string for the access token but the response is still successful (200)

It would be helpful to have at least an Internal Server Error response and some message logged to debug log.

composer.json dependencies

"require": {
        "php": "^8.3",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "ext-openssl": "*",
        "crtl/request-dto-resolver-bundle": "^0.0.3",
        "doctrine/dbal": "^3",
        "doctrine/doctrine-bundle": "^2.13",
        "doctrine/doctrine-migrations-bundle": "^3.3",
        "doctrine/orm": "^3.3",
        "gedmo/doctrine-extensions": "^3.17",
        "gesdinet/jwt-refresh-token-bundle": "^1.3",
        "hidehalo/nanoid-php": "^2.0",
        "lexik/jwt-authentication-bundle": "^3.1",
        "nelmio/api-doc-bundle": "^4.33",
        "nelmio/cors-bundle": "^2.5",
        "pentatrion/vite-bundle": "^7.0",
        "phpdocumentor/reflection-docblock": "^5.6",
        "phpstan/phpdoc-parser": "^2.0",
        "stof/doctrine-extensions-bundle": "^1.12",
        "symfony/asset": "7.1.*",
        "symfony/console": "7.1.*",
        "symfony/dotenv": "7.1.*",
        "symfony/flex": "^2",
        "symfony/framework-bundle": "7.1.*",
        "symfony/mailer": "7.1.*",
        "symfony/monolog-bundle": "^3.10",
        "symfony/property-access": "7.1.*",
        "symfony/property-info": "7.1.*",
        "symfony/runtime": "7.1.*",
        "symfony/security-bundle": "7.1.*",
        "symfony/serializer": "7.1.*",
        "symfony/translation": "7.1.*",
        "symfony/twig-bundle": "7.1.*",
        "symfony/yaml": "7.1.*"
    },
"require-dev": {
        "doctrine/doctrine-fixtures-bundle": "^3.6",
        "liip/test-fixtures-bundle": "^3.1",
        "phpunit/phpunit": "^9.5",
        "symfony/browser-kit": "7.1.*",
        "symfony/css-selector": "7.1.*",
        "symfony/maker-bundle": "^1.61",
        "symfony/phpunit-bridge": "^7.1"
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions