<commit_before>jms_security_extra:
    secure_all_services: false
    expressions: true

security:
    encoders:
        Study\AspirinaBundle\Entity\User: sha512

#    role_hierarchy:
#        ROLE_ADMIN:       ROLE_USER
#        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        database:
            entity: { class: AspirinaBundle:User }

    firewalls:
        secured_area:
            pattern:    ^/
            form_login:
                login_path: /login
                check_path: /login_check
            logout:
                path:   /logout
                target: /login
            anonymous: ~
            #http_basic:
            #    realm: "Secured Demo Area"

    access_control:
        # URL anonymous
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/login_check, roles: IS_AUTHENTICATED_ANONYMOUSLY }      
        - { path: ^/_wdt, roles: 'IS_AUTHENTICATED_ANONYMOUSLY' }    
        
        # URL protected
        - { path: ^/site, roles: ROLE_ADMIN }
        - { path: ^/, roles: [ROLE_ADMIN, ROLE_TYPIST, ROLE_COORDINATOR, ROLE_STATISTICIAN] }
        
        #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }<commit_msg>Dando acesso aos assets publicos.<commit_after>jms_security_extra:
    secure_all_services: false
    expressions: true

security:
    encoders:
        Study\AspirinaBundle\Entity\User: sha512

#    role_hierarchy:
#        ROLE_ADMIN:       ROLE_USER
#        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]

    providers:
        database:
            entity: { class: AspirinaBundle:User }

    firewalls:
        secured_area:
            pattern:    ^/
            form_login:
                login_path: /login
                check_path: /login_check
            logout:
                path:   /logout
                target: /login
            anonymous: ~
            #http_basic:
            #    realm: "Secured Demo Area"

    access_control:
        # URL anonymous
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/css, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/js, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/login_check, roles: IS_AUTHENTICATED_ANONYMOUSLY }      
        - { path: ^/_wdt, roles: 'IS_AUTHENTICATED_ANONYMOUSLY' }    
        
        # URL protected
        - { path: ^/site, roles: ROLE_ADMIN }
        - { path: ^/, roles: [ROLE_ADMIN, ROLE_TYPIST, ROLE_COORDINATOR, ROLE_STATISTICIAN] }
        
        #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.002244668911335578, 'mean_word_length': 1.875268817204301, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2062800', 'n_tokens_mistral': 924, 'n_tokens_neox': 904, 'n_words': 158}