security:
  password_hashers:
    Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
  providers:
    app_user_provider:
      entity:
        class: App\Entity\User
        property: email
  firewalls:
    dev:
      pattern: ^/(_(profiler|wdt)|css|images|js)/
      security: false
    main:
      pattern: ^/
      lazy: true
      provider: app_user_provider
      custom_authenticators:
        - App\Security\CustomAuthenticator
      logout:
        path: app_logout
      remember_me:
        secret: '%kernel.secret%'
        lifetime: 604800
        path: /
#      oauth:
#        resource_owners:
#          google: "/connect/google/check"
#          facebook: "/connect/facebook/check"
#        login_path: /login
#        use_forward: false
#        failure_path: /login
#
#        oauth_user_provider:
#          service: App\Security\OAuthUserProvider
  access_control:
    - { path: ^/login, roles: PUBLIC_ACCESS}
    - { path: ^/_locale, roles: PUBLIC_ACCESS}
    - { path: ^/register, roles: PUBLIC_ACCESS}
    - { path: ^/admin, roles: ROLE_ADMIN }
    # - { path: ^/profile, roles: ROLE_USER }

when@test:
  security:
    password_hashers:
      Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
        algorithm: auto
        cost: 4 # Lowest possible value for bcrypt
        time_cost: 3 # Lowest possible value for argon
        memory_cost: 10 # Lowest possible value for argon
