<commit_before># To get started with security, check out the documentation:
# https://symfony.com/doc/current/security.html
security:
    # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
    providers:
        in_memory:
            memory: ~
    
    firewalls:
        # disables authentication for assets and the profiler, adapt it according to your needs
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        
        # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
        main:
            pattern: ^/
            anonymous: ~
            http_basic:
                realm: "Secured with HTTP basic"
                provider: in_memory
    
    access_control:
        - { path: ^/secured-area, role: ROLE_USER }
        - { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY }
<commit_msg>fix: add 'logout_on_user_change: true' to default firewall<commit_after># To get started with security, check out the documentation:
# https://symfony.com/doc/current/security.html
security:
    # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
    providers:
        in_memory:
            memory: ~
    
    firewalls:
        # disables authentication for assets and the profiler, adapt it according to your needs
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        
        # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
        main:
            pattern: ^/
            anonymous: ~
            logout_on_user_change: true
            http_basic:
                realm: "Secured with HTTP basic"
                provider: in_memory
    
    access_control:
        - { path: ^/secured-area, role: ROLE_USER }
        - { path: ^/, role: IS_AUTHENTICATED_ANONYMOUSLY }

{'fraction_non_alphanumeric': 0.10316226023846553, 'fraction_numerical': 0.0, 'mean_word_length': 2.068362480127186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '5826308', 'n_tokens_mistral': 571, 'n_tokens_neox': 565, 'n_words': 118}