security:
    encoders:
        FOS\UserBundle\Model\UserInterface: bcrypt
    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: ROLE_ADMIN
    providers:
        # used to reload user from session & other features (e.g. switch_user)
        app_user_provider:
            entity:
                class: App\Entity\User
                property: username
    firewalls:
        dev:
            pattern: ^/_(profiler|wdt)
            security: false
        api:
            pattern: ^/api/v1
            stateless: true
            anonymous: true
            provider: app_user_provider
            guard:
                authenticators:
                    - lexik_jwt_authentication.jwt_token_authenticator
        main:
            anonymous: true
            json_login:
                check_path: /authentication_token
                username_path: username
                password_path: password
                success_handler: lexik_jwt_authentication.handler.authentication_success
                failure_handler: lexik_jwt_authentication.handler.authentication_failure

    access_control:
        - { path: ^/api/v1/docs, roles: IS_AUTHENTICATED_ANONYMOUSLY } # Allows accessing the Swagger UI
        - { path: ^/authentication_token, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/users, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/createClient, roles: [ IS_AUTHENTICATED_ANONYMOUSLY ] }
        - { path: ^/, roles: IS_AUTHENTICATED_FULLY }


#eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE1OTM2MjI2OTEsImV4cCI6MTU5MzYyNjI5MSwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoidGVzdF91c2VyIn0.bPpy2DXoqCyUcP91IVnCHdWJZp4ENmTteM2bHED3AkDaAI3O16uNP6wXl18e2lowj3dL0YzU3KCcUl9VDdH8d78dhn9POBtM80UPwNKC8UT9UMxfjExXQmPQ4KfDKjWDnUSUHVN2upQBccZwSURiDK5R6allbbwUsPKgv_-0KLDQ4wqhynJigBmFcq6Zbze7WDqKpOxTW6Xl2wYEOY80LahHZ0uQQ_nKLWZaC7Rgmm3jI8kZdPbt0k46hUyBK_XupZOqKdEPZJWEAyDWZW13LwCIqrEppH4R6-fJ9v4oYQ3338wPB8wryjNSKVVo0U5SEDtqCV6AlTrGeo5CYZ8YeRmY16MUJlVpybAt5ssNLFfvbmkwXgpuTbDwiRi6poq6CmmSp_zwUJqJPwSEisQVy5ro2LhwMmcoPQg4SX7Ct6ahwGPzc_RIwKGGk35f4DJcR8Nm7RSt1Eg2apo-XseTZfDo1RSkq_aqQtt-0rsTPDlyeQzvLRA3TUSSo1AWzPVTGAkl53BAAt1_bIVUn1ND7L7ui-oHdwO7-H2aUXT3XGLilX5-_3ixYf3xMZGXzdECTMg6NyXYgduersgShSTW8-CN7VVd0JzbKvIu1QA25wtByZX6DrkbYshQbo8czaP-NzR1-_y_adDMZsMUWIi81sAQ-PJzU9px22KOVfoadfE