Added chix module.

This commit is contained in:
2020-01-14 00:15:52 +03:00
parent 06f20d2a4f
commit c9095516d5
19 changed files with 1020 additions and 46 deletions
+13
View File
@@ -5,6 +5,13 @@ security:
my_provider:
entity: { class: App:User, property: username }
access_control:
- { path: '^/connect/google', roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: '^/connect/google/check', roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/(.+), roles: IS_AUTHENTICATED_FULLY }
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
@@ -21,3 +28,9 @@ security:
guard:
authenticators:
- App\Security\GoogleAuthenticator
form_login:
login_path: /connect/google
check_path: /connect/google/check
access_denied_url: /connect/google
+1 -1
View File
@@ -15,7 +15,7 @@ services:
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../src/*'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php,Value}'
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class