Skip to content
Snippets Groups Projects
Commit 8088dc2d authored by Pierre Fleutot's avatar Pierre Fleutot
Browse files

Paramétrage clé publique, privée, et passphrase OAuth2 passe dans .env

parent ab660c2a
No related branches found
No related tags found
No related merge requests found
...@@ -3,14 +3,14 @@ league_oauth2_server: ...@@ -3,14 +3,14 @@ league_oauth2_server:
# Full path to the private key file. # Full path to the private key file.
# How to generate a private key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys # 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 # 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. # 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 # 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' # The type of value of 'encryption_key'
encryption_key_type: plain # One of "plain"; "defuse" encryption_key_type: plain # One of "plain"; "defuse"
...@@ -49,7 +49,7 @@ league_oauth2_server: ...@@ -49,7 +49,7 @@ league_oauth2_server:
# Full path to the public key file # Full path to the public key file
# How to generate a public key: https://oauth2.thephpleague.com/installation/#generating-public-and-private-keys # 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:
# Scopes that you wish to utilize in your application. # Scopes that you wish to utilize in your application.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment