summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml')
-rw-r--r--admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml b/admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml
new file mode 100644
index 00000000..df816682
--- /dev/null
+++ b/admin/WebConsole3/backend/config/packages/fos_oauth_server.yaml
@@ -0,0 +1,12 @@
+fos_oauth_server:
+ db_driver: orm
+ client_class: Opengnsys\CoreBundle\Entity\Client
+ access_token_class: Opengnsys\CoreBundle\Entity\AccessToken
+ refresh_token_class: Opengnsys\CoreBundle\Entity\RefreshToken
+ auth_code_class: Opengnsys\CoreBundle\Entity\AuthCode
+ service:
+ user_provider: fos_user.user_provider.username
+ options:
+ access_token_lifetime: 1209600 # 336 horas
+ refresh_token_lifetime: 9209600 # aprox 106 días
+ auth_code_lifetime: 30