security:
    encoders:
        FOS\UserBundle\Model\UserInterface: bcrypt

    role_hierarchy:
        ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_API, ROLE_ALLOWED_TO_SWITCH]

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

    firewalls:

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

        wsse_secured:
            pattern:      (.*)/(role)(.*)
            context:      user
            stateless:    true
            wsse:
                nonce_dir: null
                provider: fos_userbundle
                lifetime: 600
            anonymous:    false
            
    access_control:
        - { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }
security:
    encoders:
        FOS\UserBundle\Model\UserInterface: bcrypt

    role_hierarchy:
        ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_API, ROLE_ALLOWED_TO_SWITCH]

    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

    firewalls:

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

        wsse_secured:
            pattern:      ^/api/v1/((?!tokens))
            context:      user
            stateless:    true
            wsse:
                nonce_dir: null
                provider: fos_userbundle
                lifetime: 600
            anonymous:    false
            
    access_control:
        - { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY }

FIX authentication error for routes without *role*
FIX authentication error for routes without *role*

FIX authentication error for routes without *role*