diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-04-30 09:16:55 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-14 17:53:52 +0200 |
commit | 0f8268c93e6210d368f9dcd1900274871a9eacdf (patch) | |
tree | 251024ae114d2a14a67399ba28d02ddb6d031bad /app/config | |
parent | f93a3109a5f0999dbbd69131c9e5041c390120c9 (diff) | |
download | wallabag-oauth-changes.tar.gz wallabag-oauth-changes.tar.zst wallabag-oauth-changes.zip |
Add client_credentials as grant_typeoauth-changes
Therefore, username and password are no longer needed
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Allow to have global clients, auth through direct token or auth code and bring scopes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
fix review
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
remove redirect uri requirement on specific clients
add back password and depreciate it
enforce state
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Allow apps to register themselves
A handful of changes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
change timeout values
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
set access_token lifetime to 1 year and double for refresh_token
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'app/config')
-rw-r--r-- | app/config/config.yml | 42 | ||||
-rw-r--r-- | app/config/routing.yml | 3 | ||||
-rw-r--r-- | app/config/security.yml | 1 |
3 files changed, 45 insertions, 1 deletions
diff --git a/app/config/config.yml b/app/config/config.yml index 2bc5e3b3..112fa012 100644 --- a/app/config/config.yml +++ b/app/config/config.yml | |||
@@ -35,6 +35,42 @@ framework: | |||
35 | http_method_override: true | 35 | http_method_override: true |
36 | assets: ~ | 36 | assets: ~ |
37 | 37 | ||
38 | wallabag_core: | ||
39 | version: 2.2.3 | ||
40 | paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" | ||
41 | languages: | ||
42 | en: 'English' | ||
43 | fr: 'Français' | ||
44 | de: 'Deutsch' | ||
45 | tr: 'Türkçe' | ||
46 | fa: 'فارسی' | ||
47 | ro: 'Română' | ||
48 | pl: 'Polish' | ||
49 | da: 'Dansk' | ||
50 | es: 'Español' | ||
51 | oc: 'Occitan' | ||
52 | it: 'Italiano' | ||
53 | pt: 'Português' | ||
54 | items_on_page: 12 | ||
55 | theme: material | ||
56 | language: '%locale%' | ||
57 | rss_limit: 50 | ||
58 | reading_speed: 1 | ||
59 | cache_lifetime: 10 | ||
60 | action_mark_as_read: 1 | ||
61 | list_mode: 0 | ||
62 | fetching_error_message_title: 'No title found' | ||
63 | fetching_error_message: | | ||
64 | wallabag can't retrieve contents for this article. Please <a href="http://doc.wallabag.org/en/user/errors_during_fetching.html#how-can-i-help-to-fix-that">troubleshoot this issue</a>. | ||
65 | api_limit_mass_actions: 10 | ||
66 | |||
67 | wallabag_user: | ||
68 | registration_enabled: "%fosuser_registration%" | ||
69 | |||
70 | wallabag_import: | ||
71 | allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain', 'text/csv'] | ||
72 | resource_dir: "%kernel.root_dir%/../web/uploads/import" | ||
73 | |||
38 | # Twig Configuration | 74 | # Twig Configuration |
39 | twig: | 75 | twig: |
40 | debug: "%kernel.debug%" | 76 | debug: "%kernel.debug%" |
@@ -194,7 +230,11 @@ fos_oauth_server: | |||
194 | service: | 230 | service: |
195 | user_provider: fos_user.user_provider.username_email | 231 | user_provider: fos_user.user_provider.username_email |
196 | options: | 232 | options: |
197 | refresh_token_lifetime: 1209600 | 233 | access_token_lifetime: 31536000 |
234 | refresh_token_lifetime: 63072000 | ||
235 | supported_scopes: read write user | ||
236 | enforce_state: true | ||
237 | auth_code_lifetime: 60 | ||
198 | 238 | ||
199 | scheb_two_factor: | 239 | scheb_two_factor: |
200 | trusted_computer: | 240 | trusted_computer: |
diff --git a/app/config/routing.yml b/app/config/routing.yml index 0bd2d130..5d26f944 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml | |||
@@ -44,6 +44,9 @@ fos_user: | |||
44 | fos_oauth_server_token: | 44 | fos_oauth_server_token: |
45 | resource: "@FOSOAuthServerBundle/Resources/config/routing/token.xml" | 45 | resource: "@FOSOAuthServerBundle/Resources/config/routing/token.xml" |
46 | 46 | ||
47 | fos_oauth_server_authorize: | ||
48 | resource: "@FOSOAuthServerBundle/Resources/config/routing/authorize.xml" | ||
49 | |||
47 | craue_config_settings_modify: | 50 | craue_config_settings_modify: |
48 | path: /settings | 51 | path: /settings |
49 | defaults: | 52 | defaults: |
diff --git a/app/config/security.yml b/app/config/security.yml index ffb1d356..0ce37661 100644 --- a/app/config/security.yml +++ b/app/config/security.yml | |||
@@ -57,6 +57,7 @@ security: | |||
57 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 57 | - { path: ^/api/doc, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
58 | - { path: ^/api/version, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 58 | - { path: ^/api/version, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
59 | - { path: ^/api/user, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 59 | - { path: ^/api/user, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
60 | - { path: ^/api/apps, roles: IS_AUTHENTICATED_ANONYMOUSLY } | ||
60 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | 61 | - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } |
61 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } | 62 | - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } |
62 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } | 63 | - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } |