From 8088dc2d908732dca3d7d979aedf8e5a8f1c9e7e Mon Sep 17 00:00:00 2001 From: pfleu <fleutotp@gmail.com> Date: Wed, 25 Jan 2023 09:05:21 +0100 Subject: [PATCH] =?UTF-8?q?Param=C3=A9trage=20cl=C3=A9=20publique,=20priv?= =?UTF-8?q?=C3=A9e,=20et=20passphrase=20OAuth2=20passe=20dans=20.env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/packages/league_oauth2_server.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/packages/league_oauth2_server.yaml b/config/packages/league_oauth2_server.yaml index 36d0298..00f08ec 100644 --- a/config/packages/league_oauth2_server.yaml +++ b/config/packages/league_oauth2_server.yaml @@ -3,14 +3,14 @@ league_oauth2_server: # Full path to the private key file. # How to generate a private key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys - private_key: '%kernel.project_dir%/var/keys/private.key' + private_key: '%env(resolve:OAUTH_PRIVATE_KEY)%' # Passphrase of the private key, if any - private_key_passphrase: null + private_key_passphrase: '%env(OAUTH_PASSPHRASE)%' # The plain string or the ascii safe string used to create a Defuse\Crypto\Key to be used as an encryption key. # How to generate an encryption key: https://oauth2.thephpleague.com/installation/#string-password - encryption_key: jecomprendspas + encryption_key: '%env(OAUTH_ENCRYPTION_KEY)%' # The type of value of 'encryption_key' encryption_key_type: plain # One of "plain"; "defuse" @@ -49,7 +49,7 @@ league_oauth2_server: # Full path to the public key file # How to generate a public key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys - public_key: '%kernel.project_dir%/var/keys/public.key' + public_key: '%env(resolve:OAUTH_PUBLIC_KEY)%' scopes: # Scopes that you wish to utilize in your application. -- GitLab