<commit_before>security:
    encoders:
        FOS\UserBundle\Model\UserInterface: sha512

    factories:
        - "%kernel.root_dir%/../vendor/fr3d/ldap-bundle/FR3D/LdapBundle/Resources/config/security_factories.xml"

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN

    providers:
        chain_provider:
            providers: [fos_userbundle, fr3d_ldapbundle]
        fos_userbundle:
            id: fos_user.user_manager
        fr3d_ldapbundle:
            id: fr3d_ldap.security.user.provider

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

        secured_area:
            pattern: ^/
            fr3d_ldap:  ~
            form_login:
                csrf_provider: form.csrf_provider
                remember_me:   true
            logout:    true
            anonymous: true
            provider: chain_provider
            remember_me:
                lifetime: %login_lifetime%
                key:      %secret%

    access_control:
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
        - { path: ^/, roles: IS_AUTHENTICATED_FULLY }<commit_msg>Added login check behind firewall, only for authenticated users.<commit_after>security:
    encoders:
        FOS\UserBundle\Model\UserInterface: sha512

    factories:
        - "%kernel.root_dir%/../vendor/fr3d/ldap-bundle/FR3D/LdapBundle/Resources/config/security_factories.xml"

    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN

    providers:
        chain_provider:
            providers: [fos_userbundle, fr3d_ldapbundle]
        fos_userbundle:
            id: fos_user.user_manager
        fr3d_ldapbundle:
            id: fr3d_ldap.security.user.provider

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

        secured_area:
            pattern: ^/
            fr3d_ldap:  ~
            form_login:
                csrf_provider: form.csrf_provider
                remember_me:   true
            logout:    true
            anonymous: true
            provider: chain_provider
            remember_me:
                lifetime: %login_lifetime%
                key:      %secret%

    access_control:
        - { path: ^/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/login_check$, roles: IS_AUTHENTICATED_FULLY }
        - { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
        - { path: ^/, roles: IS_AUTHENTICATED_FULLY }
{'fraction_non_alphanumeric': 0.08777194298574643, 'fraction_numerical': 0.011252813203300824, 'mean_word_length': 1.8162618796198522, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1966682', 'n_tokens_mistral': 877, 'n_tokens_neox': 856, 'n_words': 134}