]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/config.yml
2factor authentication via email
[github/wallabag/wallabag.git] / app / config / config.yml
index efc815b8e9a3211e122649c73d5883795a89bc0e..b2699c83aa5512077d9eddf21a05370bcf89bb73 100644 (file)
@@ -110,7 +110,9 @@ fos_rest:
     routing_loader:
         default_format: json
 
-nelmio_api_doc: ~
+nelmio_api_doc:
+    sandbox:
+        enabled: false
 
 nelmio_cors:
     defaults:
@@ -152,3 +154,33 @@ liip_theme:
         # bundle_resource_dir:
         #     - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
         #     - %%dir%%/views/%%bundle_name%%/%%override_path%%
+
+fos_user:
+    db_driver: orm
+    firewall_name: main
+    user_class: Wallabag\UserBundle\Entity\User
+    registration:
+        confirmation:
+            enabled: true
+
+fos_oauth_server:
+    db_driver:           orm
+    client_class:        Wallabag\ApiBundle\Entity\Client
+    access_token_class:  Wallabag\ApiBundle\Entity\AccessToken
+    refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
+    auth_code_class:     Wallabag\ApiBundle\Entity\AuthCode
+    service:
+        user_provider: fos_user.user_manager
+
+scheb_two_factor:
+
+    trusted_computer:
+        enabled: true
+        cookie_name: wllbg_trusted_computer
+        cookie_lifetime: 5184000
+
+    email:
+        enabled: true
+        sender_email: no-reply@wallabag.org
+        digits: 6
+        template: WallabagUserBundle:Authentication:form.html.twig