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

User reloaded on Logout page #36

Open
vladicov opened this issue May 29, 2013 · 0 comments
Open

User reloaded on Logout page #36

vladicov opened this issue May 29, 2013 · 0 comments

Comments

@vladicov
Copy link

Hey, great bundle!

I am using this bundle successfully, but I am having trouble configuring the logout page.

I am trying to use the built in functionality to intercept login/logout requests but the logout portion seems to function incorrectly. When a user accesses a logout link in our application, they are brought to the logout redirect page, but all of the user data is still refreshed from our user provider. Symfony shows the user as unauthenticated in the profiler. If the logout page is refreshed, the user data is no longer reloaded and the token is gone. We are loading our user data from an oracle database using doctrine after SSO authentication. Here is my firewall config:

security.yml

providers:
    db_users:
        entity: { class: MyCoreBundle:MyUser}

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

    login:
        pattern:  ^/login$
        security: false

    firewall:
        pattern: ^/
        trusted_sso:
            manager: my_sso
            login_action: MyCoreBundle:SsoLogin:login
            logout_action: MyCoreBundle:SsoLogin:logout
            login_path: /login
            check_path: /login_check
        logout: true

I can post our User entity and UserProvider, but they are very basic, taken from all the examples. My login/logout actions are different cause we are overriding your controller.

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