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

error with Sf2.1 since friday #78

Open
thibmonier opened this issue Jul 29, 2013 · 0 comments
Open

error with Sf2.1 since friday #78

thibmonier opened this issue Jul 29, 2013 · 0 comments

Comments

@thibmonier
Copy link

Since update last friday with dev master version we have an error
"The security context contains no authentication token. One possible reason may be that there is no firewall configured for this URL."

We tried to debug this and no ip filters are configured in security.yml

jms_security_extra:
    secure_all_services: false
    expressions: true
...
    firewalls:
        main:
            pattern: ^/
            anonymous: true
            access_denied_url: /forbidden
            form_login:
                provider: custom
                csrf_provider: form.csrf_provider
#                default_target_path: /
#                use_referer: true
                success_handler: authentication_success_handler
                failure_handler: authentication_failure_handler  
                login_path: /
                check_path:  /login_check
#                use_forward:    false
#                use_referer:    true
            fos_facebook:
                success_handler: facebook_auth_success_handler
                app_url: http://apps.facebook.com/%facebook.app_id%/
                server_url: "%facebook.server_url%"
                login_path: /
                check_path: /login_fb_check
                always_use_default_target_path: true
                use_forward:    false
                use_referer:    true
                default_target_path: /
                provider: my_fos_facebook_provider
            logout: ~

    access_control:
        - { path: ^/,roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/register, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/resetting, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/%admin_url%/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/%admin_url%, roles: ROLE_ADMIN }

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN

, but apparently, in TraceableRequestMatcher class we have line 69

$ips = array($this->getFieldValue('ip'));
        } else {
            $ips = $this->getFieldValue('ips');

Maybe you have to check if ip is not null before ?

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