Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You must configure the check path to be handled by the firewall #206

Open
pirmax opened this issue May 11, 2023 · 0 comments
Open

You must configure the check path to be handled by the firewall #206

pirmax opened this issue May 11, 2023 · 0 comments

Comments

@pirmax
Copy link

pirmax commented May 11, 2023

Hello,

I'm using Symfony 3.4 and this bundle on version 1.8.2 for my EZ Platform.

My security.yml configuration file:

security:
    providers:
        ezpublish:
            id: AppBundle\EzAdminUi\Infrastructure\Security\UserProvider
        user_provider:
            entity:
                class: 'Symfony\Component\Security\Core\User\User'
        saml_provider:
            saml:
                user_class: 'Symfony\Component\Security\Core\User\User'
                default_roles: [ 'ROLE_USER' ]

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false

        app:
            pattern: ^/
            anonymous: true
            saml:
                username_attribute: email
                use_attribute_friendly_name: false
                login_path: '/saml/login'
                check_path: '/saml/login_check'
                persist_user: true
            logout:
                path: '/saml/logout'

    access_control:
        - { path: ^/saml/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/saml/metadata, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/admin/_trans, roles: ROLE_TRANSLATIONS }

I get this error on /saml/login_check POST.

Uncaught PHP Exception RuntimeException: "You must configure the check path to be handled by the firewall."

I'm stuck, and I don't know what else to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant