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

It does not work Remember me #54

Open
cesarluna opened this issue Jul 4, 2019 · 0 comments
Open

It does not work Remember me #54

cesarluna opened this issue Jul 4, 2019 · 0 comments

Comments

@cesarluna
Copy link

Configure my
config.yml

ldap_tools:
    general:
        default_domain: "%ldap_default_domain%"
    domains:
        EXAMPLE.LOCAL:
            domain_name: "%ldap_domain_name%"
            base_dn: "%ldap_base_dn%"
            username: "%ldap_username%"
            password: "%ldap_password%"
            servers: "%ldap_servers%"
    security:
        guard:
            default_target_path: '/'
            remember_me: true
        refresh_user_attributes: true
        # Set this to true if you want user roles re-queried on each request.
        refresh_user_roles: true
        role_attributes:
            name: name
            sid: sid
            guid: guid
            members: members

my Security.yml:

security:
    hide_user_not_found: false
    encoders:
        FOS\UserBundle\Model\UserInterface: sha512

    role_hierarchy:
        ROLE_SUPER_ADMIN:   ROLE_ADMIN


    providers:
        fos_userbundle:
            id: fos_user.user_provider.username
        ldap:
            id: ldap_tools.security.user.ldap_user_provider

    firewalls:
        main:
            pattern: ^/
            form_login:
                provider: fos_userbundle
                csrf_token_generator: security.csrf.token_manager
                default_target_path: /
                always_use_default_target_path: true

            logout:       true
            guard:
                authenticators:
                    - ldap_tools.security.ldap_guard_authenticator
            anonymous:    true
            remember_me:
                secret:   '%secret%'
                lifetime: 31536000 # 31536000 UN ANIO POR DEFECTO
                path:     /

            user_checker: app.user_checker

By not run remember me

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